[PATCH 4/6] perf-events: export enable/disable event symbols to kernel modules

Ingo Molnar mingo at elte.hu
Fri Feb 26 03:23:15 EST 2010


* Will Deacon <will.deacon at arm.com> 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 <mingo at elte.hu>
> Signed-off-by: Will Deacon <will.deacon at arm.com>
> ---
>  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



More information about the linux-arm-kernel mailing list