Message ID | 1483467027-14547-7-git-send-email-will.deacon@arm.com |
---|---|
State | Superseded |
Headers | show |
On Tue, Jan 03, 2017 at 06:10:23PM +0000, Will Deacon wrote: > +EXPORT_SYMBOL(perf_aux_output_begin); > +EXPORT_SYMBOL(perf_aux_output_end); > +EXPORT_SYMBOL(perf_aux_output_skip); > +EXPORT_SYMBOL(perf_get_aux); $ git grep EXPORT kernel/events/ kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_disable); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_enable); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_addr_filters_sync); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_refresh); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_release_kernel); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_read_value); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_register_guest_info_callbacks); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_unregister_guest_info_callbacks); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_swevent_get_recursion_context); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_trace_run_bpf_submit); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_tp_event); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_pmu_register); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_pmu_unregister); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_create_kernel_counter); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_pmu_migrate_context); kernel/events/core.c:EXPORT_SYMBOL_GPL(perf_event_sysfs_show); kernel/events/hw_breakpoint.c:EXPORT_SYMBOL_GPL(register_user_hw_breakpoint); kernel/events/hw_breakpoint.c:EXPORT_SYMBOL_GPL(modify_user_hw_breakpoint); kernel/events/hw_breakpoint.c:EXPORT_SYMBOL_GPL(unregister_hw_breakpoint); kernel/events/hw_breakpoint.c:EXPORT_SYMBOL_GPL(register_wide_hw_breakpoint); kernel/events/hw_breakpoint.c:EXPORT_SYMBOL_GPL(unregister_wide_hw_breakpoint); kernel/events/uprobes.c:EXPORT_SYMBOL_GPL(uprobe_register); kernel/events/uprobes.c:EXPORT_SYMBOL_GPL(uprobe_unregister); I see a distinct difference here... :-)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c index 257fa460b846..13b8a46bd517 100644 --- a/kernel/events/ring_buffer.c +++ b/kernel/events/ring_buffer.c @@ -397,6 +397,7 @@ void *perf_aux_output_begin(struct perf_output_handle *handle, return NULL; } +EXPORT_SYMBOL(perf_aux_output_begin); /* * Commit the data written by hardware into the ring buffer by adjusting @@ -458,6 +459,7 @@ void perf_aux_output_end(struct perf_output_handle *handle, unsigned long size, rb_free_aux(rb); ring_buffer_put(rb); } +EXPORT_SYMBOL(perf_aux_output_end); /* * Skip over a given number of bytes in the AUX buffer, due to, for example, @@ -486,6 +488,7 @@ int perf_aux_output_skip(struct perf_output_handle *handle, unsigned long size) return 0; } +EXPORT_SYMBOL(perf_aux_output_skip); void *perf_get_aux(struct perf_output_handle *handle) { @@ -495,6 +498,7 @@ void *perf_get_aux(struct perf_output_handle *handle) return handle->rb->aux_priv; } +EXPORT_SYMBOL(perf_get_aux); #define PERF_AUX_GFP (GFP_KERNEL | __GFP_ZERO | __GFP_NOWARN | __GFP_NORETRY)
Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Will Deacon <will.deacon@arm.com> --- kernel/events/ring_buffer.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.1.4