Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 15 lines 324 B view raw
1// SPDX-License-Identifier: GPL-2.0 2#include "vmlinux.h" 3#include <bpf/bpf_helpers.h> 4#include <bpf/bpf_tracing.h> 5 6uintptr_t ip; 7 8SEC("perf_event") 9int handler(struct bpf_perf_event_data *data) 10{ 11 /* Skip events that have the correct ip. */ 12 return ip != PT_REGS_IP(&data->regs); 13} 14 15char _license[] SEC("license") = "GPL";