summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-01-17 01:15:07 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-17 01:15:08 +0100
commitf2f742f425563d7f6991e510875e95287aed9d9b (patch)
treeeffbbab7241a7b203f123449f858517ba09bdb22 /tools/lib
parent4c38f74c9186e2bc32789ddab3a95ed384c695d7 (diff)
parent74801e50d5b89329e6c02b8bd924a41234f76316 (diff)
downloadlinux-f2f742f425563d7f6991e510875e95287aed9d9b.tar.gz
linux-f2f742f425563d7f6991e510875e95287aed9d9b.tar.bz2
linux-f2f742f425563d7f6991e510875e95287aed9d9b.zip
Merge branch 'bpf-various-improvements'
Jakub Kicinski says: ==================== This series combines a number of random improvements ranging from libbpf to nfp driver. NFP patches make better use of the verifier log. There is a requested adjustment to the map offload code, and a warning fix for a W=1 build to the disassembler. Quentin also fixes the libbpf program type detection, while Jiong allows the use of libbfd compiled from source. ==================== Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/libbpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index e9c4b7cabcf2..30c776375118 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -1803,7 +1803,7 @@ BPF_PROG_TYPE_FNS(tracepoint, BPF_PROG_TYPE_TRACEPOINT);
BPF_PROG_TYPE_FNS(xdp, BPF_PROG_TYPE_XDP);
BPF_PROG_TYPE_FNS(perf_event, BPF_PROG_TYPE_PERF_EVENT);
-#define BPF_PROG_SEC(string, type) { string, sizeof(string), type }
+#define BPF_PROG_SEC(string, type) { string, sizeof(string) - 1, type }
static const struct {
const char *sec;
size_t len;