greybus: tracing: drop "greybus" prefix
I posted this once before but it got rejected for fear it would not be clear which messages were related to Greybus. Every trace event currently defined for Greybus is recorded in a function whose name begins with "gb_". Every trace event reported in /sys/kernel/debug/tracing/trace includes the name of the function in which the event was recorded. Get rid of the "greybus: " prefix in all of the Greybus trace events. It just takes up precious space and is not actually helpful. Anyone actually enabling individual trace events should know enough about what they're doing to recognize which ones are being enabled. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
365d79fc20
commit
c0b06a6d4e
|
@ -41,7 +41,7 @@ DECLARE_EVENT_CLASS(gb_message,
|
|||
__entry->result = message->header->result;
|
||||
),
|
||||
|
||||
TP_printk("greybus: size=%hu operation_id=0x%04x type=0x%02x result=0x%02x",
|
||||
TP_printk("size=%hu operation_id=0x%04x type=0x%02x result=0x%02x",
|
||||
__entry->size, __entry->operation_id,
|
||||
__entry->type, __entry->result)
|
||||
);
|
||||
|
@ -318,7 +318,7 @@ DECLARE_EVENT_CLASS(gb_interface,
|
|||
__entry->mode_switch = intf->mode_switch;
|
||||
),
|
||||
|
||||
TP_printk("greybus: intf_id=%hhu device_id=%hhu module_id=%hhu D=%d J=%d A=%d E=%d M=%d",
|
||||
TP_printk("intf_id=%hhu device_id=%hhu module_id=%hhu D=%d J=%d A=%d E=%d M=%d",
|
||||
__entry->id, __entry->device_id, __entry->module_id,
|
||||
__entry->disconnected, __entry->ejected, __entry->active,
|
||||
__entry->enabled, __entry->mode_switch)
|
||||
|
@ -392,7 +392,7 @@ DECLARE_EVENT_CLASS(gb_module,
|
|||
__entry->disconnected = module->disconnected;
|
||||
),
|
||||
|
||||
TP_printk("greybus: hd_bus_id=%d module_id=%hhu num_interfaces=%zu disconnected=%d",
|
||||
TP_printk("hd_bus_id=%d module_id=%hhu num_interfaces=%zu disconnected=%d",
|
||||
__entry->hd_bus_id, __entry->module_id,
|
||||
__entry->num_interfaces, __entry->disconnected)
|
||||
);
|
||||
|
@ -445,7 +445,7 @@ DECLARE_EVENT_CLASS(gb_host_device,
|
|||
__entry->buffer_size_max = hd->buffer_size_max;
|
||||
),
|
||||
|
||||
TP_printk("greybus: bus_id=%d num_cports=%zu mtu=%zu",
|
||||
TP_printk("bus_id=%d num_cports=%zu mtu=%zu",
|
||||
__entry->bus_id, __entry->num_cports,
|
||||
__entry->buffer_size_max)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue