17d6b0e1markj#! /usr/bin/ksh
27d6b0e1markj#
37d6b0e1markj#
47d6b0e1markj# This file and its contents are supplied under the terms of the
57d6b0e1markj# Common Development and Distribution License ("CDDL"), version 1.0.
67d6b0e1markj# You may only use this file in accordance with the terms of version
77d6b0e1markj# 1.0 of the CDDL.
87d6b0e1markj#
97d6b0e1markj# A full copy of the text of the CDDL should have accompanied this
107d6b0e1markj# source.  A copy of the CDDL is also available via the Internet at
117d6b0e1markj# http://www.illumos.org/license/CDDL.
127d6b0e1markj#
137d6b0e1markj
147d6b0e1markj#
157d6b0e1markj# Copyright (c) 2013 Joyent, Inc. All rights reserved.
167d6b0e1markj#
177d6b0e1markj
187d6b0e1markj#
197d6b0e1markj# While it's hard to be completely certain that a type of the name we want
207d6b0e1markj# doesn't exist, we're going to try to pick a name which is rather
217d6b0e1markj# unique. This time we're also going to use the pid$target alias.
227d6b0e1markj#
237d6b0e1markj
247d6b0e1markjif [ $# != 1 ]; then
257d6b0e1markj        echo expected one argument: '<'dtrace-path'>'
267d6b0e1markj        exit 2
277d6b0e1markjfi
287d6b0e1markj
297d6b0e1markjdtrace=$1
307d6b0e1markjt="season_8_mountain_of_madness_t"
317d6b0e1markjpid=$$
327d6b0e1markj
33d46a293markj$dtrace -n "BEGIN{ trace(pid$pid\`$t)0); }" -p $pid
34d46a293markjrc=$?
357d6b0e1markj
367d6b0e1markjexit $rc
37