cbe_rbpf 0.2.38

Virtual machine and JIT compiler for eBPF programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef unsigned long int uint64_t;
typedef unsigned char uint8_t;

struct PubkeyLutEntry {
  uint8_t (*fp)(uint8_t);
  uint64_t key;
};

uint8_t f1(uint8_t a) {
  return a + 1;
}

struct PubkeyLutEntry __attribute__((__section__(".data.rel.ro"))) E1 = { &f1, 0x0102030405060708 };

extern uint64_t entrypoint(const uint8_t *input) {
  return E1.key;
}