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 10 struct whatever {}; 11 12 SEC("kprobe") 13 __success __log_level(2) 14 /* context type is wrong, making it impossible to freplace this program */ 15 int btf_unreliable_kprobe(struct whatever *ctx) 16 { 17 return 0; 18 } 19 20 char _license[] SEC("license") = "GPL"; 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.