test_overhead_tp.bpf.c 658 B

1234567891011121314151617181920212223
  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. /* from /sys/kernel/tracing/events/task/task_rename/format */
  10. SEC("tracepoint/task/task_rename")
  11. int prog(struct trace_event_raw_task_rename *ctx)
  12. {
  13. return 0;
  14. }
  15. /* from /sys/kernel/tracing/events/fib/fib_table_lookup/format */
  16. SEC("tracepoint/fib/fib_table_lookup")
  17. int prog2(struct trace_event_raw_fib_table_lookup *ctx)
  18. {
  19. return 0;
  20. }
  21. char _license[] SEC("license") = "GPL";