Skip to content

Commit

Permalink
also increment in fentry
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlu committed Aug 22, 2024
1 parent fbbb07e commit ebe8f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/network/ebpf/c/co-re/tracer-fentry.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int BPF_PROG(udp_sendpage_exit, struct sock *sk, struct page *page, int offset,
return 0;
}

return handle_message(&t, sent, 0, CONN_DIRECTION_UNKNOWN, 0, 0, PACKET_COUNT_NONE, sk);
return handle_message(&t, sent, 0, CONN_DIRECTION_UNKNOWN, 1, 0, PACKET_COUNT_INCREMENT, sk);
}

SEC("fexit/tcp_recvmsg")
Expand Down Expand Up @@ -262,7 +262,7 @@ static __always_inline int handle_udp_send(struct sock *sk, int sent) {

if (sent > 0) {
log_debug("udp_sendmsg: sent: %d", sent);
handle_message(t, sent, 0, CONN_DIRECTION_UNKNOWN, 1, 0, PACKET_COUNT_NONE, sk);
handle_message(t, sent, 0, CONN_DIRECTION_UNKNOWN, 1, 0, PACKET_COUNT_INCREMENT, sk);
}

bpf_map_delete_elem(&udp_send_skb_args, &pid_tgid);
Expand Down

0 comments on commit ebe8f63

Please sign in to comment.