From 677c6a19a7cf1102daae4b0a1abd2daade2f9485 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 25 Aug 2023 11:37:17 -0700 Subject: [PATCH] libsysprof: fix kernel (Linux) categorization --- src/libsysprof/categories.txt | 2 +- src/libsysprof/sysprof-callgraph-categorize.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libsysprof/categories.txt b/src/libsysprof/categories.txt index 90647f68..86a43839 100644 --- a/src/libsysprof/categories.txt +++ b/src/libsysprof/categories.txt @@ -214,7 +214,7 @@ JS: * javascript inherit -Kernel: +Linux: do_coredump coredump inherit * kernel inherit diff --git a/src/libsysprof/sysprof-callgraph-categorize.c b/src/libsysprof/sysprof-callgraph-categorize.c index 293c53d5..f8cb7813 100644 --- a/src/libsysprof/sysprof-callgraph-categorize.c +++ b/src/libsysprof/sysprof-callgraph-categorize.c @@ -41,8 +41,7 @@ _sysprof_callgraph_node_categorize (SysprofCallgraphNode *node) * that you can do valgrind style function matches like: */ - if (symbol->kind != SYSPROF_SYMBOL_KIND_USER || - symbol->binary_nick == NULL) + if (symbol->binary_nick == NULL) return SYSPROF_CALLGRAPH_CATEGORY_UNCATEGORIZED; category = sysprof_categories_lookup (NULL, symbol->binary_nick, symbol->name);