• James Clark's avatar
    perf: cs-etm: Create decoders based on the trace ID mappings · 19c3e4db
    James Clark authored
    Now that each queue has a unique set of trace ID mappings, use this
    list to create the decoders. In unformatted mode just add a single
    mapping so only one decoder is made.
    
    Previously each queue would have a decoder created for each traced CPU
    on the system but this won't work anymore because CPUs can have
    overlapping trace IDs.
    
    This also means that the CORESIGHT_TRACE_ID_UNUSED_FLAG isn't needed
    any more. If mappings aren't added then decoders aren't created, rather
    than needing a flag to suppress creation.
    Reviewed-by: default avatarMike Leach <mike.leach@linaro.org>
    Signed-off-by: default avatarJames Clark <james.clark@arm.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
    Cc: Anshuman Khandual <anshuman.khandual@arm.com>
    Cc: Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: John Garry <john.g.garry@oracle.com>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Leo Yan <leo.yan@linux.dev>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
    Cc: Will Deacon <will@kernel.org>
    Link: https://lore.kernel.org/r/20240722101202.26915-5-james.clark@linaro.orgSigned-off-by: default avatarJames Clark <james.clark@linaro.org>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    19c3e4db
cs-etm.h 7.41 KB