aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-11 05:17:57 +0000
committerAlexei Starovoitov <[email protected]>2021-11-12 00:44:26 +0000
commita6ca71583137300f207343d5d950cb1c365ab911 (patch)
tree14cd9598f4ff1d5a0c74c6a05d1764ea06a27445 /tools/bpf/bpftool/prog.c
parentMerge branch 'Get ingress_ifindex in BPF_SK_LOOKUP prog type' (diff)
downloadkernel-a6ca71583137300f207343d5d950cb1c365ab911.tar.gz
kernel-a6ca71583137300f207343d5d950cb1c365ab911.zip
libbpf: Add ability to get/set per-program load flags
Add bpf_program__flags() API to retrieve prog_flags that will be (or were) supplied to BPF_PROG_LOAD command. Also add bpf_program__set_extra_flags() API to allow to set *extra* flags, in addition to those determined by program's SEC() definition. Such flags are logically OR'ed with libbpf-derived flags. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions