diff options
author | Tyrone Wu <wudevelops@gmail.com> | 2024-10-08 16:43:11 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-10-09 18:17:16 -0700 |
commit | 4deecdd29cf29844c7bd164d72dc38d2e672f64e (patch) | |
tree | 7ce39a7641a75ded12da89b7d8275d3a0796c2f5 /scripts/generate_rust_analyzer.py | |
parent | 434247637c66e1be2bc71a9987d4c3f0d8672387 (diff) | |
download | linux-4deecdd29cf29844c7bd164d72dc38d2e672f64e.tar.gz linux-4deecdd29cf29844c7bd164d72dc38d2e672f64e.tar.bz2 linux-4deecdd29cf29844c7bd164d72dc38d2e672f64e.zip |
bpf: fix unpopulated name_len field in perf_event link info
Previously when retrieving `bpf_link_info.perf_event` for
kprobe/uprobe/tracepoint, the `name_len` field was not populated by the
kernel, leaving it to reflect the value initially set by the user. This
behavior was inconsistent with how other input/output string buffer
fields function (e.g. `raw_tracepoint.tp_name_len`).
This patch fills `name_len` with the actual size of the string name.
Fixes: 1b715e1b0ec5 ("bpf: Support ->fill_link_info for perf_event")
Signed-off-by: Tyrone Wu <wudevelops@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20241008164312.46269-1-wudevelops@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions