mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
libsysprof-analyze: add bit for context switch symbols
This commit is contained in:
@ -37,6 +37,8 @@ struct _SysprofSymbol
|
||||
|
||||
SysprofAddress begin_address;
|
||||
SysprofAddress end_address;
|
||||
|
||||
guint is_context_switch : 1;
|
||||
};
|
||||
|
||||
SysprofSymbol *_sysprof_symbol_new (GRefString *name,
|
||||
@ -58,4 +60,10 @@ _sysprof_symbol_equal (const SysprofSymbol *a,
|
||||
return strcmp (a->name, b->name) == 0;
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
_sysprof_symbol_is_context_switch (SysprofSymbol *symbol)
|
||||
{
|
||||
return symbol->is_context_switch;
|
||||
}
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user