linux-kernelorg-stable/tools/perf/util/arm-spe-decoder
Leo Yan d510568970 perf arm_spe: Set HITM flag
Since FEAT_SPEv1p4, Arm SPE provides two extra events: "Cache data
modified" and "Data snooped".

Set the snoop mode as:

- If both the "Cache data modified" event and the "Data snooped" event
  are set, which indicates a load operation that snooped from a outside
  cache and hit a modified copy, set the HITM flag to inspect false
  sharing.

- If the snooped event bit is not set, and the snooped event has been
  supported by the hardware, set as NONE mode (no snoop operation).

- If the snooped event bit is not set, and the event is not supported or
  absent the events info in the meta data, set as NA mode (not
  available).

Don't set any mode for only "Cache data modified" event, as it hits a
local modified copy.

Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ali Saidi <alisaidi@amazon.com>
Cc: German Gomez <german.gomez@arm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2025-09-19 12:14:29 -03:00
..
Build perf util: Make util its own library 2024-06-26 11:07:42 -07:00
arm-spe-decoder.c perf arm_spe: Directly propagate raw event 2025-09-19 12:14:28 -03:00
arm-spe-decoder.h perf arm_spe: Set HITM flag 2025-09-19 12:14:29 -03:00
arm-spe-pkt-decoder.c perf arm_spe: Decode event types for new features 2025-09-19 12:14:28 -03:00
arm-spe-pkt-decoder.h perf arm_spe: Decode event types for new features 2025-09-19 12:14:28 -03:00