Whamcloud - gitweb
42ded58b9645b77c05ea187326981a1c63a8bc68
[fs/lustre-release.git] / lustre / obdecho / lproc_echo.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (C) 2002, 2003 Cluster File Systems, Inc.
5  *
6  *   This file is part of the Lustre file system, http://www.lustre.org
7  *   Lustre is a trademark of Cluster File Systems, Inc.
8  *
9  *   You may have signed or agreed to another license before downloading
10  *   this software.  If so, you are bound by the terms and conditions
11  *   of that agreement, and the following does not apply to you.  See the
12  *   LICENSE file included with this distribution for more information.
13  *
14  *   If you did not agree to a different license, then this copy of Lustre
15  *   is open source software; you can redistribute it and/or modify it
16  *   under the terms of version 2 of the GNU General Public License as
17  *   published by the Free Software Foundation.
18  *
19  *   In either case, Lustre is distributed in the hope that it will be
20  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
21  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  *   license text for more details.
23  *
24  */
25 #define DEBUG_SUBSYSTEM S_ECHO
26
27 #include <lprocfs_status.h>
28 #include <obd_class.h>
29
30 #ifdef LPROCFS
31 static struct lprocfs_vars lprocfs_echo_obd_vars[] = {
32         { "uuid",         lprocfs_rd_uuid,        0, 0 },
33         { 0 }
34 };
35
36 static struct lprocfs_vars lprocfs_echo_module_vars[] = {
37         { "num_refs",     lprocfs_rd_numrefs,     0, 0 },
38         { 0 }
39 };
40
41 void lprocfs_echo_init_vars(struct lprocfs_static_vars *lvars)
42 {
43     lvars->module_vars  = lprocfs_echo_module_vars;
44     lvars->obd_vars     = lprocfs_echo_obd_vars;
45 }
46 #endif /* LPROCFS */