We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5589bf commit 25d1adeCopy full SHA for 25d1ade
tools/testing/selftests/bpf/prog_tests/fexit_noreturns.c
@@ -0,0 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0
2
+
3
+#include <test_progs.h>
4
+#include "fexit_noreturns.skel.h"
5
6
+void test_fexit_noreturns(void)
7
+{
8
+ RUN_TESTS(fexit_noreturns);
9
+}
tools/testing/selftests/bpf/progs/fexit_noreturns.c
@@ -0,0 +1,15 @@
+#include <linux/bpf.h>
+#include <bpf/bpf_helpers.h>
+#include <bpf/bpf_tracing.h>
+#include "bpf_misc.h"
+char _license[] SEC("license") = "GPL";
10
+SEC("fexit/do_exit")
11
+__failure __msg("Attaching fexit to __noreturn functions is rejected.")
12
+int BPF_PROG(noreturns)
13
14
+ return 0;
15
0 commit comments