summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
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 5031b5614f2..daedd7d87c2 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -38,6 +38,7 @@ enum hw_event_types {
* If this bit is set in the type, then trigger NMI sampling:
*/
PERF_COUNT_NMI = (1 << 30),
+ PERF_COUNT_RAW = (1 << 31),
};
/*
@@ -49,6 +50,12 @@ enum perf_record_type {
PERF_RECORD_GROUP,
};
+struct perf_counter_event {
+ u32 hw_event_type;
+ u32 hw_event_period;
+ u64 hw_raw_ctrl;
+};
+
/**
* struct hw_perf_counter - performance counter hardware details
*/
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 6cce728a626..3ecd73d03da 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -54,6 +54,7 @@ struct compat_stat;
struct compat_timeval;
struct robust_list_head;
struct getcpu_cache;
+struct perf_counter_event;
#include <linux/types.h>
#include <linux/aio_abi.h>
@@ -625,9 +626,6 @@ asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len);
int kernel_execve(const char *filename, char *const argv[], char *const envp[]);
asmlinkage int
-sys_perf_counter_open(u32 hw_event_type,
- u32 hw_event_period,
- u32 record_type,
- pid_t pid,
- int cpu);
+sys_perf_counter_open(struct perf_counter_event __user *uevent, u32 record_type,
+ pid_t pid, int cpu, int masterfd);
#endif