a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# This file and its contents are supplied under the terms of the
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# You may only use this file in accordance with the terms of version
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# 1.0 of the CDDL.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# Copyright (c) 2013 Joyent, Inc. All rights reserved.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# While it's hard to be completely certain that a type of the name we want
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# doesn't exist, we're going to try to pick a name which is rather
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi# unique. This time we're also going to use the pid$target alias.
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchiif [ $# != 1 ]; then
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchi echo expected one argument: '<'dtrace-path'>'
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchit="season_8_mountain_of_madness_t"
a386cc11a86ecb60f5a48078d22c1500e2ad003eRobert Mustacchirc=`$dtrace -n "BEGIN{ trace(pid`$t)0); }"` -p $pid