Re: [PATCH bpf-next 2/2] bpf: Add show_fdinfo for kprobe_multi

From: Tao Chen
Date: Thu Jun 12 2025 - 22:52:58 EST


在 2025/6/13 00:01, Alexei Starovoitov 写道:
On Thu, Jun 12, 2025 at 4:56 AM Tao Chen <chen.dylane@xxxxxxxxx> wrote:

Show kprobe_multi link info with fdinfo, the info as follows:

link_type: kprobe_multi
link_id: 4
prog_tag: 279dd9c09dfbc757
prog_id: 30
type: kprobe_multi
func_cnt: 8
missed: 0
addr: 0xffffffff81ecb1e0

fdinfo shouldn't print kernel addresses.
It defeats kaslr


How about print the function name corresponding of the address, or
don't show the addr info.

pw-bot: cr


--
Best Regards
Tao Chen