Skip to content

Commit 6fb2e09

Browse files
committed
parisc: Report emulation faults via perf
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 8ec5a06 commit 6fb2e09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/parisc/kernel/traps.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <linux/uaccess.h>
3232
#include <linux/kdebug.h>
3333
#include <linux/kfence.h>
34+
#include <linux/perf_event.h>
3435

3536
#include <asm/assembly.h>
3637
#include <asm/io.h>
@@ -633,6 +634,7 @@ void notrace handle_interruption(int code, struct pt_regs *regs)
633634
/* Assist Exception Trap, i.e. floating point exception. */
634635
die_if_kernel("Floating point exception", regs, 0); /* quiet */
635636
__inc_irq_stat(irq_fpassist_count);
637+
perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, 0);
636638
handle_fpe(regs);
637639
return;
638640

0 commit comments

Comments
 (0)