File Index
Files and directories
Sign in
FILE

tracing_failure.c

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/bpf/progs/tracing_failure.c C
 1// SPDX-License-Identifier: GPL-2.0
 2/* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
 3
 4#include "vmlinux.h"
 5#include <bpf/bpf_helpers.h>
 6#include <bpf/bpf_tracing.h>
 7
 8char _license[] SEC("license") = "GPL";
 9
10SEC("?fentry/bpf_spin_lock")
11int BPF_PROG(test_spin_lock, struct bpf_spin_lock *lock)
12{
13	return 0;
14}
15
16SEC("?fentry/bpf_spin_unlock")
17int BPF_PROG(test_spin_unlock, struct bpf_spin_lock *lock)
18{
19	return 0;
20}
21
22SEC("?fentry/__rcu_read_lock")
23int BPF_PROG(tracing_deny)
24{
25	return 0;
26}
27
28SEC("?fexit/do_exit")
29int BPF_PROG(fexit_noreturns)
30{
31	return 0;
32}
~/ Read-only file preview.