-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathsysinternalsEBPF.h
61 lines (43 loc) · 1.78 KB
/
sysinternalsEBPF.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
SysinternalsEBPF
Copyright (c) Microsoft Corporation
All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
//====================================================================
//
// sysinternalsEBPF.h
//
// Defines needed by SysinternalsEBPF.
//
//====================================================================
#ifndef SYSINTERNALS_EBPF_H
#define SYSINTERNALS_EBPF_H
#include "sysinternalsEBPFshared.h"
#define SYSINTERNALS_EBPF_INSTALL_DIR "/opt/sysinternalsEBPF"
#define CONFIG_FILE SYSINTERNALS_EBPF_INSTALL_DIR "/sysinternalsEBPF_offsets.conf"
#define OFFSETS_DB_FILE SYSINTERNALS_EBPF_INSTALL_DIR "/offsets.json"
#define BTF_KERNEL_FILE "/sys/kernel/btf/vmlinux"
// if we don't receive an event within the RESTART_TIMEOUT, we restart
#define RESTART_TIMEOUT 300
#define EBPF_RAW_SOCK_OBJ "sysinternalsEBPFrawSock.o"
#define MAP_PAGE_SIZE (16 * 1024)
#define DEBUGFS "/sys/kernel/debug/tracing/"
#ifndef STOPLOOP
#define STOPLOOP 0
#endif
#define SYSINTERNALS_EBPF_UMASK 077
#define SYSCALL_MAX 335
#define SYSCALL_NAME_LEN 64
#define MAX_MEM_DUMP 32768
#endif