


+ if (synth_opts->log_plus_flags & AUXTRACE_LOG_FLG_ON_ERROR) If (get_flags(&p, &synth_opts->log_plus_flags, * about the options parsed here, which is introduced after this -1532,6 +1543,8 int itrace_do_parse_synth_opts(struct itrace_synth_opts *synth_opts, * Please check tools/perf/Documentation/perf-script.txt for information + return sz ?: ITRACE_DFLT_LOG_ON_ERROR_SZ + perf_config_scan("bug-log-buffer-size", "%u", &sz) +static unsigned int itrace_log_on_error_size(void) +#define ITRACE_DFLT_LOG_ON_ERROR_SZ 16384
#Itrace linux code#
The code is added dynamically while the executable is running. Pin allows a tool to insert arbitrary code (written in C or C++) in arbitrary places in the executable. It supports Linux, Windows, and MacOs executables for Intel (R) IA-32, Intel64, and Itanium (R) processors. #include -1434,6 +1435,16 static int get_flags(const char **ptr, unsigned int *plus_flags, unsigned int *m Pin is a tool for the instrumentation of programs. The default is 16384.ĭiff -git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c + Refer 'itrace' option of linkperf:perf-script or + Log size in bytes to output when using the option -itrace=d+e If the directory does not exist or has the wrong file type, a/tools/perf/Documentation/perf-config.txt If supported, the 'q' option may be repeated to increase the effect.ĭiff -git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt + e output only on errors (size configurable - see linkperf:perf-config) +++ -64,6 +64,7 messages will or will not be logged. Tools/perf/util/auxtrace.c | 13 +++++++++++++ĭiff -git a/tools/perf/Documentation/itrace.txt b/tools/perf/Documentation/itrace.txt Tools/perf/Documentation/perf-config.txt | 7 +++++++ Tools/perf/Documentation/itrace.txt | 1 + The log can be very big so reducing the output to where there are decodingĮrrors can be useful for analyzing errors.īy default, the log size in that case is 16384 bytes, but can be altered by Messages sorted by: Īdd flag +e to the itrace d (decoder debug log) option to get output only.Next in thread: Adrian Hunter: " perf intel-pt: Improve object code read error message".In reply to: Adrian Hunter: " perf tools: Add perf_config_scan()".Previous message: Adrian Hunter: " perf tools: Add perf_config_scan()".Next message: Adrian Hunter: " perf intel-pt: Improve object code read error message".Linux-Kernel Archive: perf auxtrace: Add itrace option flag d+e to log on error perf auxtrace: Add itrace option flag d+e to log on error From: Adrian Hunter
