source: gpfs_3.1_ker2.6.20/lpp/mmfs/src/ibm-linux/cxiVFSStats-plat.h @ 148

Last change on this file since 148 was 16, checked in by rock, 17 years ago
File size: 3.1 KB
RevLine 
[16]1/***************************************************************************
2 *
3 * Copyright (C) 2001 International Business Machines
4 * All rights reserved.
5 *
6 * This file is part of the GPFS mmfslinux kernel module.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 *  1. Redistributions of source code must retain the above copyright notice,
13 *     this list of conditions and the following disclaimer.
14 *  2. Redistributions in binary form must reproduce the above copyright
15 *     notice, this list of conditions and the following disclaimer in the
16 *     documentation and/or other materials provided with the distribution.
17 *  3. The name of the author may not be used to endorse or promote products
18 *     derived from this software without specific prior written
19 *     permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *************************************************************************** */
33/* @(#)03       1.9  src/avs/fs/mmfs/ts/kernext/ibm-linux/cxiVFSStats-plat.h, mmfs, avs_rgpfs24, rgpfs240610b 10/17/02 21:21:48 */
34
35#ifndef _h_cxiVFSStats_plat
36#define _h_cxiVFSStats_plat
37
38#ifndef _h_cxiVFSStats
39#error Platform header (XXX-plat.h) should not be included directly
40#endif
41
42/*
43 * Gather statistics for VFS operations:
44 *
45 * Usage:
46 *  - Placing an instance of the VFS_STAT_START macro at the begining
47 *    of a function and VFS_STAT_STOP macro at the end of a function
48 *    will keep a count of how many times the function is called as well
49 *    as the total amount of time spent in the function (elapsed time
50 *    between entering and leaving the function).
51 *  - Placing an instance of the VFS_INC macro inside a function will
52 *    update a call count, but not keep any time statistics.
53 *  - Use the command "mmfsadm vfsstats ..." to control and display
54 *    vfs statistics:
55 *       mmfsadm vfsstats enable    - turn on statistics gathering
56 *       mmfsadm vfsstats disable   - turn off statistics gathering
57 *       mmfsadm vfsstats reset     - reset all statistics counters
58 *       mmfsadm vfsstats show      - display statistics
59 *
60 */
61
62#ifndef _h_cxiVFSStats
63#error Platform header (XXX-plat.h) should not be included directly
64#endif
65
66#ifdef KCSTRACE
67#ifdef __cplusplus
68extern "C" {
69#endif
70void cxiKcsTraceInfo(int index, int value);
71#ifdef __cplusplus
72}
73#endif
74#endif
75
76#endif // _h_cxiVFSStats_plat
Note: See TracBrowser for help on using the repository browser.