File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ static int cs_etm_validate_context_id(struct auxtrace_record *itr,
78
78
char path [PATH_MAX ];
79
79
int err ;
80
80
u32 val ;
81
- u64 contextid =
82
- evsel -> core . attr . config &
83
- ( perf_pmu__format_bits (& cs_etm_pmu -> format , "contextid1" ) |
81
+ u64 contextid = evsel -> core . attr . config &
82
+ ( perf_pmu__format_bits ( & cs_etm_pmu -> format , "contextid" ) |
83
+ perf_pmu__format_bits (& cs_etm_pmu -> format , "contextid1" ) |
84
84
perf_pmu__format_bits (& cs_etm_pmu -> format , "contextid2" ));
85
85
86
86
if (!contextid )
@@ -114,8 +114,7 @@ static int cs_etm_validate_context_id(struct auxtrace_record *itr,
114
114
* 0b00100 Maximum of 32-bit Context ID size.
115
115
* All other values are reserved.
116
116
*/
117
- val = BMVAL (val , 5 , 9 );
118
- if (!val || val != 0x4 ) {
117
+ if (BMVAL (val , 5 , 9 ) != 0x4 ) {
119
118
pr_err ("%s: CONTEXTIDR_EL1 isn't supported, disable with %s/contextid1=0/\n" ,
120
119
CORESIGHT_ETM_PMU_NAME , CORESIGHT_ETM_PMU_NAME );
121
120
return - EINVAL ;
You can’t perform that action at this time.
0 commit comments