]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/kernel/cpu/perf_event.c
kprobes, x86: Use NOKPROBE_SYMBOL() instead of __kprobes annotation
[linux.git] / arch / x86 / kernel / cpu / perf_event.c
index ae407f7226c89961fde14ddd6d932f174c64d8fc..5fc8771979ba3f155327a4bbc59106960b0461e1 100644 (file)
@@ -1292,7 +1292,7 @@ void perf_events_lapic_init(void)
        apic_write(APIC_LVTPC, APIC_DM_NMI);
 }
 
-static int __kprobes
+static int
 perf_event_nmi_handler(unsigned int cmd, struct pt_regs *regs)
 {
        u64 start_clock;
@@ -1310,6 +1310,7 @@ perf_event_nmi_handler(unsigned int cmd, struct pt_regs *regs)
 
        return ret;
 }
+NOKPROBE_SYMBOL(perf_event_nmi_handler);
 
 struct event_constraint emptyconstraint;
 struct event_constraint unconstrained;