#!/usr/sbin/dtrace -Zs #pragma D option quiet pid$target::kslgetl:entry { printf("%s(0x%X,wait=%d,why=0x%X,whr=%d)\n",probefunc,arg0,arg1,arg2,arg3); } pid$target::kslgetsl:entry, pid$target::ksl_get_shared_latch:entry { printf("%s(0x%X,wait=%d,why=0x%X,whr=%d,rs=%d)\n",probefunc,arg0, arg1,arg2,arg3,arg4); } pid$target::kslfre:entry { printf(" %s(0x%X)\n",probefunc,arg0); }
ksl_args.d
1 Comment »
RSS feed for comments on this post. TrackBack URI
[…] our DTrace latch tracing is to see the latch function arguments. It is easy to write such a script (ksl_args.d). Remember that Oracle acquires exclusive latches using kslgetl(laddr, wait, why, where), and […]
Pingback by Appetizer for DTrace « Latch, mutex and beyond — October 28, 2010 @ 3:33 pm |