blob: 896309e905b1e9ae07d2665902fbfb1e6d67cde9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//+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"
// Tracepoints with custom handling.
#include "tracepoints/open.c"
char LICENSE[] SEC("license") = "Dual BSD/GPL";
|