mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: fix category inheritance
Move the bit lower so we can use bitfields properly, and add an unmask helper to avoid all the 0xFF crap.
This commit is contained in:
@ -327,12 +327,6 @@ _sysprof_callgraph_categorize (SysprofCallgraph *self,
|
||||
|
||||
while (parent != NULL)
|
||||
{
|
||||
/* If we reach an uncategorized, then nothing above
|
||||
* is doing inheritance.
|
||||
*/
|
||||
if (parent->category == SYSPROF_CALLGRAPH_CATEGORY_UNCATEGORIZED)
|
||||
break;
|
||||
|
||||
if (parent->category & SYSPROF_CALLGRAPH_CATEGORY_INHERIT)
|
||||
{
|
||||
node->category = parent->category;
|
||||
|
||||
Reference in New Issue
Block a user