]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Add sysfs entry to adjust multiplexing interval per PMU
authorStephane Eranian <eranian@google.com>
Wed, 3 Apr 2013 12:21:34 +0000 (14:21 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 May 2013 07:13:51 +0000 (09:13 +0200)
commit8d29820990aa4b6b0b90eed81eb038a9298f648e
tree913ae791ea01842768a0a71a472779a62fc6ddcc
parent920b26361689bff73eea5114e3c0118204812a90
perf: Add sysfs entry to adjust multiplexing interval per PMU

This patch adds /sys/device/xxx/perf_event_mux_interval_ms to ajust
the multiplexing interval per PMU. The unit is milliseconds. Value has
to be >= 1.

In the 4th version, we renamed the sysfs file to be more consistent
with the other /proc/sys/kernel entries for perf_events.

In the 5th version, we handle the reprogramming of the hrtimer using
hrtimer_forward_now(). That way, we sync up to new timer value quickly
(suggested by Jiri Olsa).

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/1364991694-5876-3-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/perf_event.h
kernel/events/core.c