diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-03 12:23:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-03 12:23:23 -0400 |
commit | e92d51aff5068b96346a45e5118680b3bc3490c2 (patch) | |
tree | 63c29d6c4672265a9ca791754258606b89bd4b85 /include | |
parent | d0d6ab53c9abd7dd1070f43a0455328874127ba8 (diff) | |
parent | 75e8387685f6c65feb195a4556110b58f852b848 (diff) |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Thomas Gleixner:
- Prevent a potential inconistency in the perf user space access which
might lead to evading sanity checks.
- Prevent perf recording function trace entries twice
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/ftrace: Fix double traces of perf on ftrace:function
perf/core: Fix potential double-fetch bug
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 2 | ||||
-rw-r--r-- | include/linux/trace_events.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index b14095bcf4bb..c00cd4b02f32 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -1201,7 +1201,7 @@ extern void perf_event_init(void); | |||
1201 | extern void perf_tp_event(u16 event_type, u64 count, void *record, | 1201 | extern void perf_tp_event(u16 event_type, u64 count, void *record, |
1202 | int entry_size, struct pt_regs *regs, | 1202 | int entry_size, struct pt_regs *regs, |
1203 | struct hlist_head *head, int rctx, | 1203 | struct hlist_head *head, int rctx, |
1204 | struct task_struct *task); | 1204 | struct task_struct *task, struct perf_event *event); |
1205 | extern void perf_bp_event(struct perf_event *event, void *data); | 1205 | extern void perf_bp_event(struct perf_event *event, void *data); |
1206 | 1206 | ||
1207 | #ifndef perf_misc_flags | 1207 | #ifndef perf_misc_flags |
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 536c80ff7ad9..5012b524283d 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
@@ -508,9 +508,9 @@ void perf_trace_run_bpf_submit(void *raw_data, int size, int rctx, | |||
508 | static inline void | 508 | static inline void |
509 | perf_trace_buf_submit(void *raw_data, int size, int rctx, u16 type, | 509 | perf_trace_buf_submit(void *raw_data, int size, int rctx, u16 type, |
510 | u64 count, struct pt_regs *regs, void *head, | 510 | u64 count, struct pt_regs *regs, void *head, |
511 | struct task_struct *task) | 511 | struct task_struct *task, struct perf_event *event) |
512 | { | 512 | { |
513 | perf_tp_event(type, count, raw_data, size, regs, head, rctx, task); | 513 | perf_tp_event(type, count, raw_data, size, regs, head, rctx, task, event); |
514 | } | 514 | } |
515 | #endif | 515 | #endif |
516 | 516 | ||