diff options
author | Toke Høiland-Jørgensen <[email protected]> | 2019-11-09 21:37:32 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-11-10 19:26:30 -0800 |
commit | 1a734efe06948c17122808f74f0c8cc550c10cf5 (patch) | |
tree | 051f5faf97bf712570b11f65b035a812daab7703 /kernel/bpf/arraymap.c | |
parent | 473f4e133a12dd083bae044ba1782be4767177c1 (diff) |
libbpf: Add getter for program size
This adds a new getter for the BPF program size (in bytes). This is useful
for a caller that is trying to predict how much memory will be locked by
loading a BPF object into the kernel.
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: David S. Miller <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions