summaryrefslogtreecommitdiff
path: root/internal/c/ior.bpf.c
blob: 57a4ed67684288602a8db025357c7faa4975bd4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//+build ignore

#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include "types.h"
#include "maps.h"
#include "flags.h"

/**
 * Including .c files, as linking several .o files into one single .o file doesn't work
 * with shared BPF state such as ring buffers, maps and globals so well. Other BPF projects
 * come along with one huuuuughe .c file with all the BPF code in it. I am rather 
 * splitting the code up into several smaller files.
 */
#include "filter.c"

// Auto-generated tracepoints.
#include "generated_tracepoints.c"

char LICENSE[] SEC("license") = "Dual BSD/GPL";