FILE
verifier_btf_unreliable_prog.c
File preview with syntax highlighting.
linux-6.19.14/tools/testing/selftests/bpf/progs/verifier_btf_unreliable_prog.c
1// SPDX-License-Identifier: GPL-2.0 2// Copyright (c) 2017 Facebook 3 4#include "vmlinux.h" 5#include <bpf/bpf_helpers.h> 6#include <bpf/bpf_tracing.h> 7#include <bpf/bpf_core_read.h> 8#include "bpf_misc.h" 9 10struct whatever {}; 11 12SEC("kprobe") 13__success __log_level(2) 14/* context type is wrong, making it impossible to freplace this program */ 15int btf_unreliable_kprobe(struct whatever *ctx) 16{ 17 return 0; 18} 19 20char _license[] SEC("license") = "GPL";
~/
Read-only file preview.