diff options
| author | Andrii Nakryiko <[email protected]> | 2019-12-14 01:43:28 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-12-15 23:58:04 +0000 |
| commit | 917f6b7b07a46e53fa73e112d23c97d1b201a877 (patch) | |
| tree | 75e7c2bb4a79b1849b9cb2fe1d4f93bbb9ca9562 /tools/lib/bpf/libbpf_common.h | |
| parent | libbpf: Move non-public APIs from libbpf.h to libbpf_internal.h (diff) | |
| download | kernel-917f6b7b07a46e53fa73e112d23c97d1b201a877.tar.gz kernel-917f6b7b07a46e53fa73e112d23c97d1b201a877.zip | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf_common.h')
0 files changed, 0 insertions, 0 deletions
