treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / testing / selftests / bpf / progs / test_trampoline_count.c
blobe51e6e3a81c2cc05fae69486a43986d4c65336c8
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdbool.h>
3 #include <stddef.h>
4 #include <linux/bpf.h>
5 #include "bpf_trace_helpers.h"
7 struct task_struct;
9 SEC("fentry/__set_task_comm")
10 int BPF_PROG(prog1, struct task_struct *tsk, const char *buf, bool exec)
12 return 0;
15 SEC("fexit/__set_task_comm")
16 int BPF_PROG(prog2, struct task_struct *tsk, const char *buf, bool exec)
18 return 0;
21 char _license[] SEC("license") = "GPL";