aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 136fe0495374..a79e59fc3b7d 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1125,6 +1125,9 @@ extern void perf_event_mmap(struct vm_area_struct *vma);
1125 1125
1126extern void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len, 1126extern void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len,
1127 bool unregister, const char *sym); 1127 bool unregister, const char *sym);
1128extern void perf_event_bpf_event(struct bpf_prog *prog,
1129 enum perf_bpf_event_type type,
1130 u16 flags);
1128 1131
1129extern struct perf_guest_info_callbacks *perf_guest_cbs; 1132extern struct perf_guest_info_callbacks *perf_guest_cbs;
1130extern int perf_register_guest_info_callbacks(struct perf_guest_info_callbacks *callbacks); 1133extern int perf_register_guest_info_callbacks(struct perf_guest_info_callbacks *callbacks);
@@ -1350,6 +1353,9 @@ static inline void perf_event_mmap(struct vm_area_struct *vma) { }
1350typedef int (perf_ksymbol_get_name_f)(char *name, int name_len, void *data); 1353typedef int (perf_ksymbol_get_name_f)(char *name, int name_len, void *data);
1351static inline void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len, 1354static inline void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len,
1352 bool unregister, const char *sym) { } 1355 bool unregister, const char *sym) { }
1356static inline void perf_event_bpf_event(struct bpf_prog *prog,
1357 enum perf_bpf_event_type type,
1358 u16 flags) { }
1353static inline void perf_event_exec(void) { } 1359static inline void perf_event_exec(void) { }
1354static inline void perf_event_comm(struct task_struct *tsk, bool exec) { } 1360static inline void perf_event_comm(struct task_struct *tsk, bool exec) { }
1355static inline void perf_event_namespaces(struct task_struct *tsk) { } 1361static inline void perf_event_namespaces(struct task_struct *tsk) { }