[PATCH 4/6] perf-events: export enable/disable event symbols to kernel modules
From: Ingo Molnar <hidden>
Date: 2010-02-26 08:23:15
From: Ingo Molnar <hidden>
Date: 2010-02-26 08:23:15
* Will Deacon [off-list ref] wrote:
The perf_event_enable and perf_event_disable functions are used to control the activation of perf-events for a given context or CPU. This patch exports these symbols so that they can be used by kernel modules. Without these symbols, an event must be destroyed and recreated to disable or enable it respectively. The maximum number of perf-events is also made available to modules via the perf_get_max_events function. Cc: Ingo Molnar <redacted> Signed-off-by: Will Deacon <redacted> --- include/linux/perf_event.h | 1 + kernel/perf_event.c | 8 ++++++++ 2 files changed, 9 insertions(+), 0 deletions(-)
Hm, what modules would like to use them, and in what fashion? Thanks, Ingo