path: root/tools/perf/perf.h
diff options
authorAndi Kleen <>2015-02-24 15:13:40 -0800
committerArnaldo Carvalho de Melo <>2015-02-25 12:42:23 -0300
commit85c273d2b6569706762cf400079ca0699e007d81 (patch)
treeff85ad53d0f7ea05d8bea1aa685d7df33ad1f6ac /tools/perf/perf.h
parent506740654db4fa5b6e1229147cee3cf8c7e07eca (diff)
perf record: Support recording running/enabled time
Add an option to perf record to record running/enabled time for read events, similar to what stat does. This is useful to understand multiplexing problems. Right now the report support is not great, but at least report -D already supports it. Signed-off-by: Andi Kleen <> Acked-by: Jiri Olsa <> Cc: Namhyung Kim <> Link: [ Fixed the Documentation entry to match the OPT_BOOLEAN one ] Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/perf.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 1dabb8553499..1caa70a4a9e1 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -53,6 +53,7 @@ struct record_opts {
bool sample_time;
bool period;
bool sample_intr_regs;
+ bool running_time;
unsigned int freq;
unsigned int mmap_pages;
unsigned int user_freq;