aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/Documentation/perf-inject.txt9
-rw-r--r--tools/perf/Documentation/perf-report.txt9
-rw-r--r--tools/perf/Documentation/perf-script.txt9
-rw-r--r--tools/perf/util/auxtrace.c5
-rw-r--r--tools/perf/util/auxtrace.h2
5 files changed, 21 insertions, 13 deletions
diff --git a/tools/perf/Documentation/perf-inject.txt b/tools/perf/Documentation/perf-inject.txt
index bb1f655e1361..b876ae312699 100644
--- a/tools/perf/Documentation/perf-inject.txt
+++ b/tools/perf/Documentation/perf-inject.txt
@@ -52,11 +52,12 @@ OPTIONS
52 b synthesize branches events 52 b synthesize branches events
53 c synthesize branches events (calls only) 53 c synthesize branches events (calls only)
54 r synthesize branches events (returns only) 54 r synthesize branches events (returns only)
55 x synthesize transactions events
55 e synthesize error events 56 e synthesize error events
56 d create a debug log 57 d create a debug log
57 g synthesize a call chain for instructions events 58 g synthesize a call chain (use with i or x)
58 59
59 The default is all events i.e. the same as --itrace=ibe 60 The default is all events i.e. the same as --itrace=ibxe
60 61
61 In addition, the period (default 100000) for instructions events 62 In addition, the period (default 100000) for instructions events
62 can be specified in units of: 63 can be specified in units of:
@@ -67,8 +68,8 @@ OPTIONS
67 us microseconds 68 us microseconds
68 ns nanoseconds (default) 69 ns nanoseconds (default)
69 70
70 Also the call chain size (default 16, max. 1024) for instructions 71 Also the call chain size (default 16, max. 1024) for instructions or
71 events can be specified. 72 transactions events can be specified.
72 73
73SEE ALSO 74SEE ALSO
74-------- 75--------
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt
index b771340d193d..27190ed06f9c 100644
--- a/tools/perf/Documentation/perf-report.txt
+++ b/tools/perf/Documentation/perf-report.txt
@@ -331,11 +331,12 @@ OPTIONS
331 b synthesize branches events 331 b synthesize branches events
332 c synthesize branches events (calls only) 332 c synthesize branches events (calls only)
333 r synthesize branches events (returns only) 333 r synthesize branches events (returns only)
334 x synthesize transactions events
334 e synthesize error events 335 e synthesize error events
335 d create a debug log 336 d create a debug log
336 g synthesize a call chain for instructions events 337 g synthesize a call chain (use with i or x)
337 338
338 The default is all events i.e. the same as --itrace=ibe 339 The default is all events i.e. the same as --itrace=ibxe
339 340
340 In addition, the period (default 100000) for instructions events 341 In addition, the period (default 100000) for instructions events
341 can be specified in units of: 342 can be specified in units of:
@@ -346,8 +347,8 @@ OPTIONS
346 us microseconds 347 us microseconds
347 ns nanoseconds (default) 348 ns nanoseconds (default)
348 349
349 Also the call chain size (default 16, max. 1024) for instructions 350 Also the call chain size (default 16, max. 1024) for instructions or
350 events can be specified. 351 transactions events can be specified.
351 352
352 To disable decoding entirely, use --no-itrace. 353 To disable decoding entirely, use --no-itrace.
353 354
diff --git a/tools/perf/Documentation/perf-script.txt b/tools/perf/Documentation/perf-script.txt
index b29cd2f17d13..c82df572fac2 100644
--- a/tools/perf/Documentation/perf-script.txt
+++ b/tools/perf/Documentation/perf-script.txt
@@ -235,11 +235,12 @@ OPTIONS
235 b synthesize branches events 235 b synthesize branches events
236 c synthesize branches events (calls only) 236 c synthesize branches events (calls only)
237 r synthesize branches events (returns only) 237 r synthesize branches events (returns only)
238 x synthesize transactions events
238 e synthesize error events 239 e synthesize error events
239 d create a debug log 240 d create a debug log
240 g synthesize a call chain for instructions events 241 g synthesize a call chain (use with i or x)
241 242
242 The default is all events i.e. the same as --itrace=ibe 243 The default is all events i.e. the same as --itrace=ibxe
243 244
244 In addition, the period (default 100000) for instructions events 245 In addition, the period (default 100000) for instructions events
245 can be specified in units of: 246 can be specified in units of:
@@ -250,8 +251,8 @@ OPTIONS
250 us microseconds 251 us microseconds
251 ns nanoseconds (default) 252 ns nanoseconds (default)
252 253
253 Also the call chain size (default 16, max. 1024) for instructions 254 Also the call chain size (default 16, max. 1024) for instructions or
254 events can be specified. 255 transactions events can be specified.
255 256
256 To disable decoding entirely, use --no-itrace. 257 To disable decoding entirely, use --no-itrace.
257 258
diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c
index 28ce134a61ad..129371048fc1 100644
--- a/tools/perf/util/auxtrace.c
+++ b/tools/perf/util/auxtrace.c
@@ -888,6 +888,7 @@ void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts)
888{ 888{
889 synth_opts->instructions = true; 889 synth_opts->instructions = true;
890 synth_opts->branches = true; 890 synth_opts->branches = true;
891 synth_opts->transactions = true;
891 synth_opts->errors = true; 892 synth_opts->errors = true;
892 synth_opts->period_type = PERF_ITRACE_DEFAULT_PERIOD_TYPE; 893 synth_opts->period_type = PERF_ITRACE_DEFAULT_PERIOD_TYPE;
893 synth_opts->period = PERF_ITRACE_DEFAULT_PERIOD; 894 synth_opts->period = PERF_ITRACE_DEFAULT_PERIOD;
@@ -960,6 +961,9 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str,
960 case 'b': 961 case 'b':
961 synth_opts->branches = true; 962 synth_opts->branches = true;
962 break; 963 break;
964 case 'x':
965 synth_opts->transactions = true;
966 break;
963 case 'e': 967 case 'e':
964 synth_opts->errors = true; 968 synth_opts->errors = true;
965 break; 969 break;
@@ -975,7 +979,6 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str,
975 synth_opts->returns = true; 979 synth_opts->returns = true;
976 break; 980 break;
977 case 'g': 981 case 'g':
978 synth_opts->instructions = true;
979 synth_opts->callchain = true; 982 synth_opts->callchain = true;
980 synth_opts->callchain_sz = 983 synth_opts->callchain_sz =
981 PERF_ITRACE_DEFAULT_CALLCHAIN_SZ; 984 PERF_ITRACE_DEFAULT_CALLCHAIN_SZ;
diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h
index 77b46994e8ea..8c6cbb123fe5 100644
--- a/tools/perf/util/auxtrace.h
+++ b/tools/perf/util/auxtrace.h
@@ -54,6 +54,7 @@ enum itrace_period_type {
54 * because 'perf inject' will write it out 54 * because 'perf inject' will write it out
55 * @instructions: whether to synthesize 'instructions' events 55 * @instructions: whether to synthesize 'instructions' events
56 * @branches: whether to synthesize 'branches' events 56 * @branches: whether to synthesize 'branches' events
57 * @transactions: whether to synthesize events for transactions
57 * @errors: whether to synthesize decoder error events 58 * @errors: whether to synthesize decoder error events
58 * @dont_decode: whether to skip decoding entirely 59 * @dont_decode: whether to skip decoding entirely
59 * @log: write a decoding log 60 * @log: write a decoding log
@@ -69,6 +70,7 @@ struct itrace_synth_opts {
69 bool inject; 70 bool inject;
70 bool instructions; 71 bool instructions;
71 bool branches; 72 bool branches;
73 bool transactions;
72 bool errors; 74 bool errors;
73 bool dont_decode; 75 bool dont_decode;
74 bool log; 76 bool log;