summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/bpf.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-12-13 17:43:28 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-12-15 15:58:04 -0800
commit917f6b7b07a46e53fa73e112d23c97d1b201a877 (patch)
tree75e7c2bb4a79b1849b9cb2fe1d4f93bbb9ca9562 /tools/lib/bpf/bpf.h
parent612d05be250aa8804d3baba7a12445a267a580d3 (diff)
libbpf: Add BPF_EMBED_OBJ macro for embedding BPF .o files
Add a convenience macro BPF_EMBED_OBJ, which allows to embed other files (typically used to embed BPF .o files) into a hosting userspace programs. To C program it is exposed as struct bpf_embed_data, containing a pointer to raw data and its size in bytes. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20191214014341.3442258-5-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/bpf.h')
0 files changed, 0 insertions, 0 deletions