Hide eBPF functions (#15404)
move_ebpf_functions: Hide functions
thiagoftsm committed
Jul 14, 2023 at 18:18 UTC
11cbb8f70e476a94cbf6a8b3cbb37078af2a1d5f
1 file changed
+8
collectors/ebpf.plugin/ebpf.c
+8
@@ -388,7 +388,11 @@ struct netdata_static_thread ebpf_threads[] = {
388
.config_section = NULL,
389
.config_name = NULL,
390
.env_name = NULL,
391
+#ifdef NETDATA_DEV_MODE
392
.enabled = 1,
393
+#else
394
+ .enabled = 0,
395
+#endif
396
.thread = NULL,
397
.init_routine = NULL,
398
.start_routine = NULL
@@ -2698,10 +2702,14 @@ static void ebpf_create_statistic_charts(int update_every)
2702
create_charts = 0;
2703
2704
ebpf_create_statistic_thread_chart(update_every);
2705
+#ifdef NETDATA_DEV_MODE
2706
EBPF_PLUGIN_FUNCTIONS(EBPF_FUNCTION_THREAD, EBPF_PLUGIN_THREAD_FUNCTION_DESCRIPTION);
2707
+#endif
2708
2709
ebpf_create_lifetime_thread_chart(update_every);
2710
+#ifdef NETDATA_DEV_MODE
2711
EBPF_PLUGIN_FUNCTIONS(EBPF_FUNCTION_THREAD, EBPF_PLUGIN_THREAD_FUNCTION_DESCRIPTION);
2712
+#endif
2713
2714
ebpf_create_statistic_load_chart(update_every);
2715