This source file includes following definitions.
- SEC
- SEC
1
2
3
4
5
6
7 #include <uapi/linux/bpf.h>
8 #include "bpf_helpers.h"
9
10
11 struct task_rename {
12 __u64 pad;
13 __u32 pid;
14 char oldcomm[16];
15 char newcomm[16];
16 __u16 oom_score_adj;
17 };
18 SEC("tracepoint/task/task_rename")
19 int prog(struct task_rename *ctx)
20 {
21 return 0;
22 }
23
24
25 struct urandom_read {
26 __u64 pad;
27 int got_bits;
28 int pool_left;
29 int input_left;
30 };
31 SEC("tracepoint/random/urandom_read")
32 int prog2(struct urandom_read *ctx)
33 {
34 return 0;
35 }
36 char _license[] SEC("license") = "GPL";