aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2022-07-11 12:31:48 +0300
committerArnaldo Carvalho de Melo <[email protected]>2022-07-20 11:07:48 -0300
commit0a64de04c94ad4285120bed0dfb382ea98d6d499 (patch)
tree571a8a6c3b4f8f5eb2c8efe8610ca4e1ea1d7244 /tools/perf/util/scripting-engines/trace-event-python.c
parenteddc6e3f6684597924f368cb564d7432b2f7d23e (diff)
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/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions