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:
Christian Hergert
2023-08-28 14:55:43 -07:00
parent 310e43f166
commit fd980eca68

View File

@ -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