You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/test/integration-test/bpf/field_reloc.bpf.c

10 lines
265 B
C

#include "reloc.h"
#include "struct_with_scalars.h"
__noinline int field_global() {
struct relocated_struct_with_scalars s = {1, 2, 3};
return set_output(__builtin_preserve_access_index(s.b));
}
SEC("uprobe") int program(void *ctx) { return field_global(); }