-
- Downloads
perf record: Add clockid parameter
Teach perf-record about the new perf_event_attr::{use_clockid, clockid} fields. Add a simple parameter to set the clock (if any) to be used for the events to be recorded into the data file. Since we store the entire perf_event_attr in the EVENT_DESC section we also already store the used clockid in the data file. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by:
David Ahern <dsahern@gmail.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Yunlong Song <yunlong.song@huawei.com> Link: http://lkml.kernel.org/r/20150407154851.GR23123@twins.programming.kicks-ass.net [ Conditionally define CLOCK_BOOTTIME, at least rhel6 doesn't have it - dsahern Ditto for CLOCK_MONOTONIC_RAW, sles11sp2 doesn't have it - yunlong.song ] Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/Documentation/perf-record.txt 7 additions, 0 deletionstools/perf/Documentation/perf-record.txt
- tools/perf/builtin-record.c 87 additions, 0 deletionstools/perf/builtin-record.c
- tools/perf/perf.h 2 additions, 0 deletionstools/perf/perf.h
- tools/perf/util/evsel.c 55 additions, 4 deletionstools/perf/util/evsel.c
- tools/perf/util/header.c 3 additions, 0 deletionstools/perf/util/header.c
Loading
Please register or sign in to comment