aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/urandom_read_lib2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/bpf/urandom_read_lib2.c')
-rw-r--r--tools/testing/selftests/bpf/urandom_read_lib2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/urandom_read_lib2.c b/tools/testing/selftests/bpf/urandom_read_lib2.c
new file mode 100644
index 000000000000..9d401ad9838f
--- /dev/null
+++ b/tools/testing/selftests/bpf/urandom_read_lib2.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2022 Meta Platforms, Inc. and affiliates. */
+#include "sdt.h"
+
+void urandlib_read_without_sema(int iter_num, int iter_cnt, int read_sz)
+{
+ STAP_PROBE3(urandlib, read_without_sema, iter_num, iter_cnt, read_sz);
+}