Skip to content

Commit

Permalink
tools/tcpsynbl.py: several small improvements of coding style (ioviso…
Browse files Browse the repository at this point in the history
…r#4415)

* tools/tcpsynbl.py: remove trailing semicolon
* tools/tcpsynbl.py: remove whitespaces in blank line
  • Loading branch information
yangxingwu committed Jan 4, 2023
1 parent ec8a4f7 commit 995e481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tcpsynbl.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
int do_entry(struct pt_regs *ctx) {
struct sock *sk = (struct sock *)PT_REGS_PARM1(ctx);
backlog_key_t key = {};
key.backlog = sk->sk_max_ack_backlog;
key.slot = bpf_log2l(sk->sk_ack_backlog);
Expand Down Expand Up @@ -67,7 +67,7 @@
b.attach_kprobe(event="tcp_v4_syn_recv_sock", fn_name="do_entry")
b.attach_kprobe(event="tcp_v6_syn_recv_sock", fn_name="do_entry")

print("Tracing SYN backlog size. Ctrl-C to end.");
print("Tracing SYN backlog size. Ctrl-C to end.")

try:
sleep(99999999)
Expand Down

0 comments on commit 995e481

Please sign in to comment.