1 /* Copyright (c) 2016 Facebook
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of version 2 of the GNU General Public
5 * License as published by the Free Software Foundation.
7 #include <linux/sched.h>
8 #include <uapi/linux/bpf.h>
9 #include <bpf/bpf_helpers.h>
11 /* from /sys/kernel/debug/tracing/events/task/task_rename/format */
15 char oldcomm[TASK_COMM_LEN];
16 char newcomm[TASK_COMM_LEN];
19 SEC("tracepoint/task/task_rename")
20 int prog(struct task_rename *ctx)
25 /* from /sys/kernel/debug/tracing/events/random/urandom_read/format */
32 SEC("tracepoint/random/urandom_read")
33 int prog2(struct urandom_read *ctx)
37 char _license[] SEC("license") = "GPL";