summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/auxtrace.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-10-27 11:03:30 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-10-27 16:20:08 -0300
commitb6778fe1bbe486e65439a50226b5c7b70dc11d94 (patch)
tree1379000c0922df77acafe3e3996f8bae0b7d1c22 /tools/perf/util/auxtrace.c
parentcf14013b6ccce97901fa91eae4934f3fb4380401 (diff)
downloadlinux-stable-b6778fe1bbe486e65439a50226b5c7b70dc11d94.tar.gz
linux-stable-b6778fe1bbe486e65439a50226b5c7b70dc11d94.tar.bz2
linux-stable-b6778fe1bbe486e65439a50226b5c7b70dc11d94.zip
perf auxtrace: Add itrace A option to approximate IPC
Add an option to specify that synthesized IPC can be approximate, rather than completely accurate. Reviewed-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20211027080334.365596-3-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/auxtrace.c')
-rw-r--r--tools/perf/util/auxtrace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c
index 8d2865b9ade2..c679394b898d 100644
--- a/tools/perf/util/auxtrace.c
+++ b/tools/perf/util/auxtrace.c
@@ -1564,6 +1564,9 @@ int itrace_do_parse_synth_opts(struct itrace_synth_opts *synth_opts,
case 'q':
synth_opts->quick += 1;
break;
+ case 'A':
+ synth_opts->approx_ipc = true;
+ break;
case 'Z':
synth_opts->timeless_decoding = true;
break;