Skip to content

Instantly share code, notes, and snippets.

View nevermosby's full-sized avatar
🎯
Focusing

Wen-Quan Li nevermosby

🎯
Focusing
View GitHub Profile
@psanford
psanford / bpftrace-std-in-out-err.sh
Created September 20, 2019 19:01
bpftrace wrapper to trace reads from stdin and writes to stdout and stderr for a given process name
#!/bin/bash
COMM=$1
if [ -z "$COMM"] ; then
echo "usage: $0 <name_of_process>" >&2
exit 1
fi
script=''