Skip to content

Commit

Permalink
eBPF socket (eBPF) (netdata#16669)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm authored Dec 27, 2023
1 parent cafe5d6 commit 28394c9
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 473 deletions.
16 changes: 0 additions & 16 deletions collectors/ebpf.plugin/ebpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3777,23 +3777,13 @@ static void ebpf_create_statistic_charts(int update_every)
NETDATA_EBPF_ORDER_STAT_THREADS,
update_every,
NULL);
/*
#ifdef NETDATA_DEV_MODE
EBPF_PLUGIN_FUNCTIONS(EBPF_FUNCTION_THREAD, EBPF_PLUGIN_THREAD_FUNCTION_DESCRIPTION);
#endif
*/

ebpf_create_thread_chart(NETDATA_EBPF_LIFE_TIME,
"Time remaining for thread.",
"seconds",
NETDATA_EBPF_ORDER_STAT_LIFE_TIME,
update_every,
NULL);
/*
#ifdef NETDATA_DEV_MODE
EBPF_PLUGIN_FUNCTIONS(EBPF_FUNCTION_THREAD, EBPF_PLUGIN_THREAD_FUNCTION_DESCRIPTION);
#endif
*/

int i,j;
char name[256];
Expand All @@ -3811,9 +3801,6 @@ static void ebpf_create_statistic_charts(int update_every)
j++,
update_every,
em);
#ifdef NETDATA_DEV_MODE
EBPF_PLUGIN_FUNCTIONS(em->functions.fcnt_name, em->functions.fcnt_desc);
#endif

em->functions.order_thread_lifetime = j;
snprintfz(name, sizeof(name) - 1, "%s_%s", NETDATA_EBPF_LIFE_TIME, em->info.thread_name);
Expand All @@ -3824,9 +3811,6 @@ static void ebpf_create_statistic_charts(int update_every)
j++,
update_every,
em);
#ifdef NETDATA_DEV_MODE
EBPF_PLUGIN_FUNCTIONS(em->functions.fcnt_name, em->functions.fcnt_desc);
#endif
}

ebpf_create_statistic_load_chart(update_every);
Expand Down
Loading

0 comments on commit 28394c9

Please sign in to comment.