bpftool-struct_ops(8) System Manager's Manual bpftool-struct_ops(8) (NAME) bpftool-struct_ops - struct_ops BPF (SYNOPSIS) bpftool [OPTIONS] struct_ops COMMAND OPTIONS := { { -j | --json } [{ -p | --pretty }] | { -d | --debug } } COMMANDS := { show | list | dump | register | unregister | help } STRUCT_OPS (STRUCT_OPS COMMANDS) bpftool struct_ops { show | list } [STRUCT_OPS_MAP] bpftool struct_ops dump [STRUCT_OPS_MAP] bpftool struct_ops register OBJ [LINK_DIR] bpftool struct_ops unregister STRUCT_OPS_MAP bpftool struct_ops help STRUCT_OPS_MAP := { id STRUCT_OPS_MAP_ID | name STRUCT_OPS_MAP_NAME } OBJ := /a/file/of/bpf_struct_ops.o (DESCRIPTION) bpftool struct_ops { show | list } [STRUCT_OPS_MAP] struct_ops . STRUCT_OPS_MAP struct_ops . struct_ops . struct_ops struct_ops . bpftool struct_ops dump [STRUCT_OPS_MAP] struct_ops . STRUCT_OPS_MAP struct_ops . struct_ops . bpftool struct_ops register OBJ [LINK_DIR] struct_ops bpf OBJ. struct_ops ELF ".struct_ops" ".struct_ops.link" . struct_ops ".struct_ops.link" (link) . LINK_DIR (pin) . bpftool struct_ops unregister STRUCT_OPS_MAP STRUCT_OPS_MAP . bpftool struct_ops help . (OPTIONS) -h, --help ( bpftool help). -V, --version bpftool ( bpftool version) libbpf bpftool . LLVM libbfd JIT (bpftool prog dump jited) BPF ( bpftool prog profile pid BPF ) . -j, --json JSON. JSON . -p, --pretty JSON . -j . -d, --debug (debug-level). libbpf (verifier) . (EXAMPLES) # bpftool struct_ops show 100: dctcp tcp_congestion_ops 105: cubic tcp_congestion_ops # bpftool struct_ops unregister id 105 Unregistered tcp_congestion_ops cubic id 105 # bpftool struct_ops register bpf_cubic.o Registered tcp_congestion_ops cubic id 110 (SEE ALSO) bpf(2), bpf-helpers(7), bpftool(8), bpftool-btf(8), bpftool-cgroup(8), bpftool-feature(8), bpftool-gen(8), bpftool-iter(8), bpftool-link(8), bpftool-map(8), bpftool-net(8), bpftool-perf(8), bpftool-prog(8), bpftool-token(8) bpftool-struct_ops(8)