ebpf.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_EBPF_H
  3. #define NETDATA_EBPF_H 1
  4. #include <bpf/bpf.h>
  5. #include <bpf/libbpf.h>
  6. #ifdef LIBBPF_DEPRECATED
  7. #include <bpf/btf.h>
  8. #include <linux/btf.h>
  9. #endif
  10. #include <stdlib.h> // Necessary for stdtoul
  11. #include "libnetdata/aral/aral.h"
  12. #define NETDATA_DEBUGFS "/sys/kernel/debug/tracing/"
  13. #define NETDATA_KALLSYMS "/proc/kallsyms"
  14. // Config files
  15. #define EBPF_GLOBAL_SECTION "global"
  16. #define EBPF_CFG_LOAD_MODE "ebpf load mode"
  17. #define EBPF_CFG_LOAD_MODE_DEFAULT "entry"
  18. #define EBPF_CFG_LOAD_MODE_RETURN "return"
  19. #define EBPF_MAX_MODE_LENGTH 6
  20. #define EBPF_CFG_TYPE_FORMAT "ebpf type format"
  21. #define EBPF_CFG_DEFAULT_PROGRAM "auto"
  22. #define EBPF_CFG_CORE_PROGRAM "CO-RE"
  23. #define EBPF_CFG_LEGACY_PROGRAM "legacy"
  24. #define EBPF_CFG_COLLECT_PID "collect pid"
  25. #define EBPF_CFG_PID_REAL_PARENT "real parent"
  26. #define EBPF_CFG_PID_PARENT "parent"
  27. #define EBPF_CFG_PID_ALL "all"
  28. #define EBPF_CFG_PID_INTERNAL_USAGE "not used"
  29. #define EBPF_CFG_CORE_ATTACH "ebpf co-re tracing"
  30. #define EBPF_CFG_ATTACH_TRAMPOLINE "trampoline"
  31. #define EBPF_CFG_ATTACH_TRACEPOINT "tracepoint"
  32. #define EBPF_CFG_ATTACH_PROBE "probe"
  33. #define EBPF_CFG_PROGRAM_PATH "btf path"
  34. #define EBPF_CFG_MAPS_PER_CORE "maps per core"
  35. #define EBPF_CFG_UPDATE_EVERY "update every"
  36. #define EBPF_CFG_LIFETIME "lifetime"
  37. #define EBPF_CFG_UPDATE_APPS_EVERY_DEFAULT 10
  38. #define EBPF_CFG_PID_SIZE "pid table size"
  39. #define EBPF_CFG_APPLICATION "apps"
  40. #define EBPF_CFG_CGROUP "cgroups"
  41. #define EBPF_COMMON_FNCT_CLEAN_UP "release_task"
  42. /**
  43. * The RedHat magic number was got doing:
  44. *
  45. * 1797 = 7*256 + 5
  46. *
  47. * For more details, please, read /usr/include/linux/version.h
  48. * in any Red Hat installation.
  49. */
  50. #define NETDATA_MINIMUM_RH_VERSION 1797
  51. /**
  52. * 2048 = 8*256 + 0
  53. */
  54. #define NETDATA_RH_8 2048
  55. /**
  56. * Kernel Version
  57. *
  58. * Kernel versions are calculated using the following formula:
  59. *
  60. * VERSION = LINUX_VERSION_MAJOR*65536 + LINUX_VERSION_PATCHLEVEL*256 + LINUX_VERSION_SUBLEVEL
  61. *
  62. * Where LINUX_VERSION_MAJOR, LINUX_VERSION_PATCHLEVEL, and LINUX_VERSION_SUBLEVEL are extracted
  63. * from /usr/include/linux/version.h.
  64. *
  65. * LINUX_VERSION_SUBLEVEL has the maximum value 255, but linux can have more SUBLEVELS.
  66. *
  67. */
  68. enum netdata_ebpf_kernel_versions {
  69. NETDATA_EBPF_KERNEL_4_06 = 263680, // 264960 = 4 * 65536 + 6 * 256
  70. NETDATA_EBPF_KERNEL_4_11 = 264960, // 264960 = 4 * 65536 + 15 * 256
  71. NETDATA_EBPF_KERNEL_4_14 = 265728, // 264960 = 4 * 65536 + 14 * 256
  72. NETDATA_EBPF_KERNEL_4_15 = 265984, // 265984 = 4 * 65536 + 15 * 256
  73. NETDATA_EBPF_KERNEL_4_17 = 266496, // 266496 = 4 * 65536 + 17 * 256
  74. NETDATA_EBPF_KERNEL_5_0 = 327680, // 327680 = 5 * 65536 + 0 * 256
  75. NETDATA_EBPF_KERNEL_5_4 = 328704, // 327680 = 5 * 65536 + 4 * 256
  76. NETDATA_EBPF_KERNEL_5_5 = 328960, // 327680 = 5 * 65536 + 5 * 256
  77. NETDATA_EBPF_KERNEL_5_10 = 330240, // 330240 = 5 * 65536 + 10 * 256
  78. NETDATA_EBPF_KERNEL_5_11 = 330496, // 330240 = 5 * 65536 + 11 * 256
  79. NETDATA_EBPF_KERNEL_5_14 = 331264, // 331264 = 5 * 65536 + 14 * 256
  80. NETDATA_EBPF_KERNEL_5_15 = 331520, // 331520 = 5 * 65536 + 15 * 256
  81. NETDATA_EBPF_KERNEL_5_16 = 331776 // 331776 = 5 * 65536 + 16 * 256
  82. };
  83. enum netdata_kernel_flag {
  84. NETDATA_V3_10 = 1 << 0,
  85. NETDATA_V4_14 = 1 << 1,
  86. NETDATA_V4_16 = 1 << 2,
  87. NETDATA_V4_18 = 1 << 3,
  88. NETDATA_V5_4 = 1 << 4,
  89. NETDATA_V5_10 = 1 << 5,
  90. NETDATA_V5_11 = 1 << 6,
  91. NETDATA_V5_14 = 1 << 7,
  92. NETDATA_V5_15 = 1 << 8,
  93. NETDATA_V5_16 = 1 << 9
  94. };
  95. enum netdata_kernel_idx {
  96. NETDATA_IDX_V3_10,
  97. NETDATA_IDX_V4_14,
  98. NETDATA_IDX_V4_16,
  99. NETDATA_IDX_V4_18,
  100. NETDATA_IDX_V5_4 ,
  101. NETDATA_IDX_V5_10,
  102. NETDATA_IDX_V5_11,
  103. NETDATA_IDX_V5_14,
  104. NETDATA_IDX_V5_15,
  105. NETDATA_IDX_V5_16
  106. };
  107. #define NETDATA_IDX_STR_V3_10 "3.10"
  108. #define NETDATA_IDX_STR_V4_14 "4.14"
  109. #define NETDATA_IDX_STR_V4_16 "4.16"
  110. #define NETDATA_IDX_STR_V4_18 "4.18"
  111. #define NETDATA_IDX_STR_V5_4 "5.4"
  112. #define NETDATA_IDX_STR_V5_10 "5.10"
  113. #define NETDATA_IDX_STR_V5_11 "5.11"
  114. #define NETDATA_IDX_STR_V5_14 "5.14"
  115. #define NETDATA_IDX_STR_V5_15 "5.15"
  116. #define NETDATA_IDX_STR_V5_16 "5.16"
  117. /**
  118. * Minimum value has relationship with libbpf support.
  119. */
  120. #define NETDATA_MINIMUM_EBPF_KERNEL NETDATA_EBPF_KERNEL_4_11
  121. #define VERSION_STRING_LEN 256
  122. #define EBPF_KERNEL_REJECT_LIST_FILE "ebpf_kernel_reject_list.txt"
  123. #define ND_EBPF_DEFAULT_MIN_PID 1U
  124. #define ND_EBPF_MAP_FD_NOT_INITIALIZED (int)-1
  125. typedef struct ebpf_addresses {
  126. char *function;
  127. uint32_t hash;
  128. // We use long as address, because it matches system length
  129. unsigned long addr;
  130. uint32_t type;
  131. } ebpf_addresses_t;
  132. extern char *ebpf_user_config_dir;
  133. extern char *ebpf_stock_config_dir;
  134. typedef struct ebpf_data {
  135. int *map_fd;
  136. char *kernel_string;
  137. uint32_t running_on_kernel;
  138. int isrh;
  139. } ebpf_data_t;
  140. typedef enum {
  141. MODE_RETURN = 0, // This attaches kprobe when the function returns
  142. MODE_DEVMODE, // This stores log given description about the errors raised
  143. MODE_ENTRY // This attaches kprobe when the function is called
  144. } netdata_run_mode_t;
  145. #define ND_EBPF_DEFAULT_PID_SIZE 32768U
  146. enum netdata_ebpf_map_type {
  147. NETDATA_EBPF_MAP_STATIC = 0,
  148. NETDATA_EBPF_MAP_RESIZABLE = 1,
  149. NETDATA_EBPF_MAP_CONTROLLER = 2,
  150. NETDATA_EBPF_MAP_CONTROLLER_UPDATED = 4,
  151. NETDATA_EBPF_MAP_PID = 8
  152. };
  153. enum netdata_controller {
  154. NETDATA_CONTROLLER_APPS_ENABLED,
  155. NETDATA_CONTROLLER_APPS_LEVEL,
  156. // These index show the number of elements
  157. // stored inside hash tables.
  158. //
  159. // We have indexes to count increase and
  160. // decrease events, because __sync_fetch_and_sub
  161. // generates compilation errors.
  162. NETDATA_CONTROLLER_PID_TABLE_ADD,
  163. NETDATA_CONTROLLER_PID_TABLE_DEL,
  164. NETDATA_CONTROLLER_TEMP_TABLE_ADD,
  165. NETDATA_CONTROLLER_TEMP_TABLE_DEL,
  166. NETDATA_CONTROLLER_END
  167. };
  168. // Control how Netdata will monitor PIDs (apps and cgroups)
  169. typedef enum netdata_apps_level {
  170. NETDATA_APPS_LEVEL_REAL_PARENT,
  171. NETDATA_APPS_LEVEL_PARENT,
  172. NETDATA_APPS_LEVEL_ALL,
  173. // Present only in user ring
  174. NETDATA_APPS_NOT_SET
  175. } netdata_apps_level_t;
  176. typedef struct ebpf_local_maps {
  177. char *name;
  178. uint32_t internal_input;
  179. uint32_t user_input;
  180. uint32_t type;
  181. int map_fd;
  182. #ifdef LIBBPF_MAJOR_VERSION
  183. enum bpf_map_type map_type;
  184. #endif
  185. } ebpf_local_maps_t;
  186. typedef struct ebpf_specify_name {
  187. char *program_name;
  188. char *function_to_attach;
  189. char *optional;
  190. bool retprobe;
  191. } ebpf_specify_name_t;
  192. typedef enum netdata_ebpf_load_mode {
  193. EBPF_LOAD_LEGACY = 1<<0, // Select legacy mode, this means we will load binaries
  194. EBPF_LOAD_CORE = 1<<1, // When CO-RE is used, it is necessary to use the source code
  195. EBPF_LOAD_PLAY_DICE = 1<<2, // Take a look on environment and choose the best option
  196. EBPF_LOADED_FROM_STOCK = 1<<3, // Configuration loaded from Stock file
  197. EBPF_LOADED_FROM_USER = 1<<4 // Configuration loaded from user
  198. } netdata_ebpf_load_mode_t;
  199. #define NETDATA_EBPF_LOAD_METHODS (EBPF_LOAD_LEGACY|EBPF_LOAD_CORE|EBPF_LOAD_PLAY_DICE)
  200. #define NETDATA_EBPF_LOAD_SOURCE (EBPF_LOADED_FROM_STOCK|EBPF_LOADED_FROM_USER)
  201. typedef enum netdata_ebpf_program_loaded {
  202. EBPF_LOAD_PROBE, // Attach probes on targets
  203. EBPF_LOAD_RETPROBE, // Attach retprobes on targets
  204. EBPF_LOAD_TRACEPOINT, // This stores log given description about the errors raised
  205. EBPF_LOAD_TRAMPOLINE, // This attaches kprobe when the function is called
  206. } netdata_ebpf_program_loaded_t;
  207. typedef struct netdata_ebpf_targets {
  208. char *name;
  209. netdata_ebpf_program_loaded_t mode;
  210. } netdata_ebpf_targets_t;
  211. typedef struct ebpf_plugin_stats {
  212. // Load options
  213. uint32_t legacy; // Legacy codes
  214. uint32_t core; // CO-RE codes, this means we are using source code compiled.
  215. uint32_t threads; // Total number of threads
  216. uint32_t running; // total number of threads running
  217. uint32_t probes; // Number of kprobes loaded
  218. uint32_t retprobes; // Number of kretprobes loaded
  219. uint32_t tracepoints; // Number of tracepoints used
  220. uint32_t trampolines; // Number of trampolines used
  221. uint64_t memlock_kern; // The same information reported by bpftool, but it is not accurated
  222. // https://lore.kernel.org/linux-mm/20230112155326.26902-5-laoar.shao@gmail.com/T/
  223. uint32_t hash_tables; // Number of hash tables used on the system.
  224. uint32_t hash_percpu; // Number of threads running per cpu maps
  225. uint32_t hash_unique; // Number of threads running an unique map for all cores.
  226. } ebpf_plugin_stats_t;
  227. typedef enum ebpf_stats_action {
  228. EBPF_ACTION_STAT_ADD,
  229. EBPF_ACTION_STAT_REMOVE,
  230. } ebpf_stats_action_t;
  231. typedef enum netdata_apps_integration_flags {
  232. NETDATA_EBPF_APPS_FLAG_NO,
  233. NETDATA_EBPF_APPS_FLAG_YES,
  234. NETDATA_EBPF_APPS_FLAG_CHART_CREATED
  235. } netdata_apps_integration_flags_t;
  236. #define NETDATA_EBPF_CHART_MEM_LENGTH 48
  237. #define NETDATA_EBPF_STAT_DIMENSION_MEMORY "memory"
  238. #define NETDATA_EBPF_STAT_DIMENSION_ARAL "aral"
  239. enum ebpf_threads_status {
  240. NETDATA_THREAD_EBPF_RUNNING, // started by plugin
  241. NETDATA_THREAD_EBPF_FUNCTION_RUNNING, // started by function
  242. NETDATA_THREAD_EBPF_STOPPING, // stopping thread
  243. NETDATA_THREAD_EBPF_STOPPED, // thread stopped
  244. NETDATA_THREAD_EBPF_NOT_RUNNING // thread was never started
  245. };
  246. enum ebpf_global_table_values {
  247. NETDATA_EBPF_GLOBAL_TABLE_PID_TABLE_ADD, // Count elements added inside PID table
  248. NETDATA_EBPF_GLOBAL_TABLE_PID_TABLE_DEL, // Count elements removed from PID table
  249. NETDATA_EBPF_GLOBAL_TABLE_TEMP_TABLE_ADD, // Count elements added inside TEMP table
  250. NETDATA_EBPF_GLOBAL_TABLE_TEMP_TABLE_DEL, // Count elements removed from TEMP table
  251. NETDATA_EBPF_GLOBAL_TABLE_STATUS_END
  252. };
  253. typedef uint64_t netdata_idx_t;
  254. typedef struct ebpf_module {
  255. // Constants used with module
  256. struct {
  257. const char *thread_name;
  258. const char *config_name;
  259. const char *thread_description;
  260. } info;
  261. // Helpers used with plugin
  262. struct {
  263. void *(*start_routine)(void *); // the thread function
  264. void (*apps_routine)(struct ebpf_module *em, void *ptr); // the apps charts
  265. void (*fnct_routine)(BUFFER *bf, struct ebpf_module *em); // the function used for exteernal requests
  266. const char *fcnt_name; // name given to cloud
  267. const char *fcnt_desc; // description given about function
  268. const char *fcnt_thread_chart_name;
  269. int order_thread_chart;
  270. const char *fcnt_thread_lifetime_name;
  271. int order_thread_lifetime;
  272. } functions;
  273. enum ebpf_threads_status enabled;
  274. int update_every;
  275. int global_charts;
  276. netdata_apps_integration_flags_t apps_charts;
  277. netdata_apps_level_t apps_level;
  278. int cgroup_charts;
  279. netdata_run_mode_t mode;
  280. uint32_t thread_id;
  281. int optional;
  282. ebpf_local_maps_t *maps;
  283. ebpf_specify_name_t *names;
  284. uint32_t pid_map_size;
  285. struct config *cfg;
  286. const char *config_file;
  287. uint64_t kernels;
  288. netdata_ebpf_load_mode_t load;
  289. netdata_ebpf_targets_t *targets;
  290. struct bpf_link **probe_links;
  291. struct bpf_object *objects;
  292. struct netdata_static_thread *thread;
  293. // charts
  294. char memory_usage[NETDATA_EBPF_CHART_MEM_LENGTH];
  295. char memory_allocations[NETDATA_EBPF_CHART_MEM_LENGTH];
  296. int maps_per_core;
  297. // period to run
  298. uint32_t running_time; // internal usage, this is used to reset a value when a new request happens.
  299. uint32_t lifetime;
  300. netdata_idx_t hash_table_stats[NETDATA_EBPF_GLOBAL_TABLE_STATUS_END];
  301. } ebpf_module_t;
  302. #define EBPF_DEFAULT_LIFETIME 300
  303. // This will be present until all functions are merged. The deadline is planned for 68 years since plugin start
  304. #define EBPF_NON_FUNCTION_LIFE_TIME UINT_MAX
  305. int ebpf_get_kernel_version();
  306. int get_redhat_release();
  307. int has_condition_to_run(int version);
  308. char *ebpf_kernel_suffix(int version, int isrh);
  309. struct bpf_link **ebpf_load_program(char *plugins_dir, ebpf_module_t *em, int kver, int is_rhf,
  310. struct bpf_object **obj);
  311. void ebpf_mount_config_name(char *filename, size_t length, char *path, const char *config);
  312. int ebpf_load_config(struct config *config, char *filename);
  313. void ebpf_update_module(ebpf_module_t *em, struct btf *btf_file, int kver, int is_rh);
  314. void ebpf_update_names(ebpf_specify_name_t *opt, ebpf_module_t *em);
  315. void ebpf_adjust_apps_cgroup(ebpf_module_t *em, netdata_ebpf_program_loaded_t mode);
  316. char *ebpf_find_symbol(char *search);
  317. void ebpf_load_addresses(ebpf_addresses_t *fa, int fd);
  318. void ebpf_fill_algorithms(int *algorithms, size_t length, int algorithm);
  319. char **ebpf_fill_histogram_dimension(size_t maximum);
  320. void ebpf_update_stats(ebpf_plugin_stats_t *report, ebpf_module_t *em);
  321. void ebpf_update_controller(int fd, ebpf_module_t *em);
  322. void ebpf_update_map_size(struct bpf_map *map, ebpf_local_maps_t *lmap, ebpf_module_t *em, const char *map_name);
  323. // Histogram
  324. #define NETDATA_EBPF_HIST_MAX_BINS 24UL
  325. #define NETDATA_DISK_MAX 256U
  326. #define NETDATA_DISK_HISTOGRAM_LENGTH (NETDATA_DISK_MAX * NETDATA_EBPF_HIST_MAX_BINS)
  327. typedef struct netdata_ebpf_histogram {
  328. char *name;
  329. char *title;
  330. char *ctx;
  331. int order;
  332. uint64_t histogram[NETDATA_EBPF_HIST_MAX_BINS];
  333. } netdata_ebpf_histogram_t;
  334. enum fs_btf_counters {
  335. NETDATA_KEY_BTF_READ,
  336. NETDATA_KEY_BTF_WRITE,
  337. NETDATA_KEY_BTF_OPEN,
  338. NETDATA_KEY_BTF_SYNC_ATTR,
  339. NETDATA_KEY_BTF_OPEN2,
  340. NETDATA_FS_BTF_END
  341. };
  342. typedef struct ebpf_filesystem_partitions {
  343. char *filesystem;
  344. char *optional_filesystem;
  345. char *family;
  346. char *family_name;
  347. struct bpf_object *objects;
  348. struct bpf_link **probe_links;
  349. netdata_ebpf_histogram_t hread;
  350. netdata_ebpf_histogram_t hwrite;
  351. netdata_ebpf_histogram_t hopen;
  352. netdata_ebpf_histogram_t hadditional;
  353. uint32_t flags;
  354. uint32_t enabled;
  355. ebpf_addresses_t addresses;
  356. uint64_t kernels;
  357. ebpf_local_maps_t *fs_maps;
  358. // BPF structure
  359. #ifdef LIBBPF_MAJOR_VERSION
  360. struct filesystem_bpf *fs_obj;
  361. #else
  362. void *fs_obj;
  363. #endif
  364. const char *functions[NETDATA_FS_BTF_END];
  365. } ebpf_filesystem_partitions_t;
  366. typedef struct ebpf_sync_syscalls {
  367. char *syscall;
  368. int enabled;
  369. uint32_t flags;
  370. // BTF structure
  371. struct bpf_object *objects;
  372. struct bpf_link **probe_links;
  373. // BPF structure
  374. #ifdef LIBBPF_MAJOR_VERSION
  375. struct sync_bpf *sync_obj;
  376. #else
  377. void *sync_obj;
  378. #endif
  379. ebpf_local_maps_t *sync_maps;
  380. } ebpf_sync_syscalls_t;
  381. void ebpf_histogram_dimension_cleanup(char **ptr, size_t length);
  382. // Tracepoint helpers
  383. // For more information related to tracepoints read https://www.kernel.org/doc/html/latest/trace/tracepoints.html
  384. int ebpf_is_tracepoint_enabled(char *subsys, char *eventname);
  385. int ebpf_enable_tracing_values(char *subsys, char *eventname);
  386. int ebpf_disable_tracing_values(char *subsys, char *eventname);
  387. // BTF Section
  388. #define EBPF_DEFAULT_BTF_FILE "vmlinux"
  389. #define EBPF_DEFAULT_BTF_PATH "/sys/kernel/btf"
  390. #define EBPF_DEFAULT_ERROR_MSG "Cannot open or load BPF file for thread"
  391. // BTF helpers
  392. #define NETDATA_EBPF_MAX_SYSCALL_LENGTH 255
  393. netdata_ebpf_load_mode_t epbf_convert_string_to_load_mode(char *str);
  394. netdata_ebpf_program_loaded_t ebpf_convert_core_type(char *str, netdata_run_mode_t lmode);
  395. void ebpf_select_host_prefix(char *output, size_t length, char *syscall, int kver);
  396. #ifdef LIBBPF_MAJOR_VERSION
  397. void ebpf_adjust_thread_load(ebpf_module_t *mod, struct btf *file);
  398. struct btf *ebpf_parse_btf_file(const char *filename);
  399. struct btf *ebpf_load_btf_file(char *path, char *filename);
  400. int ebpf_is_function_inside_btf(struct btf *file, char *function);
  401. void ebpf_update_map_type(struct bpf_map *map, ebpf_local_maps_t *w);
  402. void ebpf_define_map_type(ebpf_local_maps_t *maps, int maps_per_core, int kver);
  403. #endif
  404. void ebpf_update_kernel_memory_with_vector(ebpf_plugin_stats_t *report, ebpf_local_maps_t *maps,
  405. ebpf_stats_action_t action);
  406. void ebpf_update_kernel_memory(ebpf_plugin_stats_t *report, ebpf_local_maps_t *map, ebpf_stats_action_t action);
  407. int ebpf_statistic_create_aral_chart(char *name, ebpf_module_t *em);
  408. void ebpf_statistic_obsolete_aral_chart(ebpf_module_t *em, int prio);
  409. void ebpf_send_data_aral_chart(ARAL *memory, ebpf_module_t *em);
  410. #endif /* NETDATA_EBPF_H */