source: gpfs_3.1_ker2.6.20/lpp/mmfs/src/misc/DirIds.h @ 67

Last change on this file since 67 was 16, checked in by rock, 17 years ago
File size: 9.8 KB
Line 
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/* @(#)69       1.61  src/avs/fs/mmfs/ts/DirIds.h, mmfs, avs_rgpfs24, rgpfs24s001a 4/3/06 18:25:52 */
34#ifndef _h_DirIds
35#define _h_DirIds
36
37/*
38 * Define unique numeric IDs for each source directory in Shark that contains
39 * code.  These directory IDs are used for several purposes:
40 *   1. Generating unique labels ("hookids") for kernel trace points
41 *   2. Identifying message set numbers for the message catalog code
42 * The symbols defined in this file are formed by appending the relative
43 * directory name to the string "DIR_ID_", then translating slashes to
44 * underscores.
45 *   The values of the directory IDs must be in the range 1...63:
46 * zero is not allowed because 0 is not valid as a message set number;
47 * values larger than 63 cannot be used because only 6 bits of the ID are
48 * used in generating kernel trace hookids.
49 *
50 * ==========================================================================
51 *
52 * DO NOT renumber these IDs, or reuse an ID for a directory that
53 * has been deleted, as numbers derived from these IDs appear in the
54 * message catalog and trace format file.
55 *
56 * The message files are listed here with their message number ranges.
57 * The range of numbers of MMFS messages 3-digit codes
58 * reserved for each existing message catalog file (.msg file)
59 *
60 * The messages displayed have the format "GPFS: 6027-xxx <message text>"
61 * where xxx is the unique 3-digit or 4-digit code for the particular error.
62 *
63 *
64 * SUBDIRECTORY            CATALOG FILE NAME                RANGE OF CODES
65 * ------------            -----------------                --------------
66 *                                                    unused    000-299
67 *  mmfsd                     mmfsd.msg                         300-309
68 *  tasking (1)                task.msg                         310-339
69 *  classes/tscomm           tscomm.msg                         340-359
70 *  disk (1)                   disk.msg                         360-379
71 *  classes/basic              base.msg                         380-399
72 *  stripe                   stripe.msg                         400-499
73 *  vfs                        svfs.msg                         500-529
74 *  fs                           fs.msg                         530-599
75 *  cfgmgr (1)                 cfgm.msg                         600-649
76 *  logger                   logger.msg                         650-659
77 *  cfgmgr (2)                 cfgm.msg                         660-799
78 *  phoenix (1)             phoenix.msg                         800-849
79 *  util                       util.msg                         850-999
80 *  admin                     admin.msg                        1000-1399
81 *  log                         log.msg                        1400-1449
82 *  defrag                   defrag.msg                        1450-1499
83 *  disk (2)                   disk.msg                        1500-1529
84 *  tasking (2)                task.msg                        1530-1549
85 *  admin (2)                 admin.msg                        1550-1699
86 *  classes/tscomm (2)       tscomm.msg                        1700-1799
87 *  nsd                         nsd.msg                        1800-1849
88 *  phoenix (2)             phoenix.msg                        1850-1899
89 *  admin (3)                 admin.msg                        1900-2049
90 *  bufmgr                   bufmgr.msg                        2049-2099
91 *  admin (4)                 admin.msg                        2100-2499
92 *  sanergy                 sanergy.msg                        2500-2549
93 *  bufmgr/linux            bufmgr_linux.msg                   2550-2575
94 *  tasking/linux           tasking_linux.msg                  2576-2599
95 *  fs (2)                       fs.msg                        2600-2699
96 *  cfgmgr (3)                 cfgm.msg                        2700-2799
97 *  pc                           pc.msg                        2800-2899
98 *
99 * ==========================================================================
100 *
101 * $Id: DirIds.h,v 1.85 2006/04/03 19:25:58 makaplan Exp $
102 *
103 * $Log: DirIds.h,v $
104 * Revision 1.85  2006/04/03 19:25:58  makaplan
105 * Claim message numbers 2800-2899 for policy, ts/pc/pc.msg
106 *
107 * Revision 1.84  2006/03/10 06:29:58  schmuck
108 * Prune check-in history.  No code change.
109 *
110 * Revision 1.83  2006/03/02 03:25:16  hempel
111 * message numbering:  add new message ranges for the fs and cfgmgr directories
112 *
113 * Revision 1.82  2005/11/15 16:26:42  gjertsen
114 * Provide a helpful message when daemon encounters an out of memory
115 * situation along with more graceful shutdown (defect 518290).
116 *
117 * Revision 1.81  2005/08/12 19:39:41  gjertsen
118 * Fix for 515602. Provide useful error message and shutdown if allocation
119 * fails. Create msg catalog file for bufmgr/linux but reuse MSG_E_NOMEM.
120 *
121 * Revision 1.80  2005/05/03 16:48:44  makaplan
122 * POLICY - integration tweaks
123 *
124 * Revision 1.79  2005/01/15 00:58:41  mcnabb
125 * Remove reference to smit messages
126 *
127 * [ 74 log messages deleted ]
128 *
129 * Revision 1.1  1993/07/16  18:09:11  wyllie
130 * Add file with unique IDs for each Shark source code directory.
131 *
132 */
133
134/*
135 * IMPORTANT (see also comments at the top of this file):
136 *  - names must be of the form DIR_ID_XXX, where XXX = relative dir name
137 *  - values must be in the range 1 ... 63
138 */
139#define DIR_ID_CFGMGR                   1
140#define DIR_ID_CLASSES_BASIC            2
141#define DIR_ID_CLASSES_MALLOC           3
142#define DIR_ID_LOCKMGR                  4
143#define DIR_ID_CLASSES_TSCOMM           5
144#define DIR_ID_DEBUG                    6
145#define DIR_ID_DISK                     7
146#define DIR_ID_FS                       8
147/*#define DIR_ID_FS_OVERFLOW do not reuse 9*/
148/* unused                               10 */
149#define DIR_ID_INSTALL                  11
150#define DIR_ID_LOGGER                   12
151#define DIR_ID_MMFSD                    13
152#define DIR_ID_ADMIN                    14
153#define DIR_ID_PAGEMGR                  15
154/*#define DIR_ID_PIPELINE                 16 */
155/*#define DIR_ID_RPC                      17 */
156#define DIR_ID_TASKING                  18
157#define DIR_ID_VFS                      19
158#define DIR_ID_KERNEXT                  20
159/*#define DIR_ID_TESTAPPS_MPEG            21 */
160/*#define DIR_ID_TESTAPPS_SHPLAYER        22 */
161/*#define DIR_ID_TESTAPPS_TEST            23 */
162/*#define DIR_ID_TESTAPPS_TESTPP          24 */
163#define DIR_ID_LOG                      25
164#define DIR_ID_CLASSES_PERFMON          26
165#define DIR_ID_UTIL                     27
166#define DIR_ID_STRIPE                   28
167/*#define DIR_ID_CATMNT                         29 */
168#define DIR_ID_PHOENIX                  30
169#define DIR_ID_UTIL_SCRIPT              31
170#define DIR_ID_ADMIN_SCRIPT             32
171#define DIR_ID_TM                       33
172#define DIR_ID_DM                       34
173#define DIR_ID_DM_KX                    35
174#define DIR_ID_DEFRAG                   36
175#define DIR_ID_CLASSES_MBPERFMON        37
176#define DIR_ID_PFSCK                    38
177#define DIR_ID_DIRLINUX                 39
178#define DIR_ID_KERNEXT_GPL_LINUX        40
179#define DIR_ID_KERNEXT_AIX              41
180#define DIR_ID_FS_AIX                   42
181#define DIR_ID_FS_LINUX                 43
182#define DIR_ID_KERNEXT_GPL_LINUX_I386   44
183#define DIR_ID_KERNEXT_GPL_LINUX_IA64   45
184#define DIR_ID_NSD                      46
185#define DIR_ID_LOGGER_AIX               47
186#define DIR_ID_LOGGER_LINUX             48
187#define DIR_ID_KERNEXT_LINUX            49
188#define DIR_ID_TASKING_AIX              50
189#define DIR_ID_TASKING_LINUX            51
190#define DIR_ID_PC                       52
191#define DIR_ID_SANERGY                  53
192#define DIR_ID_SANERGY_KX               54
193#define DIR_ID_BUFMGR                   55
194#define DIR_ID_BUFMGR_LINUX             56
195#define DIR_ID_BUFMGR_AIX               57
196#define DIR_ID_DM_KX_LINUX              58
197#define DIR_ID_DM_KX_AIX                59
198#define DIR_ID_FENCING                  60
199#define DIR_ID_KERNEL                   61
200
201
202
203/* Add new directory IDs above here */
204
205/* 91 is being used for SMIT help */
206
207/* overrides for default hookid (307) in certain directories */
208#define SHARKHOOKID_TM      0x30600000
209#define SHARKHOOKID_TASKING 0x30800000
210#define SHARKHOOKID_KERNEXT 0x30900000
211
212#endif  /* _h_DirIds */
Note: See TracBrowser for help on using the repository browser.