mirror of https://github.com/aya-rs/aya
integration-test: Add test for 2 progs in same section
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>pull/413/head
parent
c72aab5f7b
commit
6d92119fbc
@ -0,0 +1,21 @@
|
|||||||
|
// Two programs in the same ELF section
|
||||||
|
|
||||||
|
#![no_std]
|
||||||
|
#![no_main]
|
||||||
|
|
||||||
|
use aya_bpf::{macros::tracepoint, programs::TracePointContext};
|
||||||
|
|
||||||
|
#[tracepoint]
|
||||||
|
pub fn test_tracepoint_one(_ctx: TracePointContext) -> u32 {
|
||||||
|
0
|
||||||
|
}
|
||||||
|
#[tracepoint]
|
||||||
|
pub fn test_tracepoint_two(_ctx: TracePointContext) -> u32 {
|
||||||
|
0
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(not(test))]
|
||||||
|
#[panic_handler]
|
||||||
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
||||||
|
loop {}
|
||||||
|
}
|
Loading…
Reference in New Issue