summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-10-02 12:30:42 +0530
committerVineet Gupta <vgupta@synopsys.com>2015-02-27 10:15:01 +0530
commitceed97ab4ff76cb5b1d616a810e941f8837dc440 (patch)
tree0cd12cc2c53c6e73bbfef84bf430b0705495accb /arch/arc/kernel
parent3a51d50f426cbb65add424baebe511dcf5ac45cc (diff)
downloadlinux-stable-ceed97ab4ff76cb5b1d616a810e941f8837dc440.tar.gz
linux-stable-ceed97ab4ff76cb5b1d616a810e941f8837dc440.tar.bz2
linux-stable-ceed97ab4ff76cb5b1d616a810e941f8837dc440.zip
ARC: perf: Enable generic software events
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r--arch/arc/kernel/unaligned.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/kernel/unaligned.c b/arch/arc/kernel/unaligned.c
index 7ff5b5c183bb..74db59b6f392 100644
--- a/arch/arc/kernel/unaligned.c
+++ b/arch/arc/kernel/unaligned.c
@@ -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: