/*************************************************************************** * * Copyright (C) 2001 International Business Machines * All rights reserved. * * This file is part of the GPFS mmfslinux kernel module. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written * permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *************************************************************************** */ /* @(#)03 1.9 src/avs/fs/mmfs/ts/kernext/ibm-linux/cxiVFSStats-plat.h, mmfs, avs_rgpfs24, rgpfs240610b 10/17/02 21:21:48 */ #ifndef _h_cxiVFSStats_plat #define _h_cxiVFSStats_plat #ifndef _h_cxiVFSStats #error Platform header (XXX-plat.h) should not be included directly #endif /* * Gather statistics for VFS operations: * * Usage: * - Placing an instance of the VFS_STAT_START macro at the begining * of a function and VFS_STAT_STOP macro at the end of a function * will keep a count of how many times the function is called as well * as the total amount of time spent in the function (elapsed time * between entering and leaving the function). * - Placing an instance of the VFS_INC macro inside a function will * update a call count, but not keep any time statistics. * - Use the command "mmfsadm vfsstats ..." to control and display * vfs statistics: * mmfsadm vfsstats enable - turn on statistics gathering * mmfsadm vfsstats disable - turn off statistics gathering * mmfsadm vfsstats reset - reset all statistics counters * mmfsadm vfsstats show - display statistics * */ #ifndef _h_cxiVFSStats #error Platform header (XXX-plat.h) should not be included directly #endif #ifdef KCSTRACE #ifdef __cplusplus extern "C" { #endif void cxiKcsTraceInfo(int index, int value); #ifdef __cplusplus } #endif #endif #endif // _h_cxiVFSStats_plat