diff options
author | Stephane Eranian <eranian@google.com> | 2014-09-24 07:48:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-11-16 05:42:02 -0500 |
commit | 4b6c51773d86883a2e80cffadbe4f178ac1babd8 (patch) | |
tree | ab792ed88d2eb5569cc6e82f8df7466e8d860d60 /tools | |
parent | 26ff0f0af79d0a9fc1f783d45e470059b840c7c1 (diff) |
perf record: Add new -I option to sample interrupted machine state
Add -I/--intr-regs option to capture machine state registers at
interrupt.
Add the corresponding man page description
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1411559322-16548-6-git-send-email-eranian@google.com
Cc: cebbert.lkml@gmail.com
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Documentation/perf-record.txt | 6 | ||||
-rw-r--r-- | tools/perf/builtin-record.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt index 398f8d53bd6d..af9a54ece024 100644 --- a/tools/perf/Documentation/perf-record.txt +++ b/tools/perf/Documentation/perf-record.txt | |||
@@ -214,6 +214,12 @@ if combined with -a or -C options. | |||
214 | After starting the program, wait msecs before measuring. This is useful to | 214 | After starting the program, wait msecs before measuring. This is useful to |
215 | filter out the startup phase of the program, which is often very different. | 215 | filter out the startup phase of the program, which is often very different. |
216 | 216 | ||
217 | -I:: | ||
218 | --intr-regs:: | ||
219 | Capture machine state (registers) at interrupt, i.e., on counter overflows for | ||
220 | each sample. List of captured registers depends on the architecture. This option | ||
221 | is off by default. | ||
222 | |||
217 | SEE ALSO | 223 | SEE ALSO |
218 | -------- | 224 | -------- |
219 | linkperf:perf-stat[1], linkperf:perf-list[1] | 225 | linkperf:perf-stat[1], linkperf:perf-list[1] |
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 582c4da155ea..8648c6d3003d 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -811,6 +811,8 @@ struct option __record_options[] = { | |||
811 | "sample transaction flags (special events only)"), | 811 | "sample transaction flags (special events only)"), |
812 | OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread, | 812 | OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread, |
813 | "use per-thread mmaps"), | 813 | "use per-thread mmaps"), |
814 | OPT_BOOLEAN('I', "intr-regs", &record.opts.sample_intr_regs, | ||
815 | "Sample machine registers on interrupt"), | ||
814 | OPT_END() | 816 | OPT_END() |
815 | }; | 817 | }; |
816 | 818 | ||