Skip to content

Commit

Permalink
WIP improv
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Mar 7, 2022
1 parent 0fc0a26 commit f80c254
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ static __always_inline int check_sock(struct sock *sk) {
u32 rqueue = rcv_nxt < copied_seq ? 0 : rcv_nxt - copied_seq;
u32 wqueue = write_seq - snd_una;

bpf_printk("rq: %d, wq: %d, cs: %d", rqueue, wqueue, copied_seq);
bpf_printk("rq: %d, wq: %d", rqueue, wqueue);
bpf_printk("rn: %d, cs: %d", rcv_nxt, copied_seq);

u32 rqueue_usage = 1000 * rqueue / rqueue_size;
u32 wqueue_usage = 1000 * wqueue / wqueue_size;
Expand Down

0 comments on commit f80c254

Please sign in to comment.