mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
capture: rename PidRoot to Overlay and add src/dst
Really what we want to deal with here is tracking an overlay that we may need to be able to decode after the fact (in case processes exit or we need to do post-processing symbol resolution). For the podman case, that is $some_path mapped to root (/), generally speaking. For flatpak though, that would have two mappings, one for /app and another for /usr (possibly more).
This commit is contained in:
@ -115,14 +115,16 @@ main (gint argc,
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_PID_ROOT:
|
||||
case SYSPROF_CAPTURE_FRAME_OVERLAY:
|
||||
{
|
||||
const SysprofCapturePidRoot *pr = sysprof_capture_reader_read_pid_root (reader);
|
||||
const SysprofCaptureOverlay *pr = sysprof_capture_reader_read_overlay (reader);
|
||||
const char *src = pr->data;
|
||||
const char *dst = &pr->data[pr->src_len+1];
|
||||
|
||||
if (pr == NULL)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
g_print ("PID ROOT: pid=%d layer=%u path=%s\n", pr->frame.pid, pr->layer, pr->path);
|
||||
g_print ("OVERLAY: pid=%d layer=%u src=%s dst=%s\n", pr->frame.pid, pr->layer, src, dst);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user