summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2017-09-05 19:00:28 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-09-13 14:49:14 +0200
commit84c417422798c897f637b0249f64a52807b4a61b (patch)
treee68d787314c8837fd7b0bf5b44c2c752813102a7 /tools/perf/perf.h
parentperf stat: Update walltime_nsecs_stats in interval mode (diff)
downloadlinux-84c417422798c897f637b0249f64a52807b4a61b.tar.xz
linux-84c417422798c897f637b0249f64a52807b4a61b.zip
perf record: Support direct --user-regs arguments
USER_REGS can currently only collected implicitely with call graph recording. Sometimes it is useful to see them separately, and filter them. Add a new --user-regs option to record that is similar to --intr-regs, but acts on user regs. Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20170905170029.19722-1-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r--tools/perf/perf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index dc442ba21bf6..fbb0a9cd0ac6 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -65,6 +65,7 @@ struct record_opts {
unsigned int user_freq;
u64 branch_stack;
u64 sample_intr_regs;
+ u64 sample_user_regs;
u64 default_interval;
u64 user_interval;
size_t auxtrace_snapshot_size;