1N/A * Written using DTrace (Solaris 10 3/05). 1N/A * This program identifies the vnode type of read/write activity - whether 1N/A * that is for regular files, sockets, character special devices, etc. 1N/A * $Id: rwbytype.d 3 2007-08-01 10:50:08Z brendan $ 1N/A * USAGE: rwbytype.d # hit Ctrl-C to end sample 1N/A * PID number of rwbytype 1N/A * VTYPE vnode type (describes I/O type) 1N/A * BYTES bytes transferred 1N/A * COPYRIGHT: Copyright (c) 2005, 2006 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * 18-Oct-2005 Brendan Gregg Created this. 1N/A * 20-Apr-2006 " " Last update. 1N/A /* the order has been picked for performance reasons */ 1N/A T ==
11 ?
"bad" :
"non";
1N/A/* this is delibrately redundant code for performance reasons */ 1N/A "PID",
"CMD",
"VTYPE",
"DIR",
"BYTES");