ARC: perf: Enable generic software events
authorVineet Gupta <vgupta@synopsys.com>
Thu, 2 Oct 2014 07:00:42 +0000 (12:30 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 04:45:01 +0000 (10:15 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/unaligned.c
arch/arc/mm/fault.c

index 7ff5b5c..74db59b 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/perf_event.h>
 #include <linux/ptrace.h>
 #include <linux/uaccess.h>
 #include <asm/disasm.h>
@@ -253,6 +254,7 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs,
                }
        }
 
+       perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, 1, regs, address);
        return 0;
 
 fault:
Simple merge