diff options
| author | Adrian Hunter <[email protected]> | 2022-07-11 09:31:48 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-07-20 14:07:48 +0000 |
| commit | 0a64de04c94ad4285120bed0dfb382ea98d6d499 (patch) | |
| tree | 571a8a6c3b4f8f5eb2c8efe8610ca4e1ea1d7244 /tools/perf/builtin-script.c | |
| parent | perf tools: Export perf_event__process_finished_round() (diff) | |
| download | kernel-0a64de04c94ad4285120bed0dfb382ea98d6d499.tar.gz kernel-0a64de04c94ad4285120bed0dfb382ea98d6d499.zip | |
perf tools: Factor out evsel__id_hdr_size()
Factor out evsel__id_hdr_size() so it can be reused.
This is needed by perf inject. When injecting events from a guest perf.data
file, there is a possibility that the sample ID numbers conflict. To
re-write an ID sample, the old one needs to be removed first, which means
determining how big it is with evsel__id_hdr_size() and then subtracting
that from the event size.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
