DTrace features the built-in variable caller (from chapter 3 of the Solaris Dynamic Tracing Guide: uintptr_t caller - The program counter location of the current thread just before entering the current probe).
I tried to use caller (trace(caller)) in a script of mine and got the following error message: dtrace: error on enabled probe ID 92 (ID 67898: pid14066:charmm:MPI_Reduce:entry): invalid kernel access in action #26 at DIF offset 0 I'm tracing a user process (via pid provider), so I would expect DTrace to allow access to this information. Could it be, that caller generally requires dtrace_kernel privileges no matter what function is traced? Unfortunately, neither the Solaris Dynamic Tracing Guide nor the DTrace Wikit mentions any privilege requirements for the different DTrace built-in variables. I work on Solaris 10 U5 and my privileges are dtrace_proc and dtrace_user. Thanks for your help, Manfred -- This message posted from opensolaris.org _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org