diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:27:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:27:49 +0000 |
commit | ace9429bb58fd418f0c81d4c2835699bddf6bde6 (patch) | |
tree | b2d64bc10158fdd5497876388cd68142ca374ed3 /samples/bpf/test_overhead_tp.bpf.c | |
parent | Initial commit. (diff) | |
download | linux-c5db43d0cef8c4615d5960c43ba45e6dbd0abc00.tar.xz linux-c5db43d0cef8c4615d5960c43ba45e6dbd0abc00.zip |
Adding upstream version 6.6.15.upstream/6.6.15
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'samples/bpf/test_overhead_tp.bpf.c')
-rw-r--r-- | samples/bpf/test_overhead_tp.bpf.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/samples/bpf/test_overhead_tp.bpf.c b/samples/bpf/test_overhead_tp.bpf.c new file mode 100644 index 0000000000..5dc08b5879 --- /dev/null +++ b/samples/bpf/test_overhead_tp.bpf.c @@ -0,0 +1,23 @@ +/* Copyright (c) 2016 Facebook + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + */ +#include "vmlinux.h" +#include <bpf/bpf_helpers.h> + +/* from /sys/kernel/tracing/events/task/task_rename/format */ +SEC("tracepoint/task/task_rename") +int prog(struct trace_event_raw_task_rename *ctx) +{ + return 0; +} + +/* from /sys/kernel/tracing/events/fib/fib_table_lookup/format */ +SEC("tracepoint/fib/fib_table_lookup") +int prog2(struct trace_event_raw_fib_table_lookup *ctx) +{ + return 0; +} +char _license[] SEC("license") = "GPL"; |