#!/usr/sbin/dtrace -qs BEGIN { printf("%-8s FILE OPENED\n", "PID"); } syscall::open*:entry /execname == "java"/ { this->path = copyinstr(arg0); printf("%-8d %s\n", pid, this->path); }