mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
s390 cio: Rewrite trace point in s390_cio_adapter_int
Tools like 'perf stat' parse the trace point format files defined in /sys/kernel/debug/tracing/events/s390/.../format to handle the print fmt: statement. The kernel provides a library in directory linux/tools/lib/traceevent/* for this reason. This library can not handle structures or unions defined in the TRACE_EVENT/TP_STRUCT__entry macros with __field_struct macro. There is no possibility to extract a structure member (which might be a bit field) since there is no packing information nor bit field offset by parsing the printf fmt line. Therefore rewrite the TRACE_EVENT macro and add the __field macro for the necessary members. Keep the __fieldstruct macro to extract the complete structure when dumps are analysed. Note that the same information is displayed, this is no interface change. Signed-off-by: Thomas Richter <[email protected]> Reviewed-by: Peter Oberparleiter <[email protected]> Acked-by: Sebastian Ott <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
67faae1567
commit
27c0620ce9
1 changed files with 3 additions and 1 deletions
|
|
@ -331,11 +331,13 @@ TRACE_EVENT(s390_cio_adapter_int,
|
|||
TP_ARGS(tpi_info),
|
||||
TP_STRUCT__entry(
|
||||
__field_struct(struct tpi_info, tpi_info)
|
||||
__field(u8, isc)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->tpi_info = *tpi_info;
|
||||
__entry->isc = tpi_info->isc;
|
||||
),
|
||||
TP_printk("isc=%d", __entry->tpi_info.isc)
|
||||
TP_printk("isc=%d", __entry->isc)
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue