mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Delete fexit_noreturns.c files and migrate the cases into tracing_failure.c files. The result: $ tools/testing/selftests/bpf/test_progs -t tracing_failure/fexit_noreturns #467/4 tracing_failure/fexit_noreturns:OK #467 tracing_failure:OK Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: KaFai Wan <kafai.wan@linux.dev> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20250724151454.499040-5-kafai.wan@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
32 lines
569 B
C
32 lines
569 B
C
// 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;
|
|
}
|
|
|
|
SEC("?fexit/do_exit")
|
|
int BPF_PROG(fexit_noreturns)
|
|
{
|
|
return 0;
|
|
}
|