Commit 6fb2e09c authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Report emulation faults via perf



Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 8ec5a066
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#include <linux/uaccess.h>
#include <linux/kdebug.h>
#include <linux/kfence.h>
#include <linux/perf_event.h>

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