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>
This commit is contained in:
committed by
Vineet Gupta
parent
36481cf7fb
commit
e6b1d126bb
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user