From a582e6f01b90211933e70edcec9bc0bbb1157402 Mon Sep 17 00:00:00 2001 From: Michael Cree Date: Tue, 8 Dec 2009 14:27:01 -0500 Subject: alpha: Add minimal support for software performance events In the kernel the patch enables configuration of the perf event option, adds the perf_event_open syscall, and includes a minimal architecture specific asm/perf_event.h header file. Signed-off-by: Michael Cree Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Signed-off-by: Matt Turner --- arch/alpha/include/asm/perf_event.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 arch/alpha/include/asm/perf_event.h (limited to 'arch/alpha/include/asm/perf_event.h') diff --git a/arch/alpha/include/asm/perf_event.h b/arch/alpha/include/asm/perf_event.h new file mode 100644 index 00000000000..3bef8522017 --- /dev/null +++ b/arch/alpha/include/asm/perf_event.h @@ -0,0 +1,9 @@ +#ifndef __ASM_ALPHA_PERF_EVENT_H +#define __ASM_ALPHA_PERF_EVENT_H + +/* Alpha only supports software events through this interface. */ +static inline void set_perf_event_pending(void) { } + +#define PERF_EVENT_INDEX_OFFSET 0 + +#endif /* __ASM_ALPHA_PERF_EVENT_H */ -- cgit v1.2.3-70-g09d2