diff options
Diffstat (limited to 'include/linux/trace_events.h')
-rw-r--r-- | include/linux/trace_events.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index af44e7c2d577..8a1442c4e513 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
@@ -467,6 +467,7 @@ trace_trigger_soft_disabled(struct trace_event_file *file) | |||
467 | unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx); | 467 | unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx); |
468 | int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog); | 468 | int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog); |
469 | void perf_event_detach_bpf_prog(struct perf_event *event); | 469 | void perf_event_detach_bpf_prog(struct perf_event *event); |
470 | int perf_event_query_prog_array(struct perf_event *event, void __user *info); | ||
470 | #else | 471 | #else |
471 | static inline unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx) | 472 | static inline unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx) |
472 | { | 473 | { |
@@ -481,6 +482,11 @@ perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog) | |||
481 | 482 | ||
482 | static inline void perf_event_detach_bpf_prog(struct perf_event *event) { } | 483 | static inline void perf_event_detach_bpf_prog(struct perf_event *event) { } |
483 | 484 | ||
485 | static inline int | ||
486 | perf_event_query_prog_array(struct perf_event *event, void __user *info) | ||
487 | { | ||
488 | return -EOPNOTSUPP; | ||
489 | } | ||
484 | #endif | 490 | #endif |
485 | 491 | ||
486 | enum { | 492 | enum { |
@@ -528,6 +534,7 @@ do { \ | |||
528 | struct perf_event; | 534 | struct perf_event; |
529 | 535 | ||
530 | DECLARE_PER_CPU(struct pt_regs, perf_trace_regs); | 536 | DECLARE_PER_CPU(struct pt_regs, perf_trace_regs); |
537 | DECLARE_PER_CPU(int, bpf_kprobe_override); | ||
531 | 538 | ||
532 | extern int perf_trace_init(struct perf_event *event); | 539 | extern int perf_trace_init(struct perf_event *event); |
533 | extern void perf_trace_destroy(struct perf_event *event); | 540 | extern void perf_trace_destroy(struct perf_event *event); |