]> www.infradead.org Git - users/hch/misc.git/commitdiff
parisc: Report emulation faults via perf
authorHelge Deller <deller@gmx.de>
Tue, 7 Oct 2025 14:56:48 +0000 (16:56 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 7 Oct 2025 16:01:53 +0000 (18:01 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/traps.c

index b9b3d527bc9065c659da306049182247f0d338ef..4c7c5df80bd0efbb8b9ab137f055f11ee7b43032 100644 (file)
@@ -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;