]> git.baikalelectronics.ru Git - kernel.git/commit
s390 cio: Rewrite trace point in s390_cio_interrupt
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 3 Jul 2018 07:41:12 +0000 (09:41 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 23 Jul 2018 11:49:52 +0000 (13:49 +0200)
commit07a5a2df3895f135f69ff1d8ead84c42509effdd
treeb2c1a2f59c74f8cb7c2408858c6e75654eed6757
parentd67133309d7a52ee35b94eae243cccc69ce9954e
s390 cio: Rewrite trace point in s390_cio_interrupt

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 fields.
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 <tmricht@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Acked-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/trace.h