diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2016-12-01 17:48:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-02 19:46:09 +0100 |
commit | 4f2e7ae56e04cfe670cf39152a8d015984c90351 (patch) | |
tree | c0d08eb983e657c56dd9249e64d44929d14014f0 /samples/bpf/bpf_load.h | |
parent | bpf: Add support for reading socket family, type, protocol (diff) | |
download | linux-4f2e7ae56e04cfe670cf39152a8d015984c90351.tar.xz linux-4f2e7ae56e04cfe670cf39152a8d015984c90351.zip |
samples/bpf: Update bpf loader for cgroup section names
Add support for section names starting with cgroup/skb and cgroup/sock.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/bpf_load.h')
-rw-r--r-- | samples/bpf/bpf_load.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/bpf_load.h b/samples/bpf/bpf_load.h index dfa57fe65c8e..4adeeef53ad6 100644 --- a/samples/bpf/bpf_load.h +++ b/samples/bpf/bpf_load.h @@ -7,6 +7,7 @@ extern int map_fd[MAX_MAPS]; extern int prog_fd[MAX_PROGS]; extern int event_fd[MAX_PROGS]; +extern int prog_cnt; /* parses elf file compiled by llvm .c->.o * . parses 'maps' section and creates maps via BPF syscall |