• James Clark's avatar
    perf cs-etm: Track exception level · 8d3031d3
    James Clark authored
    Currently we assume all trace belongs to the host machine so when
    the decoder should be looking at the guest kernel maps it can crash
    because it looks at the host ones instead.
    
    Avoid one scenario (guest kernel running at EL1) by assigning the
    default guest machine to this trace. For userspace trace it's still not
    possible to determine guest vs host, but the PIDs should help in this
    case.
    
    Committer notes:
    
    Fixed up conflict with:
    
      perf addr_location: Add init/exit/copy functions
    
    That was only on tmp.perf-tools-next.
    Reviewed-by: default avatarLeo Yan <leo.yan@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: 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: Mark Rutland <mark.rutland@arm.com>
    Cc: Mike Leach <mike.leach@linaro.org>
    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>
    Cc: coresight@lists.linaro.org
    Cc: linux-arm-kernel@lists.infradead.org
    Link: https://lore.kernel.org/r/20230612111403.100613-5-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    8d3031d3
cs-etm.h 7.67 KB