Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: Report software alignment faults via perf

Signed-off-by: Helge Deller <deller@gmx.de>

+2
+2
arch/parisc/kernel/unaligned.c
··· 13 13 #include <linux/uaccess.h> 14 14 #include <linux/sysctl.h> 15 15 #include <linux/unaligned.h> 16 + #include <linux/perf_event.h> 16 17 #include <asm/hardirq.h> 17 18 #include <asm/traps.h> 18 19 #include "unaligned.h" ··· 379 378 int ret = ERR_NOTHANDLED; 380 379 381 380 __inc_irq_stat(irq_unaligned_count); 381 + perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, 1, regs, regs->ior); 382 382 383 383 /* log a message with pacing */ 384 384 if (user_mode(regs)) {