xref: /linux/samples/bpf/test_overhead_tp.bpf.c (revision 40d269c000bda9fcd276a0412a9cebd3f6e344c5)
1 /* Copyright (c) 2016 Facebook
2  *
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.
6  */
7 #include "vmlinux.h"
8 #include <bpf/bpf_helpers.h>
9 
10 /* from /sys/kernel/tracing/events/task/task_rename/format */
11 SEC("tracepoint/task/task_rename")
12 int prog(struct trace_event_raw_task_rename *ctx)
13 {
14 	return 0;
15 }
16 
17 /* from /sys/kernel/tracing/events/fib/fib_table_lookup/format */
18 SEC("tracepoint/fib/fib_table_lookup")
19 int prog2(struct trace_event_raw_fib_table_lookup *ctx)
20 {
21 	return 0;
22 }
23 char _license[] SEC("license") = "GPL";
24