#!/usr/sbin/dtrace -s #pragma D option quiet BEGIN { printFunctions = 1; } pid$1:libX11::entry /printFunctions && probefunc!="XPending"/ { printf("%s called\n",probefunc); } pid$1:libX11:XPending:entry { printFunctions=0; } pid$1:libX11:XPending:return { printFunctions=1; }