BPF List
 help / color / mirror / Atom feed
* bpf_link_info: perf_event link info name_len field returning zero
@ 2024-09-22 19:59 Tyrone Wu
  2024-09-27 23:13 ` Andrii Nakryiko
  0 siblings, 1 reply; 26+ messages in thread
From: Tyrone Wu @ 2024-09-22 19:59 UTC (permalink / raw)
  To: bpf

Hello,

When retrieving bpf_link_info.perf_event kprobe/uprobe/tracepoint
data, I noticed that the name_len field always returns 0. After some
digging, I see that name_len is never actually populated, which
explains the 0 value.

I expected it to function similarly to
bpf_link_info.raw_tracepoint.tp_name_len, where that field is filled
with the length of tp_name. However, I noticed that the selftest
explicitly asserts that name_len should be 0. I was wondering if
someone could clarify whether it is intended for the
bpf_link_info.perf_event name_len field to not be populated.

I apologize if this is not the appropriate place to ask this question.
Thank you for your time!

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-10-10  1:20 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-22 19:59 bpf_link_info: perf_event link info name_len field returning zero Tyrone Wu
2024-09-27 23:13 ` Andrii Nakryiko
2024-09-29  2:35   ` Yafang Shao
2024-09-29  7:19     ` Tyrone Wu
     [not found]     ` <CABVU1kWDy4vPM-Kw1fGEyFtZqYkBcbB-2hktO2CBxE1P0L350w@mail.gmail.com>
2024-09-29  7:31       ` Yafang Shao
2024-09-30 11:28     ` Jiri Olsa
2024-09-30 23:59       ` [PATCH bpf] bpf: fix unpopulated name_len field in perf_event link info tyrone-wu
2024-10-02 11:37         ` Jiri Olsa
2024-10-02 21:38           ` [PATCH bpf v2] " tyrone-wu
2024-10-03 19:10             ` Jiri Olsa
2024-10-03 20:23               ` [PATCH bpf v3] " tyrone-wu
2024-10-04 11:19                 ` Jiri Olsa
2024-10-04 15:40                   ` [PATCH bpf v4 1/2] " tyrone-wu
2024-10-04 15:40                     ` [PATCH bpf v4 2/2] selftests/bpf: fix perf_event link info name_len assertion tyrone-wu
2024-10-06  6:00                     ` [PATCH bpf v4 1/2] bpf: fix unpopulated name_len field in perf_event link info Yafang Shao
2024-10-06 19:51                       ` [PATCH bpf v5 " tyrone-wu
2024-10-06 19:51                         ` [PATCH bpf v5 2/2] selftests/bpf: fix perf_event link info name_len assertion tyrone-wu
2024-10-07  2:09                           ` Yafang Shao
2024-10-07  2:09                         ` [PATCH bpf v5 1/2] bpf: fix unpopulated name_len field in perf_event link info Yafang Shao
2024-10-07  8:07                         ` Jiri Olsa
2024-10-07 18:29                           ` [PATCH bpf v6 " Tyrone Wu
2024-10-07 18:29                             ` [PATCH bpf v6 2/2] selftests/bpf: fix perf_event link info name_len assertion Tyrone Wu
2024-10-08  4:04                             ` [PATCH bpf v6 1/2] bpf: fix unpopulated name_len field in perf_event link info Andrii Nakryiko
2024-10-08 16:43                               ` [PATCH bpf v7 " Tyrone Wu
2024-10-08 16:43                                 ` [PATCH bpf v7 2/2] selftests/bpf: fix perf_event link info name_len assertion Tyrone Wu
2024-10-10  1:20                                 ` [PATCH bpf v7 1/2] bpf: fix unpopulated name_len field in perf_event link info patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox