History

perf: Fix UAPI export of PERF_EVENT_IOC_ID

Without the following patch I have problems compiling code using the new PERF_EVENT_IOC_ID ioctl(). It looks like u64 was used instead of __u64

Vince Weaver committed 13 years ago

Commit a8e01081 parent 06c939c1 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/perf_event.h+1−1
@@ -324,7 +324,7 @@ struct perf_event_attr { · 323 unmodified lines
324#define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64)324#define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64)
325#define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5)325#define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5)
326#define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *)326#define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *)
327#define PERF_EVENT_IOC_ID _IOR('$', 7, u64 *)327#define PERF_EVENT_IOC_ID _IOR('$', 7, __u64 *)
328 328
329enum perf_event_ioc_flags {329enum perf_event_ioc_flags {
330 PERF_IOC_FLAG_GROUP = 1U << 0,330 PERF_IOC_FLAG_GROUP = 1U << 0,