report.h revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifndef _REPORT_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define _REPORT_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern "C" {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Prototypes */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteuint64_t hrtime_delta(hrtime_t, hrtime_t);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteuint32_t u32_delta(uint32_t, uint32_t);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteuint64_t u64_delta(uint64_t, uint64_t);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid io_report(kstat_io_t *, kstat_io_t *, sdbcstat_t *);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint io_value_check(kstat_io_t *, kstat_io_t *);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid cd_report(sdbcstat_t *);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid header();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* BEGIN CSTYLED */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* END CSTYLED */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define VOL_HDR_FMT "%-16s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define VOL_HDR_SIZE 17
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SET_HDR_TXT "name"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define STAT_HDR_FMT "%3s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define STAT_HDR_SIZE 3
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define STAT_HDR_TXT "s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TYPE_HDR_TXT "t"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define ROLE_HDR_FMT "%5s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define ROLE_HDR_SIZE 5
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define ROLE_INF_FMT " %4s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define ROLE_HDR_TXT "role"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define PCT_HDR_FMT "%7s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define PCT_HDR_SIZE 7
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define PCT_INF_FMT " %6.2f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SN_HDR_TXT "sn"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define PCT_HDR_TXT "pct"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define KPS_HDR_FMT "%7s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define KPS_HDR_SIZE 7
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define KPS_INF_FMT " %6.0f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define KPS_HDR_TXT "kps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define RKPS_HDR_TXT "rkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define WKPS_HDR_TXT "wkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define CKPS_HDR_TXT "ckps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DKPS_HDR_TXT "dkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define CRKPS_HDR_TXT "crkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define CWKPS_HDR_TXT "cwkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DRKPS_HDR_TXT "drkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DWKPS_HDR_TXT "dwkps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TPS_HDR_FMT "%6s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TPS_HDR_SIZE 6
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TPS_INF_FMT " %5u"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TPS_HDR_TXT "tps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define RTPS_HDR_TXT "rtps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define WTPS_HDR_TXT "wtps"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SVT_HDR_FMT "%5s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SVT_HDR_SIZE 5
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SVT_INF_FMT " %4.0f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SVT_HDR_TXT "svt"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define HIT_HDR_FMT "%6s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define HIT_HDR_SIZE 6
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define HIT_INF_FMT " %5.1f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define HIT_PAD_FMT " %5s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define HIT_HDR_TXT "hit"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define RHIT_HDR_TXT "rhit"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define WHIT_HDR_TXT "whit"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define QUEUE_HDR_TXT "q"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define QUEUE_ITEMS_TXT "qi"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define QUEUE_KBYTES_TXT "qk"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define QUEUE_ITEMS_HW_TXT "qhwi"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define QUEUE_KBYTES_HW_TXT "qhwk"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define NO_INFO "-"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_C16 "%-16s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_C2 " %2s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_C4 " %4s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_C5 " %5s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_C6 " %6s"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_I32 " %6u"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_I64 " %6llu"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_F62 " %6.2f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_F60 " %6.0f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_F50 " %5.0f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DATA_F40 " %4.0f"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _REPORT_H */