two_progs.rs 340 B

1234567891011121314151617
  1. // Two programs in the same ELF section
  2. #![no_std]
  3. #![no_main]
  4. use aya_ebpf::{macros::tracepoint, programs::TracePointContext};
  5. #[cfg(not(test))]
  6. extern crate ebpf_panic;
  7. #[tracepoint]
  8. pub fn test_tracepoint_one(_ctx: TracePointContext) -> u32 {
  9. 0
  10. }
  11. #[tracepoint]
  12. pub fn test_tracepoint_two(_ctx: TracePointContext) -> u32 {
  13. 0
  14. }