#!/usr/sbin/dtrace -s #pragma D option quiet #pragma D option defaultargs #pragma D option destructive /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing * permissions and limitations under the License. * * When distributing Covered Code, include this CDDL * HEADER in each file and include the License file at * usr/src/OPENSOLARIS.LICENSE. If applicable, * add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your * own identifying information: Portions Copyright [yyyy] * [name of copyright owner] * * CDDL HEADER END * * Copyright © 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ /* * Usage: * vm.d -p JAVA_PID */ :::BEGIN / $1 == "" / { system("rm vm.paused.%d", $target); } jrts$target:::safepoint-begin { printf("%d : Safepoint begins\n",timestamp); } jrts$target:::safepoint-end { printf("%d : Safepoint ends\n",timestamp); } jrts$target:::vm-operation-request { printf("%d : VM Operation called \"%s\" requested with mode %s and it is %s\n", timestamp, copyinstr(arg0,arg1),mode_name[arg2],arg3?"urgent":"non-urgent"); } jrts$target:::vm-operation-begin { printf("%d : VM Operation called \"%s\" starts with mode %s and it is %s\n", timestamp, copyinstr(arg0,arg1),mode_name[arg2],arg3?"urgent":"non-urgent"); } jrts$target:::vm-operation-end { printf("%d : VM Operation called \"%s\" ends with mode %s and it is %s\n", timestamp, copyinstr(arg0,arg1),mode_name[arg2],arg3?"urgent":"non-urgent"); } jrts$target:::vm-creation-begin { printf("%d : VM creation begins\n",timestamp); } jrts$target:::vm-creation-end { printf("%d : VM creation completed\n",timestamp); }