Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298338
b: refs/heads/master
c: b01c3a0
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Olsa authored and Ingo Molnar committed Mar 24, 2012
1 parent 17baad5 commit c210403
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04a54d27ce9698d108d29c8a6a50c28f7446336b
refs/heads/master: b01c3a0010aabadf745f3e7fdb9cab682e0a28a2
7 changes: 0 additions & 7 deletions trunk/include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,6 @@ struct perf_event_mmap_page {
__u64 data_tail; /* user-space written tail */
};

/*
* Build time assertion that we keep the data_head at the intended location.
* IOW, validation we got the __reserved[] size right.
*/
extern char __assert_mmap_data_head_offset
[1 - 2*!!(offsetof(struct perf_event_mmap_page, data_head) != 1024)];

#define PERF_RECORD_MISC_CPUMODE_MASK (7 << 0)
#define PERF_RECORD_MISC_CPUMODE_UNKNOWN (0 << 0)
#define PERF_RECORD_MISC_KERNEL (1 << 0)
Expand Down
7 changes: 7 additions & 0 deletions trunk/kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -7116,6 +7116,13 @@ void __init perf_event_init(void)

/* do not patch jump label more than once per second */
jump_label_rate_limit(&perf_sched_events, HZ);

/*
* Build time assertion that we keep the data_head at the intended
* location. IOW, validation we got the __reserved[] size right.
*/
BUILD_BUG_ON((offsetof(struct perf_event_mmap_page, data_head))
!= 1024);
}

static int __init perf_event_sysfs_init(void)
Expand Down

0 comments on commit c210403

Please sign in to comment.