perf cs-etm: Fix bitmap for option

When set option with macros ETM_OPT_CTXTID and ETM_OPT_TS, it wrongly
takes these two values (14 and 28 prespectively) as bit masks, but
actually both are the offset for bits.  But this doesn't lead to
further failure due to the AND logic operation will be always true for

This patch defines new independent macros (rather than using the
"config" bits) for requesting the "contextid" and "timestamp" for

Signed-off-by: Suzuki Poulouse <>
Reviewed-by: Mike Leach <>
Cc: Al Grant <>
Cc: Daniel Kiss <>
Cc: Denis Nikitin <>
Cc: Jiri Olsa <>
Cc: John Garry <>
Cc: Jonathan Corbet <>
Cc: Leo Yan <>
Cc: Mark Rutland <>
Cc: Mathieu Poirier <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Suzuki Poulouse <>
Cc: Will Deacon <>
[ Extract the change as a separate patch for easier review ]
Signed-off-by: Leo Yan <>
Signed-off-by: Arnaldo Carvalho de Melo <>
1 file changed