summaryrefslogtreecommitdiffstats
path: root/samples/bpf/bpf_load.h
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2016-12-01 17:48:07 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-02 19:46:09 +0100
commit4f2e7ae56e04cfe670cf39152a8d015984c90351 (patch)
treec0d08eb983e657c56dd9249e64d44929d14014f0 /samples/bpf/bpf_load.h
parentbpf: Add support for reading socket family, type, protocol (diff)
downloadlinux-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.h1
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