[sysprof] kernel-symbols: avoid symbols not in text (code) section



commit 1bc52902eb37950a4e49ba67a80baa30b105ab4d
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 29 01:26:51 2018 -0800

    kernel-symbols: avoid symbols not in text (code) section
    
    Those are defind as t or T type.

 lib/symbols/sp-kernel-symbol.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/symbols/sp-kernel-symbol.c b/lib/symbols/sp-kernel-symbol.c
index 9403277..db8c147 100644
--- a/lib/symbols/sp-kernel-symbol.c
+++ b/lib/symbols/sp-kernel-symbol.c
@@ -81,6 +81,10 @@ is_ignored (GHashTable  *skip,
             const gchar *name,
             guint8       type)
 {
+  /* Only allow symbols in the text (code) section */
+  if (type != 't' && type != 'T')
+    return TRUE;
+
   return g_hash_table_contains (skip, name);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]