Skip to content

Instantly share code, notes, and snippets.

@pfmiles
Created September 5, 2012 11:36
Show Gist options
  • Save pfmiles/3635376 to your computer and use it in GitHub Desktop.
Save pfmiles/3635376 to your computer and use it in GitHub Desktop.
Helper script to find the specified thread id(nid) in a stack dump file
#!/bin/sh
nid=`python -c "print hex($1)"`
grep -i $nid $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment