diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/coresight-pmu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h index 6c2fd6cc5a98..ffff4e6277e5 100644 --- a/include/linux/coresight-pmu.h +++ b/include/linux/coresight-pmu.h @@ -11,6 +11,16 @@ #define CORESIGHT_ETM_PMU_SEED 0x10 /* + * The legacy Trace ID system based on fixed calculation from the cpu + * number. This has been replaced by drivers using a dynamic allocation + * system - but need to retain the legacy algorithm for backward comparibility + * in certain situations:- + * a) new perf running on older systems that generate the legacy mapping + * b) older tools that may not update at the same time as the kernel. + */ +#define CORESIGHT_LEGACY_CPU_TRACE_ID(cpu) (0x10 + (cpu * 2)) + +/* * Below are the definition of bit offsets for perf option, and works as * arbitrary values for all ETM versions. * |