diff options
| author | Leo Yan <leo.yan@linaro.org> | 2026-07-02 20:51:39 +0100 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-07-03 16:51:59 -0700 |
| commit | 9bb1423295d1f84d3a557bc690fbb791d8a773ac (patch) | |
| tree | e24f840bb56d846d7cbff696d84bbb6c27f9c22f /tools/lib/python/kdoc/python_version.py | |
| parent | 5cf3ea0f2616fea7d91e4b45b6bca872e09205c3 (diff) | |
perf cs-etm: Refactor instruction size handling
This patch introduces a new function cs_etm__instr_size() to calculate
the instruction size based on ISA type and instruction address.
Given the trace data can be MB and most likely that will be A64/A32 on
a lot of platforms, cs_etm__instr_addr() keeps a single ISA type check
for A64/A32 and executes an optimized calculation (addr + offset * 4).
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
