Skip to content

Instantly share code, notes, and snippets.

@dch
Created June 8, 2017 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dch/8be296d2da3e12500721da831baedd5c to your computer and use it in GitHub Desktop.
Save dch/8be296d2da3e12500721da831baedd5c to your computer and use it in GitHub Desktop.
# show the first argument passed to ether_input function 
dtrace -n 'fbt::ether_input:entry { print(*(args[0])); }'
# dump first 32 bytes of the dereferenced pointer to the actual data arriving on the wire
dtrace -n 'fbt:kernel:ether_input:entry { tracemem(args[1]->m_data, 32); }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment