diff options
| author | Ian Rogers <irogers@google.com> | 2025-11-07 09:07:11 -0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-11-07 13:25:05 -0800 |
| commit | 71062e282d6a662b75df9aff65702455563ff7c9 (patch) | |
| tree | 0846f2f94cf22afbb15bde7a822e560dd9fbe623 /tools/perf/scripts/python | |
| parent | fa4a527af5cddad6f13abf80105f4da79876c31e (diff) | |
| download | linux-71062e282d6a662b75df9aff65702455563ff7c9.tar.gz linux-71062e282d6a662b75df9aff65702455563ff7c9.zip | |
perf tool: Add the perf_tool argument to all callbacks
Getting context for what a tool is doing, such as the perf_inject
instance, using container_of the tool is a common pattern in the
code. This isn't possible event_op2, event_op3 and event_op4 callbacks
as the tool isn't passed. Add the argument and then fix function
signatures to match. As tools maybe reading a tool from somewhere
else, change that code to use the passed in tool.
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
