summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/usdt_2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/bpf/usdt_2.c')
-rw-r--r--tools/testing/selftests/bpf/usdt_2.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/usdt_2.c b/tools/testing/selftests/bpf/usdt_2.c
new file mode 100644
index 000000000000..789883aaca4c
--- /dev/null
+++ b/tools/testing/selftests/bpf/usdt_2.c
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#if defined(__x86_64__)
+
+/*
+ * Include usdt.h with default nop,nop5 instructions combo.
+ */
+#include "usdt.h"
+
+__attribute__((aligned(16)))
+void usdt_2(void)
+{
+ USDT(optimized_attach, usdt_2);
+}
+
+#endif