Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save strategicpause/59fe685d1bc235e2b32b4faa457d0586 to your computer and use it in GitHub Desktop.
Save strategicpause/59fe685d1bc235e2b32b4faa457d0586 to your computer and use it in GitHub Desktop.
# observe.py
from bcc import BPF
BPF(text='
int kprobe__tcp_conn_request(struct request_sock_ops *rsk_ops,
const struct tcp_request_sock_ops *af_ops,
struct sock *sk,
struct sk_buff *skb) {
bpf_trace_printk("qlen: *sock.sk_ack_backlog");
return 0;
}').trace_print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment