]> Git Repo - J-linux.git/blob - tools/testing/selftests/bpf/progs/test_perf_skip.c
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / tools / testing / selftests / bpf / progs / test_perf_skip.c
1 // SPDX-License-Identifier: GPL-2.0
2 #include "vmlinux.h"
3 #include <bpf/bpf_helpers.h>
4 #include <bpf/bpf_tracing.h>
5
6 uintptr_t ip;
7
8 SEC("perf_event")
9 int 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
15 char _license[] SEC("license") = "GPL";
This page took 0.026133 seconds and 4 git commands to generate.