diff options
author | German Gomez <[email protected]> | 2021-11-09 16:30:08 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-11-13 18:11:50 -0300 |
commit | 56c31cdff7c2a640f4afcfe0ac4e4ca6dc47c5fd (patch) | |
tree | 8a74138bbca0f0be6718f84a4fb27fa394d8cd46 /net/lapb/lapb_timer.c | |
parent | 0901b56028725a68459c99f41d1172f80449c9e6 (diff) |
perf arm-spe: Implement find_snapshot callback
The head pointer of the AUX buffer managed by the arm_spe_pmu.c driver
is not monotonically increasing, therefore the find_snapshot callback is
needed in order to find the trace data within the AUX buffer and avoid
wasting space in the perf.data file.
The pointer is assumed to have wrapped if the buffer contains non-zero
data at the end. If it has wrapped, the entire contents of the AUX
buffer are stored in the perf.data file. Otherwise only the data up to
the head pointer is stored.
Reviewed-by: James Clark <[email protected]>
Reviewed-by: Leo Yan <[email protected]>
Signed-off-by: German Gomez <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Garry <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Leo Yan <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions