[RFC bpf-next 09/13] perf: Export perf_snapshot_branch_stack static key
From: Daniel Xu
Date: Tue Apr 08 2025 - 23:37:17 EST
Export the static call so that the modularized BPF verifier can run
static_call_query() against it.
Signed-off-by: Daniel Xu <dxu@xxxxxxxxx>
---
kernel/events/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 0bb21659e252..b0449209275f 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -14644,3 +14644,4 @@ struct cgroup_subsys perf_event_cgrp_subsys = {
#endif /* CONFIG_CGROUP_PERF */
DEFINE_STATIC_CALL_RET0(perf_snapshot_branch_stack, perf_snapshot_branch_stack_t);
+EXPORT_STATIC_CALL_GPL(perf_snapshot_branch_stack);
--
2.47.1