@@ -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);
@@ -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;
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@arm.com> --- include/linux/perf_event.h | 1 + kernel/events/core.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)