libsysprof-capture: add support for DBusMessage frames

These are still captive to the max size of a SysprofCaptureFrame, but
most messages fit into that.
This commit is contained in:
Christian Hergert
2023-07-27 12:21:42 -07:00
parent 50c203efe2
commit f46d690a28
7 changed files with 149 additions and 1 deletions

View File

@ -391,6 +391,23 @@ sysprof_capture_writer_cat (SysprofCaptureWriter *self,
break;
}
case SYSPROF_CAPTURE_FRAME_DBUS_MESSAGE:
{
const SysprofCaptureDBusMessage *frame;
if (!(frame = sysprof_capture_reader_read_dbus_message (reader)))
goto panic;
sysprof_capture_writer_add_dbus_message (self,
frame->frame.time,
frame->frame.cpu,
frame->frame.pid,
frame->flags,
frame->message,
frame->message_len);
break;
}
case SYSPROF_CAPTURE_FRAME_SAMPLE:
{
const SysprofCaptureSample *frame;