diff options
author | Helge Deller <deller@gmx.de> | 2025-10-07 16:57:33 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2025-10-07 18:01:53 +0200 |
commit | 912b9fd7c7775060900ad315f0ceb616f9381bc3 (patch) | |
tree | a048b3a918085a5014747c637f6d8240580793c1 | |
parent | 6fb2e09c3abca500ad3ef88afdd291515323d668 (diff) |
parisc: Report software alignment faults via perf
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/kernel/unaligned.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c index 00e97204783e..fb64d9ce0b17 100644 --- a/arch/parisc/kernel/unaligned.c +++ b/arch/parisc/kernel/unaligned.c @@ -13,6 +13,7 @@ #include <linux/uaccess.h> #include <linux/sysctl.h> #include <linux/unaligned.h> +#include <linux/perf_event.h> #include <asm/hardirq.h> #include <asm/traps.h> #include "unaligned.h" @@ -378,6 +379,7 @@ void handle_unaligned(struct pt_regs *regs) int ret = ERR_NOTHANDLED; __inc_irq_stat(irq_unaligned_count); + perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, 1, regs, regs->ior); /* log a message with pacing */ if (user_mode(regs)) { |