Expose perf_event_aux_pause() as an external function, this will be used by eBPF APIs in sequential changes. Signed-off-by: Leo Yan <leo.yan@xxxxxxx> --- include/linux/perf_event.h | 1 + kernel/events/core.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index cb99ec8c9e96..890b7ba4a729 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -1162,6 +1162,7 @@ int perf_event_read_local(struct perf_event *event, u64 *value, u64 *enabled, u64 *running); extern u64 perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running); +extern void perf_event_aux_pause(struct perf_event *event, bool pause); extern struct perf_callchain_entry *perf_callchain(struct perf_event *event, struct pt_regs *regs); diff --git a/kernel/events/core.c b/kernel/events/core.c index 065f9188b44a..8deb356a915e 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -8032,7 +8032,7 @@ static void __perf_event_aux_pause(struct perf_event *event, bool pause) } } -static void perf_event_aux_pause(struct perf_event *event, bool pause) +void perf_event_aux_pause(struct perf_event *event, bool pause) { struct perf_buffer *rb; -- 2.34.1