diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2015-08-24 13:53:36 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-08-27 14:58:14 +0530 |
commit | e6b1d126bb748103824087189e30febc88c4db73 (patch) | |
tree | 7ea8a6d9db01460993e278101491f0291bbef928 /arch/arc/include | |
parent | 36481cf7fbcc666699d54cb267088d2b415ff164 (diff) | |
download | talos-op-linux-e6b1d126bb748103824087189e30febc88c4db73.tar.gz talos-op-linux-e6b1d126bb748103824087189e30febc88c4db73.zip |
ARCv2: perf: implement exclusion of event counting in user or kernel mode
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/perf_event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/include/asm/perf_event.h b/arch/arc/include/asm/perf_event.h index 3522d095b615..5824ab46cb71 100644 --- a/arch/arc/include/asm/perf_event.h +++ b/arch/arc/include/asm/perf_event.h @@ -34,6 +34,9 @@ #define ARC_REG_PCT_INT_CTRL 0x25E #define ARC_REG_PCT_INT_ACT 0x25F +#define ARC_REG_PCT_CONFIG_USER (1 << 18) /* count in user mode */ +#define ARC_REG_PCT_CONFIG_KERN (1 << 19) /* count in kernel mode */ + #define ARC_REG_PCT_CONTROL_CC (1 << 16) /* clear counts */ #define ARC_REG_PCT_CONTROL_SN (1 << 17) /* snapshot */ |