diff options
author | Matt Smith <alastorze@fb.com> | 2021-09-01 12:44:38 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-09-07 17:41:23 -0700 |
commit | a6cc6b34b93e3660149a7cb947be98a9b239ffce (patch) | |
tree | 4bfc19f41b9e95c4273493d25318e714f9cbe2c9 /fs/locks.c | |
parent | 08a6f22ef6f843d0ea7252087787b5ab04610bec (diff) |
bpftool: Provide a helper method for accessing skeleton's embedded ELF data
This adds a skeleton method X__elf_bytes() which returns the binary data of
the compiled and embedded BPF object file. It additionally sets the size of
the return data to the provided size_t pointer argument.
The assignment to s->data is cast to void * to ensure no warning is issued if
compiled with a previous version of libbpf where the bpf_object_skeleton field
is void * instead of const void *
Signed-off-by: Matt Smith <alastorze@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210901194439.3853238-3-alastorze@fb.com
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions