Skip to content

Commit a9f4a6e

Browse files
sean-jcPeter Zijlstra
authored andcommitted
perf: Drop guest callback (un)register stubs
Drop perf's stubs for (un)registering guest callbacks now that KVM registration of callbacks is hidden behind GUEST_PERF_EVENTS=y. The only other user is x86 XEN_PV, and x86 unconditionally selects PERF_EVENTS. No functional change intended. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20211111020738.2512932-18-seanjc@google.com
1 parent 17ed14e commit a9f4a6e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/linux/perf_event.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,11 +1511,6 @@ perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr) { }
15111511
static inline void
15121512
perf_bp_event(struct perf_event *event, void *data) { }
15131513

1514-
static inline void perf_register_guest_info_callbacks
1515-
(struct perf_guest_info_callbacks *cbs) { }
1516-
static inline void perf_unregister_guest_info_callbacks
1517-
(struct perf_guest_info_callbacks *cbs) { }
1518-
15191514
static inline void perf_event_mmap(struct vm_area_struct *vma) { }
15201515

15211516
typedef int (perf_ksymbol_get_name_f)(char *name, int name_len, void *data);

0 commit comments

Comments
 (0)