Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alex Elder and committed by
Greg Kroah-Hartman
c0b06a6d 365d79fc

+4 -4
+4 -4
drivers/staging/greybus/greybus_trace.h
··· 41 41 __entry->result = message->header->result; 42 42 ), 43 43 44 - TP_printk("greybus: size=%hu operation_id=0x%04x type=0x%02x result=0x%02x", 44 + TP_printk("size=%hu operation_id=0x%04x type=0x%02x result=0x%02x", 45 45 __entry->size, __entry->operation_id, 46 46 __entry->type, __entry->result) 47 47 ); ··· 318 318 __entry->mode_switch = intf->mode_switch; 319 319 ), 320 320 321 - TP_printk("greybus: intf_id=%hhu device_id=%hhu module_id=%hhu D=%d J=%d A=%d E=%d M=%d", 321 + TP_printk("intf_id=%hhu device_id=%hhu module_id=%hhu D=%d J=%d A=%d E=%d M=%d", 322 322 __entry->id, __entry->device_id, __entry->module_id, 323 323 __entry->disconnected, __entry->ejected, __entry->active, 324 324 __entry->enabled, __entry->mode_switch) ··· 392 392 __entry->disconnected = module->disconnected; 393 393 ), 394 394 395 - TP_printk("greybus: hd_bus_id=%d module_id=%hhu num_interfaces=%zu disconnected=%d", 395 + TP_printk("hd_bus_id=%d module_id=%hhu num_interfaces=%zu disconnected=%d", 396 396 __entry->hd_bus_id, __entry->module_id, 397 397 __entry->num_interfaces, __entry->disconnected) 398 398 ); ··· 445 445 __entry->buffer_size_max = hd->buffer_size_max; 446 446 ), 447 447 448 - TP_printk("greybus: bus_id=%d num_cports=%zu mtu=%zu", 448 + TP_printk("bus_id=%d num_cports=%zu mtu=%zu", 449 449 __entry->bus_id, __entry->num_cports, 450 450 __entry->buffer_size_max) 451 451 );