mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: handle pid == -1
This can happen from Perf sometimes so be explicit about remapping it to process 0, which is our sort of catchall for kernel stuff.
This commit is contained in:
@ -1246,6 +1246,9 @@ _sysprof_document_process_symbol (SysprofDocument *self,
|
||||
|
||||
g_return_val_if_fail (SYSPROF_IS_DOCUMENT (self), NULL);
|
||||
|
||||
if (pid < 0)
|
||||
pid = 0;
|
||||
|
||||
info = _sysprof_document_process_info (self, pid, TRUE);
|
||||
|
||||
if (info->symbol)
|
||||
|
||||
Reference in New Issue
Block a user