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

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/progs/core_kern_overflow.c
Extension
.c
Size
522 bytes
Lines
23
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
#include "vmlinux.h"

#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>

typedef int (*func_proto_typedef)(long);
typedef int (*func_proto_typedef_nested1)(func_proto_typedef);
typedef int (*func_proto_typedef_nested2)(func_proto_typedef_nested1);

int proto_out;

SEC("raw_tracepoint/sys_enter")
int core_relo_proto(void *ctx)
{
	proto_out = bpf_core_type_exists(func_proto_typedef_nested2);

	return 0;
}

char LICENSE[] SEC("license") = "GPL";

Annotation

Implementation Notes