f3ac1f58a2
We now have a branch upstream for tracking el10 patches which makes this a lot easier to maintain. This updates to using that branch as a diff upon 47.1. Resolves: RHEL-65743
50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From 51c7529c515c2e5c4362676e44f2679ce8cc66db Mon Sep 17 00:00:00 2001
|
|
From: Christian Hergert <chergert@redhat.com>
|
|
Date: Mon, 4 Nov 2024 14:21:15 -0800
|
|
Subject: [PATCH 20/31] sysprof-live-unwinder: ifdef unused code off x86
|
|
|
|
Fixes a compiler warning about unused functions.
|
|
---
|
|
src/sysprof-live-unwinder/sysprof-live-process.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/sysprof-live-unwinder/sysprof-live-process.c b/src/sysprof-live-unwinder/sysprof-live-process.c
|
|
index 7932048b..90fd2633 100644
|
|
--- a/src/sysprof-live-unwinder/sysprof-live-process.c
|
|
+++ b/src/sysprof-live-unwinder/sysprof-live-process.c
|
|
@@ -80,6 +80,7 @@ typedef struct _SysprofUnwinder
|
|
|
|
static SysprofUnwinder *current_unwinder;
|
|
|
|
+#if defined(__x86_64__) || defined(__i386__)
|
|
static inline GPid
|
|
sysprof_unwinder_next_thread (Dwfl *dwfl,
|
|
void *user_data,
|
|
@@ -230,6 +231,7 @@ sysprof_unwinder_frame_cb (Dwfl_Frame *frame,
|
|
|
|
return DWARF_CB_OK;
|
|
}
|
|
+#endif
|
|
|
|
static inline guint
|
|
sysprof_unwind (SysprofLiveProcess *self,
|
|
@@ -406,6 +408,7 @@ sysprof_live_process_is_active (SysprofLiveProcess *self)
|
|
return self->fd > -1;
|
|
}
|
|
|
|
+#if defined(__x86_64__) || defined(__i386__)
|
|
static Dwfl *
|
|
sysprof_live_process_get_dwfl (SysprofLiveProcess *self)
|
|
{
|
|
@@ -440,6 +443,7 @@ sysprof_live_process_get_dwfl (SysprofLiveProcess *self)
|
|
|
|
return self->dwfl;
|
|
}
|
|
+#endif
|
|
|
|
guint
|
|
sysprof_live_process_unwind (SysprofLiveProcess *self,
|
|
--
|
|
2.45.2
|
|
|