blob: 58d2777014e18e9354aed92db5dad7fdd07cb2b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
char _license[] SEC("license") = "GPL";
SEC("?fentry/bpf_spin_lock")
int BPF_PROG(test_spin_lock, struct bpf_spin_lock *lock)
{
return 0;
}
SEC("?fentry/bpf_spin_unlock")
int BPF_PROG(test_spin_unlock, struct bpf_spin_lock *lock)
{
return 0;
}
SEC("?fentry/__rcu_read_lock")
int BPF_PROG(tracing_deny)
{
return 0;
}
|