003 File Manager
Current Path:
/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/profile-n
usr
/
src
/
cddl
/
contrib
/
opensolaris
/
cmd
/
dtrace
/
test
/
tst
/
common
/
profile-n
/
📁
..
📄
err.D_PDESC_ZERO.profile.d
(1.16 KB)
📄
err.D_PDESC_ZEROonens.d
(1.17 KB)
📄
err.D_PDESC_ZEROonensec.d
(1.18 KB)
📄
err.D_PDESC_ZEROoneus.d
(1.19 KB)
📄
err.D_PDESC_ZEROoneusec.d
(1.17 KB)
📄
tst.argtest.d
(1.36 KB)
📄
tst.argtest.d.out
(39 B)
📄
tst.basic.d
(1.15 KB)
📄
tst.basic.d.out
(47 B)
📄
tst.func.ksh
(1.68 KB)
📄
tst.mod.ksh
(1.44 KB)
📄
tst.profilehz.d
(1.15 KB)
📄
tst.profilehz.d.out
(47 B)
📄
tst.profilems.d
(1.16 KB)
📄
tst.profilems.d.out
(47 B)
📄
tst.profilemsec.d
(1.16 KB)
📄
tst.profilemsec.d.out
(49 B)
📄
tst.profilenhz.d
(1.16 KB)
📄
tst.profilenhz.d.out
(47 B)
📄
tst.profilens.d
(1.18 KB)
📄
tst.profilens.d.out
(47 B)
📄
tst.profilensec.d
(1.17 KB)
📄
tst.profilensec.d.out
(49 B)
📄
tst.profiles.d
(1.15 KB)
📄
tst.profiles.d.out
(46 B)
📄
tst.profilesec.d
(1.16 KB)
📄
tst.profilesec.d.out
(48 B)
📄
tst.profileus.d
(1.16 KB)
📄
tst.profileus.d.out
(47 B)
📄
tst.profileusec.d
(1.17 KB)
📄
tst.profileusec.d.out
(49 B)
📄
tst.sym.ksh
(1.41 KB)
📄
tst.ufunc.ksh
(1.5 KB)
📄
tst.ufuncsort.c
(1.36 KB)
📄
tst.ufuncsort.ksh
(1.62 KB)
📄
tst.ufuncsort.ksh.out
(351 B)
📄
tst.umod.ksh
(1.38 KB)
📄
tst.usym.ksh
(1.41 KB)
Editing: tst.func.ksh
# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" script() { $dtrace -qs /dev/stdin <<EOF profile-1234hz /arg0 != 0/ { @[func(arg0)] = count(); } tick-100ms /i++ == 50/ { exit(0); } EOF } spinny() { while true; do /bin/date > /dev/null done } if [ $# != 1 ]; then echo expected one argument: '<'dtrace-path'>' exit 2 fi dtrace=$1 spinny & child=$! # # This is gutsy -- we're assuming that mtx_lock(9) will show up in the # output. This is most likely _not_ to show up in the output if the # platform does not support arbitrary resolution interval timers -- but # the above script was stress-tested down to 100 hertz and still ran # successfully on all platforms, so one is hopeful that this test will pass # even in that case. # script | tee /dev/fd/2 | grep mtx_lock > /dev/null status=$? kill $child exit $status
Upload File
Create Folder