Jiri Olsa
a7795698f8
bpftool: Add support to display uprobe_multi links
Adding support to display details for uprobe_multi links,
both plain:
# bpftool link -p
...
24: uprobe_multi prog 126
uprobe.multi path /home/jolsa/bpf/test_progs func_cnt 3 pid 4143
offset ref_ctr_offset cookies
0xd1f88 0xf5d5a8 0xdead
0xd1f8f 0xf5d5aa 0xbeef
0xd1f96 0xf5d5ac 0xcafe
and json:
# bpftool link -p
[{
...
},{
"id": 24,
"type": "uprobe_multi",
"prog_id": 126,
"retprobe": false,
"path": "/home/jolsa/bpf/test_progs",
"func_cnt": 3,
"pid": 4143,
"funcs": [{
"offset": 860040,
"ref_ctr_offset": 16111016,
"cookie": 57005
},{
"offset": 860047,
"ref_ctr_offset": 16111018,
"cookie": 48879
},{
"offset": 860054,
"ref_ctr_offset": 16111020,
"cookie": 51966
}
]
}
]
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/bpf/20231125193130.834322-7-jolsa@kernel.org
2023-11-28 21:50:09 -08:00
..
2023-10-11 17:27:55 -07:00
2023-11-09 19:07:38 -08:00
2023-07-10 15:29:21 -07:00
2021-11-10 09:00:52 -08:00
2023-10-19 16:29:36 +02:00
2023-02-16 15:32:45 -08:00
2023-04-05 21:27:27 -07:00
2023-04-05 21:27:27 -07:00
2023-10-11 17:27:55 -07:00
2023-05-17 15:58:18 +02:00
2023-07-12 23:50:11 +02:00
2023-10-09 09:36:51 -07:00
2023-05-17 15:58:18 +02:00
2022-10-26 18:20:22 -07:00
2023-03-29 09:48:45 -07:00
2023-03-29 09:48:45 -07:00
2023-11-28 21:50:09 -08:00
2022-11-20 16:17:46 -08:00
2023-05-17 15:58:18 +02:00
2023-06-29 15:46:17 +02:00
2022-09-30 15:40:46 -07:00
2023-05-23 16:55:06 +02:00
2023-10-24 16:07:32 -07:00
2020-01-20 16:37:45 -08:00
2023-07-19 10:07:28 -07:00
2023-08-11 20:54:29 -07:00
2022-11-09 20:45:14 -08:00
2023-11-27 16:23:38 -08:00
2023-10-19 16:30:15 +02:00
2022-04-25 23:24:28 +02:00
2023-07-11 20:07:50 -07:00
2023-07-11 20:07:50 -07:00