]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Use seq_buf_hex_dump() to dump buffers
authorPiotr Maziarz <piotrx.maziarz@linux.intel.com>
Thu, 7 Nov 2019 12:45:38 +0000 (13:45 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 14 Nov 2019 18:15:12 +0000 (13:15 -0500)
commitdb1938dac0384f9b430f9abdd80a9e4704084051
treed69ed71105f51439cc4bb84b997bd6410ad8ded7
parentf5edfc35a15bb0fc657e13234cbff2d00fd05599
tracing: Use seq_buf_hex_dump() to dump buffers

Without this, buffers can be printed with __print_array macro that has
no formatting options and can be hard to read. The other way is to
mimic formatting capability with multiple calls of trace event with one
call per row which gives performance impact and different timestamp in
each row.

Link: http://lkml.kernel.org/r/1573130738-29390-2-git-send-email-piotrx.maziarz@linux.intel.com
Signed-off-by: Piotr Maziarz <piotrx.maziarz@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/trace_events.h
include/linux/trace_seq.h
include/trace/trace_events.h
kernel/trace/trace_output.c
kernel/trace/trace_seq.c