1fcf3ce44SJohn Forte /* 2fcf3ce44SJohn Forte * CDDL HEADER START 3fcf3ce44SJohn Forte * 4fcf3ce44SJohn Forte * The contents of this file are subject to the terms of the 5fcf3ce44SJohn Forte * Common Development and Distribution License (the "License"). 6fcf3ce44SJohn Forte * You may not use this file except in compliance with the License. 7fcf3ce44SJohn Forte * 8fcf3ce44SJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9fcf3ce44SJohn Forte * or http://www.opensolaris.org/os/licensing. 10fcf3ce44SJohn Forte * See the License for the specific language governing permissions 11fcf3ce44SJohn Forte * and limitations under the License. 12fcf3ce44SJohn Forte * 13fcf3ce44SJohn Forte * When distributing Covered Code, include this CDDL HEADER in each 14fcf3ce44SJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15fcf3ce44SJohn Forte * If applicable, add the following below this CDDL HEADER, with the 16fcf3ce44SJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying 17fcf3ce44SJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner] 18fcf3ce44SJohn Forte * 19fcf3ce44SJohn Forte * CDDL HEADER END 20fcf3ce44SJohn Forte */ 21fcf3ce44SJohn Forte /* 22*e31df310SThomas Atkins * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23fcf3ce44SJohn Forte * Use is subject to license terms. 24fcf3ce44SJohn Forte */ 25fcf3ce44SJohn Forte 26fcf3ce44SJohn Forte #ifndef _REPORT_H 27fcf3ce44SJohn Forte #define _REPORT_H 28fcf3ce44SJohn Forte 29fcf3ce44SJohn Forte #ifdef __cplusplus 30fcf3ce44SJohn Forte extern "C" { 31fcf3ce44SJohn Forte #endif 32fcf3ce44SJohn Forte 33fcf3ce44SJohn Forte /* Prototypes */ 34fcf3ce44SJohn Forte uint64_t hrtime_delta(hrtime_t, hrtime_t); 35fcf3ce44SJohn Forte uint32_t u32_delta(uint32_t, uint32_t); 36fcf3ce44SJohn Forte uint64_t u64_delta(uint64_t, uint64_t); 37*e31df310SThomas Atkins void io_report(kstat_t *, kstat_t *, sdbcstat_t *); 38fcf3ce44SJohn Forte int io_value_check(kstat_io_t *, kstat_io_t *); 39fcf3ce44SJohn Forte void cd_report(sdbcstat_t *); 40fcf3ce44SJohn Forte void header(); 41fcf3ce44SJohn Forte 42fcf3ce44SJohn Forte /* BEGIN CSTYLED */ 43fcf3ce44SJohn Forte /* END CSTYLED */ 44fcf3ce44SJohn Forte 45fcf3ce44SJohn Forte #define VOL_HDR_FMT "%-16s" 46fcf3ce44SJohn Forte #define VOL_HDR_SIZE 17 47fcf3ce44SJohn Forte #define SET_HDR_TXT "name" 48fcf3ce44SJohn Forte 49fcf3ce44SJohn Forte #define STAT_HDR_FMT "%3s" 50fcf3ce44SJohn Forte #define STAT_HDR_SIZE 3 51fcf3ce44SJohn Forte #define STAT_HDR_TXT "s" 52fcf3ce44SJohn Forte #define TYPE_HDR_TXT "t" 53fcf3ce44SJohn Forte 54fcf3ce44SJohn Forte #define ROLE_HDR_FMT "%5s" 55fcf3ce44SJohn Forte #define ROLE_HDR_SIZE 5 56fcf3ce44SJohn Forte #define ROLE_INF_FMT " %4s" 57fcf3ce44SJohn Forte #define ROLE_HDR_TXT "role" 58fcf3ce44SJohn Forte 59fcf3ce44SJohn Forte #define PCT_HDR_FMT "%7s" 60fcf3ce44SJohn Forte #define PCT_HDR_SIZE 7 61fcf3ce44SJohn Forte #define PCT_INF_FMT " %6.2f" 62fcf3ce44SJohn Forte #define SN_HDR_TXT "sn" 63fcf3ce44SJohn Forte #define PCT_HDR_TXT "pct" 64fcf3ce44SJohn Forte 65fcf3ce44SJohn Forte #define KPS_HDR_FMT "%7s" 66fcf3ce44SJohn Forte #define KPS_HDR_SIZE 7 67fcf3ce44SJohn Forte #define KPS_INF_FMT " %6.0f" 68fcf3ce44SJohn Forte #define KPS_HDR_TXT "kps" 69fcf3ce44SJohn Forte #define RKPS_HDR_TXT "rkps" 70fcf3ce44SJohn Forte #define WKPS_HDR_TXT "wkps" 71fcf3ce44SJohn Forte #define CKPS_HDR_TXT "ckps" 72fcf3ce44SJohn Forte #define DKPS_HDR_TXT "dkps" 73fcf3ce44SJohn Forte #define CRKPS_HDR_TXT "crkps" 74fcf3ce44SJohn Forte #define CWKPS_HDR_TXT "cwkps" 75fcf3ce44SJohn Forte #define DRKPS_HDR_TXT "drkps" 76fcf3ce44SJohn Forte #define DWKPS_HDR_TXT "dwkps" 77fcf3ce44SJohn Forte 78fcf3ce44SJohn Forte #define TPS_HDR_FMT "%6s" 79fcf3ce44SJohn Forte #define TPS_HDR_SIZE 6 80fcf3ce44SJohn Forte #define TPS_INF_FMT " %5u" 81fcf3ce44SJohn Forte #define TPS_HDR_TXT "tps" 82fcf3ce44SJohn Forte #define RTPS_HDR_TXT "rtps" 83fcf3ce44SJohn Forte #define WTPS_HDR_TXT "wtps" 84fcf3ce44SJohn Forte 85fcf3ce44SJohn Forte #define SVT_HDR_FMT "%5s" 86fcf3ce44SJohn Forte #define SVT_HDR_SIZE 5 87fcf3ce44SJohn Forte #define SVT_INF_FMT " %4.0f" 88fcf3ce44SJohn Forte #define SVT_HDR_TXT "svt" 89fcf3ce44SJohn Forte 90fcf3ce44SJohn Forte #define HIT_HDR_FMT "%6s" 91fcf3ce44SJohn Forte #define HIT_HDR_SIZE 6 92fcf3ce44SJohn Forte #define HIT_INF_FMT " %5.1f" 93fcf3ce44SJohn Forte #define HIT_PAD_FMT " %5s" 94fcf3ce44SJohn Forte #define HIT_HDR_TXT "hit" 95fcf3ce44SJohn Forte #define RHIT_HDR_TXT "rhit" 96fcf3ce44SJohn Forte #define WHIT_HDR_TXT "whit" 97fcf3ce44SJohn Forte 98fcf3ce44SJohn Forte #define QUEUE_HDR_TXT "q" 99fcf3ce44SJohn Forte #define QUEUE_ITEMS_TXT "qi" 100fcf3ce44SJohn Forte #define QUEUE_KBYTES_TXT "qk" 101fcf3ce44SJohn Forte #define QUEUE_ITEMS_HW_TXT "qhwi" 102fcf3ce44SJohn Forte #define QUEUE_KBYTES_HW_TXT "qhwk" 103fcf3ce44SJohn Forte 104fcf3ce44SJohn Forte #define NO_INFO "-" 105fcf3ce44SJohn Forte 106fcf3ce44SJohn Forte #define DATA_C16 "%-16s" 107fcf3ce44SJohn Forte #define DATA_C2 " %2s" 108fcf3ce44SJohn Forte #define DATA_C4 " %4s" 109fcf3ce44SJohn Forte #define DATA_C5 " %5s" 110fcf3ce44SJohn Forte #define DATA_C6 " %6s" 111fcf3ce44SJohn Forte #define DATA_I32 " %6u" 112fcf3ce44SJohn Forte #define DATA_I64 " %6llu" 113fcf3ce44SJohn Forte #define DATA_F62 " %6.2f" 114fcf3ce44SJohn Forte #define DATA_F60 " %6.0f" 115fcf3ce44SJohn Forte #define DATA_F50 " %5.0f" 116fcf3ce44SJohn Forte #define DATA_F40 " %4.0f" 117fcf3ce44SJohn Forte 118fcf3ce44SJohn Forte #ifdef __cplusplus 119fcf3ce44SJohn Forte } 120fcf3ce44SJohn Forte #endif 121fcf3ce44SJohn Forte 122fcf3ce44SJohn Forte #endif /* _REPORT_H */ 123