1*11237SJonathan.Haslam@Sun.COM# 2*11237SJonathan.Haslam@Sun.COM# CDDL HEADER START 3*11237SJonathan.Haslam@Sun.COM# 4*11237SJonathan.Haslam@Sun.COM# The contents of this file are subject to the terms of the 5*11237SJonathan.Haslam@Sun.COM# Common Development and Distribution License (the "License"). 6*11237SJonathan.Haslam@Sun.COM# You may not use this file except in compliance with the License. 7*11237SJonathan.Haslam@Sun.COM# 8*11237SJonathan.Haslam@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*11237SJonathan.Haslam@Sun.COM# or http://www.opensolaris.org/os/licensing. 10*11237SJonathan.Haslam@Sun.COM# See the License for the specific language governing permissions 11*11237SJonathan.Haslam@Sun.COM# and limitations under the License. 12*11237SJonathan.Haslam@Sun.COM# 13*11237SJonathan.Haslam@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 14*11237SJonathan.Haslam@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*11237SJonathan.Haslam@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 16*11237SJonathan.Haslam@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 17*11237SJonathan.Haslam@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 18*11237SJonathan.Haslam@Sun.COM# 19*11237SJonathan.Haslam@Sun.COM# CDDL HEADER END 20*11237SJonathan.Haslam@Sun.COM# 21*11237SJonathan.Haslam@Sun.COM 22*11237SJonathan.Haslam@Sun.COM# 23*11237SJonathan.Haslam@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*11237SJonathan.Haslam@Sun.COM# Use is subject to license terms. 25*11237SJonathan.Haslam@Sun.COM# 26*11237SJonathan.Haslam@Sun.COM 27*11237SJonathan.Haslam@Sun.COMif [ $# != 1 ]; then 28*11237SJonathan.Haslam@Sun.COM echo expected one argument: '<'dtrace-path'>' 29*11237SJonathan.Haslam@Sun.COM exit 2 30*11237SJonathan.Haslam@Sun.COMfi 31*11237SJonathan.Haslam@Sun.COM 32*11237SJonathan.Haslam@Sun.COMdtrace=$1 33*11237SJonathan.Haslam@Sun.COM 34*11237SJonathan.Haslam@Sun.COM$dtrace -ln 'syscall::*$1:entry' read | awk '{print $(NF-1),$NF}' | sort 35*11237SJonathan.Haslam@Sun.COM$dtrace -ln 'syscall::$1*:entry' read | awk '{print $(NF-1),$NF}' | sort 36*11237SJonathan.Haslam@Sun.COM$dtrace -ln 'syscall::re$1*:entry' ad | awk '{print $(NF-1),$NF}' | sort 37*11237SJonathan.Haslam@Sun.COM$dtrace -ln 'syscall::$1l*:entry' read | awk '{print $(NF-1),$NF}' | sort 38*11237SJonathan.Haslam@Sun.COM$dtrace -ln 'syscall::p$1[0-9][0-9]:entry' read | awk '{print $(NF-1),$NF}' | \ 39*11237SJonathan.Haslam@Sun.COM sort 40*11237SJonathan.Haslam@Sun.COM 41*11237SJonathan.Haslam@Sun.COMexit $status 42