1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2019 Facebook */
3 #include <linux/bpf.h>
4 #include "bpf_helpers.h"
5 #include "bpf_tracing.h"
6 #include "bpf_trace_helpers.h"
7
8 SEC("kprobe/__set_task_comm")
prog1(struct pt_regs * ctx)9 int prog1(struct pt_regs *ctx)
10 {
11 return 0;
12 }
13
14 SEC("kretprobe/__set_task_comm")
prog2(struct pt_regs * ctx)15 int prog2(struct pt_regs *ctx)
16 {
17 return 0;
18 }
19
20 SEC("raw_tp/task_rename")
prog3(struct bpf_raw_tracepoint_args * ctx)21 int prog3(struct bpf_raw_tracepoint_args *ctx)
22 {
23 return 0;
24 }
25
26 struct task_struct;
27 BPF_TRACE_3("fentry/__set_task_comm", prog4,
28 struct task_struct *, tsk, const char *, buf, __u8, exec)
29 {
30 return 0;
31 }
32
33 BPF_TRACE_3("fexit/__set_task_comm", prog5,
34 struct task_struct *, tsk, const char *, buf, __u8, exec)
35 {
36 return 0;
37 }
38
39 char _license[] SEC("license") = "GPL";
40