Skip to content

Commit

Permalink
Merge pull request #1 from vlvkobal/ebpf_apps
Browse files Browse the repository at this point in the history
Attach pids to targets
  • Loading branch information
thiagoftsm committed Jun 2, 2020
2 parents 8129048 + 8918860 commit fdca546
Show file tree
Hide file tree
Showing 4 changed files with 693 additions and 96 deletions.
6 changes: 3 additions & 3 deletions collectors/ebpf.plugin/ebpf.c
Expand Up @@ -104,9 +104,9 @@ ebpf_module_t ebpf_modules[] = {
};

//Link with apps.plugin
struct target
*apps_groups_default_target = NULL, // the default target
*apps_groups_root_target = NULL; // apps_groups.conf defined
// struct target
// *apps_groups_default_target = NULL, // the default target
// *apps_groups_root_target = NULL; // apps_groups.conf defined

/*****************************************************************
*
Expand Down
16 changes: 7 additions & 9 deletions collectors/ebpf.plugin/ebpf.h
Expand Up @@ -21,13 +21,13 @@
# include <dirent.h>

//From libnetdata.h
# include "../../libnetdata/threads/threads.h"
# include "../../libnetdata/locks/locks.h"
# include "../../libnetdata/avl/avl.h"
# include "../../libnetdata/clocks/clocks.h"
# include "../../libnetdata/config/appconfig.h"
# include "../../libnetdata/ebpf/ebpf.h"
# include "../../daemon/main.h"
# include "libnetdata/threads/threads.h"
# include "libnetdata/locks/locks.h"
# include "libnetdata/avl/avl.h"
# include "libnetdata/clocks/clocks.h"
# include "libnetdata/config/appconfig.h"
# include "libnetdata/ebpf/ebpf.h"
# include "daemon/main.h"

# include "ebpf_apps.h"

Expand Down Expand Up @@ -169,7 +169,5 @@ void ebpf_create_charts_on_apps(char *name, char *axis, char *web, int order, st
//Common variables
extern char *ebpf_user_config_dir;
extern char *ebpf_stock_config_dir;
extern struct target *apps_groups_default_target;
extern struct target *apps_groups_root_target;

#endif

0 comments on commit fdca546

Please sign in to comment.