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.
8 #include <bpf/bpf_helpers.h>
10 /* from /sys/kernel/debug/tracing/events/task/task_rename/format */
14 char oldcomm[TASK_COMM_LEN];
15 char newcomm[TASK_COMM_LEN];
18 SEC("tracepoint/task/task_rename")
19 int prog(struct task_rename *ctx)
24 /* from /sys/kernel/debug/tracing/events/fib/fib_table_lookup/format */
25 struct fib_table_lookup {
43 SEC("tracepoint/fib/fib_table_lookup")
44 int prog2(struct fib_table_lookup *ctx)
48 char _license[] SEC("license") = "GPL";