diff options
| author | Andrii Nakryiko <[email protected]> | 2022-04-04 16:41:59 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-04-05 13:16:07 -0700 |
| commit | 999783c8bbda2e82390cb8c39ed9e3954cf51b82 (patch) | |
| tree | 576e79ae893d65b624bf68ba65e954f594b2592c /tools/perf/scripts/python/sctop.py | |
| parent | 74cc6311cec906daf1d64cefe4922dbf79c416c9 (diff) | |
libbpf: Wire up spec management and other arch-independent USDT logic
Last part of architecture-agnostic user-space USDT handling logic is to
set up BPF spec and, optionally, IP-to-ID maps from user-space.
usdt_manager performs a compact spec ID allocation to utilize
fixed-sized BPF maps as efficiently as possible. We also use hashmap to
deduplicate USDT arg spec strings and map identical strings to single
USDT spec, minimizing the necessary BPF map size. usdt_manager supports
arbitrary sequences of attachment and detachment, both of the same USDT
and multiple different USDTs and internally maintains a free list of
unused spec IDs. bpf_link_usdt's logic is extended with proper setup and
teardown of this spec ID free list and supporting BPF maps.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Reviewed-by: Alan Maguire <[email protected]>
Reviewed-by: Dave Marchevsky <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions