[sysprof/sysprof-3-26] kernel: only try to load kernel symbol map once
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/sysprof-3-26] kernel: only try to load kernel symbol map once
- Date: Sat, 27 Jan 2018 10:42:52 +0000 (UTC)
commit 37982a255173d25ffa857e387cc93454d13a72b8
Author: Christian Hergert <chergert redhat com>
Date: Sat Jan 27 01:09:56 2018 -0800
kernel: only try to load kernel symbol map once
If we fail, log a message to the console and bail. This seems to happen
with recent kernel changes.
lib/sp-kernel-symbol.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/lib/sp-kernel-symbol.c b/lib/sp-kernel-symbol.c
index 3a3d9c9..d9e7975 100644
--- a/lib/sp-kernel-symbol.c
+++ b/lib/sp-kernel-symbol.c
@@ -186,8 +186,17 @@ sp_kernel_symbol_from_address (SpCaptureAddress address)
if (G_UNLIKELY (kernel_symbols == NULL))
{
- if (!sp_kernel_symbol_load ())
+ static gboolean failed;
+
+ if (failed)
return NULL;
+
+ if (!sp_kernel_symbol_load ())
+ {
+ g_warning ("Failed to load kernel symbol map, kernel symbols will not be available!");
+ failed = TRUE;
+ return NULL;
+ }
}
g_assert (kernel_symbols != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]