aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/pyperf_subprogs.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-09-03 20:35:40 +0000
committerAlexei Starovoitov <[email protected]>2020-09-04 00:14:40 +0000
commitfab45be1d26e8c3cee62e09bcc39c149b175f848 (patch)
treea2103758f982c28fe19134282041fd95ae5568de /tools/testing/selftests/bpf/progs/pyperf_subprogs.c
parentselftests/bpf: Turn fexit_bpf2bpf into test with subtests (diff)
downloadkernel-fab45be1d26e8c3cee62e09bcc39c149b175f848.tar.gz
kernel-fab45be1d26e8c3cee62e09bcc39c149b175f848.zip
selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests
Add use of non-inlined subprogs to few bigger selftests to excercise libbpf's bpf2bpf handling logic. Also split l4lb_all selftest into two sub-tests. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/pyperf_subprogs.c')
-rw-r--r--tools/testing/selftests/bpf/progs/pyperf_subprogs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/pyperf_subprogs.c b/tools/testing/selftests/bpf/progs/pyperf_subprogs.c
new file mode 100644
index 000000000000..60e27a7f0cca
--- /dev/null
+++ b/tools/testing/selftests/bpf/progs/pyperf_subprogs.c
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2020 Facebook */
+#define STACK_MAX_LEN 50
+#define SUBPROGS
+#include "pyperf.h"