Skip to content

Commit 5197153

Browse files
ahunter6acmel
authored andcommitted
perf auxtrace: Add itrace 'q' option for quicker, less detailed decoding
The 'q' option is for modes of decoding that are quicker because they skip or omit decoding some aspects of trace data. If supported, the 'q' option may be repeated to increase the effect. Signed-off-by: Adrian Hunter <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d4575f5 commit 5197153

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tools/perf/Documentation/itrace.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
l synthesize last branch entries (use with i or x)
1919
L synthesize last branch entries on existing event records
2020
s skip initial number of events
21+
q quicker (less detailed) decoding
2122

2223
The default is all events i.e. the same as --itrace=ibxwpe,
2324
except for perf script where it is --itrace=ce
@@ -58,3 +59,5 @@
5859
debug messages will or will not be logged. Each flag must be preceded
5960
by either '+' or '-'. The flags are:
6061
a all perf events
62+
63+
If supported, the 'q' option may be repeated to increase the effect.

tools/perf/util/auxtrace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,9 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str,
15541554
case 'a':
15551555
synth_opts->remote_access = true;
15561556
break;
1557+
case 'q':
1558+
synth_opts->quick += 1;
1559+
break;
15571560
case ' ':
15581561
case ',':
15591562
break;

tools/perf/util/auxtrace.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ enum itrace_period_type {
100100
* @error_minus_flags: flags to affect what errors are reported
101101
* @log_plus_flags: flags to affect what is logged
102102
* @log_minus_flags: flags to affect what is logged
103+
* @quick: quicker (less detailed) decoding
103104
*/
104105
struct itrace_synth_opts {
105106
bool set;
@@ -137,6 +138,7 @@ struct itrace_synth_opts {
137138
unsigned int error_minus_flags;
138139
unsigned int log_plus_flags;
139140
unsigned int log_minus_flags;
141+
unsigned int quick;
140142
};
141143

142144
/**
@@ -642,6 +644,7 @@ bool auxtrace__evsel_is_auxtrace(struct perf_session *session,
642644
" l[len]: synthesize last branch entries (use with i or x)\n" \
643645
" L[len]: synthesize last branch entries on existing event records\n" \
644646
" sNUMBER: skip initial number of events\n" \
647+
" q: quicker (less detailed) decoding\n" \
645648
" PERIOD[ns|us|ms|i|t]: specify period to sample stream\n" \
646649
" concatenate multiple options. Default is ibxwpe or cewp\n"
647650

0 commit comments

Comments
 (0)