diff options
author | David S. Miller <davem@davemloft.net> | 2021-05-19 12:58:29 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-19 12:58:29 -0700 |
commit | 7b16509b29e007d15b158aa52bea25b22faf7972 (patch) | |
tree | 66b85cf8c0d63a6a1ef770cd4c2115395e7c5a9b /tools/testing/selftests/bpf/prog_tests/trace_printk.c | |
parent | 9287aa2bfd54a8a81f994defabcd92c737511d85 (diff) | |
parent | 3a2daa7248647c0e5e165140553f9af5006e93a2 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
Alexei Starovoitov says:
====================
pull-request: bpf-next 2021-05-19
The following pull-request contains BPF updates for your *net-next* tree.
We've added 43 non-merge commits during the last 11 day(s) which contain
a total of 74 files changed, 3717 insertions(+), 578 deletions(-).
The main changes are:
1) syscall program type, fd array, and light skeleton, from Alexei.
2) Stop emitting static variables in skeleton, from Andrii.
3) Low level tc-bpf api, from Kumar.
4) Reduce verifier kmalloc/kfree churn, from Lorenz.
====================
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/trace_printk.c')
-rw-r--r-- | tools/testing/selftests/bpf/prog_tests/trace_printk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/trace_printk.c b/tools/testing/selftests/bpf/prog_tests/trace_printk.c index 39b0decb1bb2..d39bc00feb45 100644 --- a/tools/testing/selftests/bpf/prog_tests/trace_printk.c +++ b/tools/testing/selftests/bpf/prog_tests/trace_printk.c @@ -3,7 +3,7 @@ #include <test_progs.h> -#include "trace_printk.skel.h" +#include "trace_printk.lskel.h" #define TRACEBUF "/sys/kernel/debug/tracing/trace_pipe" #define SEARCHMSG "testing,testing" @@ -21,6 +21,9 @@ void test_trace_printk(void) if (CHECK(!skel, "skel_open", "failed to open skeleton\n")) return; + ASSERT_EQ(skel->rodata->fmt[0], 'T', "invalid printk fmt string"); + skel->rodata->fmt[0] = 't'; + err = trace_printk__load(skel); if (CHECK(err, "skel_load", "failed to load skeleton: %d\n", err)) goto cleanup; |