Skip to content

Commit

Permalink
kernel_5_2: Fix issue with kernels between 5.0 and 5.2; Improve codes (
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm committed Feb 22, 2024
1 parent 4032b13 commit 7804df3
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 80 deletions.
2 changes: 1 addition & 1 deletion src/netdata_core_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static inline void ebpf_core_fill_ctrl(struct bpf_map *map, enum netdata_apps_le
int fd = bpf_map__fd(map);

unsigned int i, end = bpf_map__max_entries(map);
uint64_t values[NETDATA_CONTROLLER_END] = { 1, map_level};
uint64_t values[NETDATA_CONTROLLER_END] = { 1, map_level, 0, 0, 0, 0};
for (i = 0; i < end; i++) {
int ret = bpf_map_update_elem(fd, &i, &values[i], 0);
if (ret)
Expand Down
Loading

0 comments on commit 7804df3

Please sign in to comment.