Skip to content

Instantly share code, notes, and snippets.

@LuxXx
Created August 8, 2025 19:24
Show Gist options
  • Save LuxXx/109a389be524aea2ae1ff2fcdd9fb6ef to your computer and use it in GitHub Desktop.
Save LuxXx/109a389be524aea2ae1ff2fcdd9fb6ef to your computer and use it in GitHub Desktop.
sudo bpftrace -e 'tracepoint:syscalls:sys_enter_sendto /comm == "yt-dlp"/ { @sent_bytes = sum(args->len); } tracepoint:syscalls:sys_exit_recvfrom /comm == "yt-dlp"/ { if (args->ret > 0) { @received_bytes = sum(args->ret); } }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment