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 */
11SEC("tracepoint/task/task_rename")
12int 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 */
18SEC("tracepoint/fib/fib_table_lookup")
19int prog2(struct trace_event_raw_fib_table_lookup *ctx)
20{
21 return 0;
22}
23char _license[] SEC("license") = "GPL";
24

source code of linux/samples/bpf/test_overhead_tp.bpf.c