Re: [PATCH v2 1/2] perf tool: Add the perf_tool argument to all callbacks
From: Namhyung Kim
Date: Sun Nov 09 2025 - 14:51:20 EST
On Fri, 07 Nov 2025 09:07:11 -0800, Ian Rogers wrote:
> 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.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung