diff options
| author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-07-02 21:12:40 +0900 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-07-14 22:43:16 +0900 |
| commit | 438a8d6a82931f12305f80bc3e7ef067c2ac0551 (patch) | |
| tree | d1864ed0007ca82d4ab2752006c0ef15577dd17a /tools/perf/scripts/python | |
| parent | 777bcbd2ac7d0af949d9f9741a93e939b81b04e7 (diff) | |
tracing/probes: Support typecast for various probe events
Support BTF typecast feature on other probe events, but only if it is
kernel function entry or return, and must use function parameter name
or $retval. This means you can do:
(STRUCT)PARAM->MEMBER
Note: you can not use other variables like $stackN, %reg etc. That
needs nesting support.
To support other probe events, we just need to use last_struct type
when we find a function parameter in parse_btf_arg().
This also updates <tracefs>/README file to show struct typecast.
Link: https://lore.kernel.org/all/178271362928.1176915.12235759508786922490.stgit@devnote2/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
