From: Marijn van Vliet Date: Wed, 27 Apr 2011 11:59:50 +0000 (+0200) Subject: Added a useful dtrace script for listing all GLK calls made X-Git-Tag: v0.9~90 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=806f4805403e8a40cb30e86b1787b391946c9c94;p=projects%2Fchimara%2Fchimara.git Added a useful dtrace script for listing all GLK calls made --- diff --git a/tests/dtrace/list_glk_calls.d b/tests/dtrace/list_glk_calls.d new file mode 100644 index 0000000..a25378a --- /dev/null +++ b/tests/dtrace/list_glk_calls.d @@ -0,0 +1,5 @@ +pid$target:libchimara:glk*:entry +/probefunc != "glk_tick" && stackdepth == 0/ +{ + printf("%d %s(0x%X, 0x%X, 0x%X)\t\t\n",stackdepth,probefunc,arg0,arg1,arg2); +} diff --git a/tests/dtrace/readme.txt b/tests/dtrace/readme.txt new file mode 100644 index 0000000..ad5b4cf --- /dev/null +++ b/tests/dtrace/readme.txt @@ -0,0 +1,6 @@ +This directory contains some useful dtrace scripts to help with debugging. + +Example usage: +sudo dtrace -s -c + +list_glk_calls.d Lists all calls make to the chimara GLK library and their arguments.