#!/bin/sh kldload opensolaris kldload cyclic kldload dtrace kldload dtmalloc kldload dtnfscl kldload dtnfsclient kldload lockstat kldload sdt kldload systrace kldload profile kldload dtraceall kldload dtrace_test # dtrace should have kernel binary in current diretory if [ ! -f kernel ]; then cd /boot/kernel fi if [ ! -f kernel ]; then echo "Warning kernel binary not found" fi /usr/sbin/dtrace -s /dev/stdin < pid = %d, stack depthes = (%d, %d)", pid, stackdepth, ustackdepth); stack(); ustack(); exit(0); } EOF