mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: always create pid0 info
That way we don't risk showing "Unknown Process" if we get stack traces recorded with a 0 pid (which can happen from Perf).
This commit is contained in:
@ -745,11 +745,15 @@ sysprof_document_load_overlays (SysprofDocument *self)
|
||||
static void
|
||||
sysprof_document_load_processes (SysprofDocument *self)
|
||||
{
|
||||
G_GNUC_UNUSED SysprofProcessInfo *pid0;
|
||||
EggBitsetIter iter;
|
||||
guint i;
|
||||
|
||||
g_assert (SYSPROF_IS_DOCUMENT (self));
|
||||
|
||||
/* Always create PID 0 info */
|
||||
pid0 = _sysprof_document_process_info (self, 0, TRUE);
|
||||
|
||||
if (egg_bitset_iter_init_first (&iter, self->processes, &i))
|
||||
{
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user