mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: add bus type to add_dbus API
This commit is contained in:
@ -402,6 +402,7 @@ sysprof_capture_writer_cat (SysprofCaptureWriter *self,
|
||||
frame->frame.time,
|
||||
frame->frame.cpu,
|
||||
frame->frame.pid,
|
||||
frame->bus_type,
|
||||
frame->flags,
|
||||
frame->message,
|
||||
frame->message_len);
|
||||
|
||||
@ -772,7 +772,8 @@ sysprof_capture_writer_add_dbus_message (SysprofCaptureWriter *self,
|
||||
int64_t time,
|
||||
int cpu,
|
||||
int32_t pid,
|
||||
uint32_t flags,
|
||||
uint16_t bus_type,
|
||||
uint16_t flags,
|
||||
const uint8_t *message_data,
|
||||
size_t message_len)
|
||||
{
|
||||
@ -802,6 +803,7 @@ sysprof_capture_writer_add_dbus_message (SysprofCaptureWriter *self,
|
||||
time,
|
||||
SYSPROF_CAPTURE_FRAME_DBUS_MESSAGE);
|
||||
|
||||
ev->bus_type = bus_type;
|
||||
ev->flags = flags;
|
||||
ev->message_len = message_len;
|
||||
memcpy (ev->message, message_data, message_len);
|
||||
|
||||
@ -234,7 +234,8 @@ bool sysprof_capture_writer_add_dbus_message (Sy
|
||||
int64_t time,
|
||||
int cpu,
|
||||
int32_t pid,
|
||||
uint32_t flags,
|
||||
uint16_t bus_type,
|
||||
uint16_t flags,
|
||||
const uint8_t *message_data,
|
||||
size_t message_len);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
|
||||
@ -173,6 +173,7 @@ sysprof_dbus_monitor_record_fiber (gpointer user_data)
|
||||
SYSPROF_CAPTURE_CURRENT_TIME,
|
||||
-1,
|
||||
-1,
|
||||
record->bus_type,
|
||||
SYSPROF_CAPTURE_DBUS_FLAGS_MESSAGE_TOO_LARGE,
|
||||
NULL, 0);
|
||||
|
||||
@ -209,6 +210,7 @@ sysprof_dbus_monitor_record_fiber (gpointer user_data)
|
||||
SYSPROF_CAPTURE_CURRENT_TIME,
|
||||
-1,
|
||||
-1,
|
||||
record->bus_type,
|
||||
0,
|
||||
read_buffer, n_needed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user