Skip to content

Commit

Permalink
Merge branch 'netdata:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm authored Apr 3, 2024
2 parents dc09109 + 0b252d3 commit 4936648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/networkviewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ static int ebpf_attach_probes(struct networkviewer_bpf *obj)
if (ret)
return -1;

/*
obj->links.netdata_nv_tcp_v6_connect_kprobe = bpf_program__attach_kprobe(obj->progs.netdata_nv_tcp_v6_connect_kprobe,
false, function_list[NETDATA_FCNT_TCP_V6_CONNECT]);
ret = libbpf_get_error(obj->links.netdata_nv_tcp_v6_connect_kprobe);
if (ret)
return -1;
*/

obj->links.netdata_nv_tcp_retransmit_skb_kprobe = bpf_program__attach_kprobe(obj->progs.netdata_nv_tcp_retransmit_skb_kprobe,
false, function_list[NETDATA_FCNT_TCP_RETRANSMIT]);
Expand Down Expand Up @@ -170,6 +172,8 @@ static inline int ebpf_load_and_attach(struct networkviewer_bpf *obj, int select
} else if (selector == NETDATA_MODE_PROBE) { // kprobe
ebpf_disable_trampoline(obj);
}
bpf_program__set_autoload(obj->progs.netdata_nv_tcp_v6_connect_kprobe, false);
bpf_program__set_autoload(obj->progs.netdata_nv_tcp_v6_connect_fentry, false);

ret = networkviewer_bpf__load(obj);
if (ret) {
Expand Down

0 comments on commit 4936648

Please sign in to comment.