17836SJohn.Forte@Sun.COM /* 27836SJohn.Forte@Sun.COM * CDDL HEADER START 37836SJohn.Forte@Sun.COM * 47836SJohn.Forte@Sun.COM * The contents of this file are subject to the terms of the 57836SJohn.Forte@Sun.COM * Common Development and Distribution License (the "License"). 67836SJohn.Forte@Sun.COM * You may not use this file except in compliance with the License. 77836SJohn.Forte@Sun.COM * 87836SJohn.Forte@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97836SJohn.Forte@Sun.COM * or http://www.opensolaris.org/os/licensing. 107836SJohn.Forte@Sun.COM * See the License for the specific language governing permissions 117836SJohn.Forte@Sun.COM * and limitations under the License. 127836SJohn.Forte@Sun.COM * 137836SJohn.Forte@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 147836SJohn.Forte@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157836SJohn.Forte@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 167836SJohn.Forte@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 177836SJohn.Forte@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 187836SJohn.Forte@Sun.COM * 197836SJohn.Forte@Sun.COM * CDDL HEADER END 207836SJohn.Forte@Sun.COM */ 217836SJohn.Forte@Sun.COM /* 22*10714SThomas.Atkins@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237836SJohn.Forte@Sun.COM * Use is subject to license terms. 247836SJohn.Forte@Sun.COM */ 257836SJohn.Forte@Sun.COM 267836SJohn.Forte@Sun.COM #ifndef _REPORT_H 277836SJohn.Forte@Sun.COM #define _REPORT_H 287836SJohn.Forte@Sun.COM 297836SJohn.Forte@Sun.COM #ifdef __cplusplus 307836SJohn.Forte@Sun.COM extern "C" { 317836SJohn.Forte@Sun.COM #endif 327836SJohn.Forte@Sun.COM 337836SJohn.Forte@Sun.COM /* Prototypes */ 347836SJohn.Forte@Sun.COM uint64_t hrtime_delta(hrtime_t, hrtime_t); 357836SJohn.Forte@Sun.COM uint32_t u32_delta(uint32_t, uint32_t); 367836SJohn.Forte@Sun.COM uint64_t u64_delta(uint64_t, uint64_t); 37*10714SThomas.Atkins@Sun.COM void io_report(kstat_t *, kstat_t *, sdbcstat_t *); 387836SJohn.Forte@Sun.COM int io_value_check(kstat_io_t *, kstat_io_t *); 397836SJohn.Forte@Sun.COM void cd_report(sdbcstat_t *); 407836SJohn.Forte@Sun.COM void header(); 417836SJohn.Forte@Sun.COM 427836SJohn.Forte@Sun.COM /* BEGIN CSTYLED */ 437836SJohn.Forte@Sun.COM /* END CSTYLED */ 447836SJohn.Forte@Sun.COM 457836SJohn.Forte@Sun.COM #define VOL_HDR_FMT "%-16s" 467836SJohn.Forte@Sun.COM #define VOL_HDR_SIZE 17 477836SJohn.Forte@Sun.COM #define SET_HDR_TXT "name" 487836SJohn.Forte@Sun.COM 497836SJohn.Forte@Sun.COM #define STAT_HDR_FMT "%3s" 507836SJohn.Forte@Sun.COM #define STAT_HDR_SIZE 3 517836SJohn.Forte@Sun.COM #define STAT_HDR_TXT "s" 527836SJohn.Forte@Sun.COM #define TYPE_HDR_TXT "t" 537836SJohn.Forte@Sun.COM 547836SJohn.Forte@Sun.COM #define ROLE_HDR_FMT "%5s" 557836SJohn.Forte@Sun.COM #define ROLE_HDR_SIZE 5 567836SJohn.Forte@Sun.COM #define ROLE_INF_FMT " %4s" 577836SJohn.Forte@Sun.COM #define ROLE_HDR_TXT "role" 587836SJohn.Forte@Sun.COM 597836SJohn.Forte@Sun.COM #define PCT_HDR_FMT "%7s" 607836SJohn.Forte@Sun.COM #define PCT_HDR_SIZE 7 617836SJohn.Forte@Sun.COM #define PCT_INF_FMT " %6.2f" 627836SJohn.Forte@Sun.COM #define SN_HDR_TXT "sn" 637836SJohn.Forte@Sun.COM #define PCT_HDR_TXT "pct" 647836SJohn.Forte@Sun.COM 657836SJohn.Forte@Sun.COM #define KPS_HDR_FMT "%7s" 667836SJohn.Forte@Sun.COM #define KPS_HDR_SIZE 7 677836SJohn.Forte@Sun.COM #define KPS_INF_FMT " %6.0f" 687836SJohn.Forte@Sun.COM #define KPS_HDR_TXT "kps" 697836SJohn.Forte@Sun.COM #define RKPS_HDR_TXT "rkps" 707836SJohn.Forte@Sun.COM #define WKPS_HDR_TXT "wkps" 717836SJohn.Forte@Sun.COM #define CKPS_HDR_TXT "ckps" 727836SJohn.Forte@Sun.COM #define DKPS_HDR_TXT "dkps" 737836SJohn.Forte@Sun.COM #define CRKPS_HDR_TXT "crkps" 747836SJohn.Forte@Sun.COM #define CWKPS_HDR_TXT "cwkps" 757836SJohn.Forte@Sun.COM #define DRKPS_HDR_TXT "drkps" 767836SJohn.Forte@Sun.COM #define DWKPS_HDR_TXT "dwkps" 777836SJohn.Forte@Sun.COM 787836SJohn.Forte@Sun.COM #define TPS_HDR_FMT "%6s" 797836SJohn.Forte@Sun.COM #define TPS_HDR_SIZE 6 807836SJohn.Forte@Sun.COM #define TPS_INF_FMT " %5u" 817836SJohn.Forte@Sun.COM #define TPS_HDR_TXT "tps" 827836SJohn.Forte@Sun.COM #define RTPS_HDR_TXT "rtps" 837836SJohn.Forte@Sun.COM #define WTPS_HDR_TXT "wtps" 847836SJohn.Forte@Sun.COM 857836SJohn.Forte@Sun.COM #define SVT_HDR_FMT "%5s" 867836SJohn.Forte@Sun.COM #define SVT_HDR_SIZE 5 877836SJohn.Forte@Sun.COM #define SVT_INF_FMT " %4.0f" 887836SJohn.Forte@Sun.COM #define SVT_HDR_TXT "svt" 897836SJohn.Forte@Sun.COM 907836SJohn.Forte@Sun.COM #define HIT_HDR_FMT "%6s" 917836SJohn.Forte@Sun.COM #define HIT_HDR_SIZE 6 927836SJohn.Forte@Sun.COM #define HIT_INF_FMT " %5.1f" 937836SJohn.Forte@Sun.COM #define HIT_PAD_FMT " %5s" 947836SJohn.Forte@Sun.COM #define HIT_HDR_TXT "hit" 957836SJohn.Forte@Sun.COM #define RHIT_HDR_TXT "rhit" 967836SJohn.Forte@Sun.COM #define WHIT_HDR_TXT "whit" 977836SJohn.Forte@Sun.COM 987836SJohn.Forte@Sun.COM #define QUEUE_HDR_TXT "q" 997836SJohn.Forte@Sun.COM #define QUEUE_ITEMS_TXT "qi" 1007836SJohn.Forte@Sun.COM #define QUEUE_KBYTES_TXT "qk" 1017836SJohn.Forte@Sun.COM #define QUEUE_ITEMS_HW_TXT "qhwi" 1027836SJohn.Forte@Sun.COM #define QUEUE_KBYTES_HW_TXT "qhwk" 1037836SJohn.Forte@Sun.COM 1047836SJohn.Forte@Sun.COM #define NO_INFO "-" 1057836SJohn.Forte@Sun.COM 1067836SJohn.Forte@Sun.COM #define DATA_C16 "%-16s" 1077836SJohn.Forte@Sun.COM #define DATA_C2 " %2s" 1087836SJohn.Forte@Sun.COM #define DATA_C4 " %4s" 1097836SJohn.Forte@Sun.COM #define DATA_C5 " %5s" 1107836SJohn.Forte@Sun.COM #define DATA_C6 " %6s" 1117836SJohn.Forte@Sun.COM #define DATA_I32 " %6u" 1127836SJohn.Forte@Sun.COM #define DATA_I64 " %6llu" 1137836SJohn.Forte@Sun.COM #define DATA_F62 " %6.2f" 1147836SJohn.Forte@Sun.COM #define DATA_F60 " %6.0f" 1157836SJohn.Forte@Sun.COM #define DATA_F50 " %5.0f" 1167836SJohn.Forte@Sun.COM #define DATA_F40 " %4.0f" 1177836SJohn.Forte@Sun.COM 1187836SJohn.Forte@Sun.COM #ifdef __cplusplus 1197836SJohn.Forte@Sun.COM } 1207836SJohn.Forte@Sun.COM #endif 1217836SJohn.Forte@Sun.COM 1227836SJohn.Forte@Sun.COM #endif /* _REPORT_H */ 123