OSDN Git Service

perf auxtrace: Add itrace option flag d+e to log on error
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 5 Sep 2022 07:34:20 +0000 (10:34 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:21 +0000 (08:55 -0300)
commita7fdd30a22448f17e942436b9db2a94b48218eb6
tree8af9e81c5fa6c506e9e5390259e424d34b1d86f0
parentc3ca8d44185cc2ac5ca75d2d38647979da5b0035
perf auxtrace: Add itrace option flag d+e to log on error

Add flag +e to the itrace d (decoder debug log) option to get output only
on decoding errors.

The log can be very big so reducing the output to where there are decoding
errors can be useful for analyzing errors.

By default, the log size in that case is 16384 bytes, but can be altered by
perf config e.g. perf config itrace.debug-log-buffer-size=30000

Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220905073424.3971-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/itrace.txt
tools/perf/Documentation/perf-config.txt
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h