tools/testing/selftests/bpf/progs/tracing_failure.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/bpf/progs/tracing_failure.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/progs/tracing_failure.c
Extension
.c
Size
569 bytes
Lines
33
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

// 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;
}

Annotation

Implementation Notes