diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2013-12-12 19:52:48 +0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-12-16 17:37:52 +0400 |
commit | e28bb79d9935293a8eea5f3c771fde89db645ba7 (patch) | |
tree | 0d552a218e87c70ca55b5b103b5ef2a71477d400 /arch/s390/include/asm/perf_event.h | |
parent | 55baa2f831ae4a41da9617ab9e7cef5ebc991ec9 (diff) | |
download | linux-e28bb79d9935293a8eea5f3c771fde89db645ba7.tar.xz |
s390/perf,oprofile: Share sampling facility
Introduce reserve/release functions to share the sampling facility
between perf and oprofile.
Also improve error handling for the sampling facility support in perf.
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/perf_event.h')
-rw-r--r-- | arch/s390/include/asm/perf_event.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/perf_event.h b/arch/s390/include/asm/perf_event.h index b4eea25f379e..23d2dfa8201d 100644 --- a/arch/s390/include/asm/perf_event.h +++ b/arch/s390/include/asm/perf_event.h @@ -52,5 +52,9 @@ extern unsigned long perf_misc_flags(struct pt_regs *regs); #define TEAR_REG(hwc) ((hwc)->last_tag) #define SAMPL_RATE(hwc) ((hwc)->event_base) +/* Perf hardware reserve and release functions */ +int perf_reserve_sampling(void); +void perf_release_sampling(void); + #endif /* CONFIG_64BIT */ #endif /* _ASM_S390_PERF_EVENT_H */ |