ebpf 실습

·
카테고리 없음
1 #include "vmlinux.h" 2 #include 3 #include 4 5 char LICENSE[] SEC("license") = "Dual BSD/GPL"; 6 7 struct { 8 __uint(type, BPF_MAP_TYPE_HASH); 9 __uint(max_entries, 1); 10 __type(key, __u32); 11 __type(value, __u64); 12 } test_map SEC(".maps"); 13 14 SEC("kprobe/__arm64_sys_unlinkat") 15 int BPF_KPROBE(bad_verifier_test) 16 { 17 __u32 key = 0; 18 __u64 *value;..