aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-12-08 13:26:59 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-11 09:45:46 -0500
commiteab656ae04b9d3b83265e3db01c0d2c46b748ef7 (patch)
treea8e12bd5a2da6032234dbb20ad2c75766b96c270 /include/linux
parent4ac13294e44664bb7edf4daf52edb71e7c6bbe84 (diff)
perf counters: clean up 'raw' type API
Impact: cleanup Introduce a separate hw_event type. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/perf_counter.h7
-rw-r--r--include/linux/syscalls.h8
2 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 5031b5614f25..daedd7d87c2a 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -38,6 +38,7 @@ enum hw_event_types {
38 * If this bit is set in the type, then trigger NMI sampling: 38 * If this bit is set in the type, then trigger NMI sampling:
39 */ 39 */
40 PERF_COUNT_NMI = (1 << 30), 40 PERF_COUNT_NMI = (1 << 30),
41 PERF_COUNT_RAW = (1 << 31),
41}; 42};
42 43
43/* 44/*
@@ -49,6 +50,12 @@ enum perf_record_type {
49 PERF_RECORD_GROUP, 50 PERF_RECORD_GROUP,
50}; 51};
51 52
53struct perf_counter_event {
54 u32 hw_event_type;
55 u32 hw_event_period;
56 u64 hw_raw_ctrl;
57};
58
52/** 59/**
53 * struct hw_perf_counter - performance counter hardware details 60 * struct hw_perf_counter - performance counter hardware details
54 */ 61 */
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 6cce728a6263..3ecd73d03daa 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -54,6 +54,7 @@ struct compat_stat;
54struct compat_timeval; 54struct compat_timeval;
55struct robust_list_head; 55struct robust_list_head;
56struct getcpu_cache; 56struct getcpu_cache;
57struct perf_counter_event;
57 58
58#include <linux/types.h> 59#include <linux/types.h>
59#include <linux/aio_abi.h> 60#include <linux/aio_abi.h>
@@ -625,9 +626,6 @@ asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len);
625int kernel_execve(const char *filename, char *const argv[], char *const envp[]); 626int kernel_execve(const char *filename, char *const argv[], char *const envp[]);
626 627
627asmlinkage int 628asmlinkage int
628sys_perf_counter_open(u32 hw_event_type, 629sys_perf_counter_open(struct perf_counter_event __user *uevent, u32 record_type,
629 u32 hw_event_period, 630 pid_t pid, int cpu, int masterfd);
630 u32 record_type,
631 pid_t pid,
632 int cpu);
633#endif 631#endif