1 /* 2 * Disktest 3 * Copyright (c) International Business Machines Corp., 2001 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 * 20 * Please send e-mail to yardleyb@us.ibm.com if you have 21 * questions or comments. 22 * 23 * Project Website: TBD 24 * 25 * $Id: globals.h,v 1.6 2008/02/14 08:22:23 subrata_modak Exp $ 26 * $Log: globals.h,v $ 27 * Revision 1.6 2008/02/14 08:22:23 subrata_modak 28 * Disktest application update to version 1.4.2, by, Brent Yardley <yardleyb@us.ibm.com> 29 * 30 * Revision 1.7 2006/04/21 23:10:43 yardleyb 31 * Major updates for v1_3_3 of disktest. View README for details. 32 * 33 * Revision 1.6 2005/10/12 23:13:35 yardleyb 34 * Updates to code to support new function in disktest version 1.3.x. 35 * Actual changes are recorded in the README 36 * 37 * Revision 1.5 2005/01/08 21:18:34 yardleyb 38 * Update performance output and usage. Fixed pass count check 39 * 40 * Revision 1.4 2004/11/02 20:47:13 yardleyb 41 * Added -F functions. 42 * lots of minor fixes. see README 43 * 44 * Revision 1.3 2002/03/30 01:32:14 yardleyb 45 * Major Changes: 46 * 47 * Added Dumping routines for 48 * data miscompares, 49 * 50 * Updated performance output 51 * based on command line. Gave 52 * one decimal in MB/s output. 53 * 54 * Rewrote -pL IO routine to show 55 * correct stats. Now show pass count 56 * when using -C. 57 * 58 * Minor Changes: 59 * 60 * Code cleanup to remove the plethera 61 * if #ifdef for windows/unix functional 62 * differences. 63 * 64 * Revision 1.2 2002/03/07 03:32:13 yardleyb 65 * Removed the use of global 66 * appname. Set devname to 67 * init. value of "No Device" 68 * 69 * Revision 1.1 2001/12/04 18:51:06 yardleyb 70 * Checkin of new source files and removal 71 * of outdated source 72 * 73 */ 74 75 #ifndef _GLOBALS_H 76 #define _GLOBALS_H 1 77 78 #include "defs.h" 79 #include "threading.h" 80 81 /* global flags */ 82 #define GLB_FLG_QUIET 0x00000001 83 #define GLB_FLG_SUPRESS 0x00000002 84 #define GLB_FLG_PERFP 0x00000004 /* forces alternate performance printing format */ 85 #define GLB_FLG_KILL 0x00000008 /* will kill all threads to all targets when set */ 86 87 #define PDBG1 if (gbl_dbg_lvl > 0) pMsg 88 #define PDBG2 if (gbl_dbg_lvl > 1) pMsg 89 #define PDBG3 if (gbl_dbg_lvl > 2) pMsg 90 #define PDBG4 if (gbl_dbg_lvl > 3) pMsg 91 #define PDBG5 if (gbl_dbg_lvl > 4) pMsg 92 93 extern unsigned int gbl_dbg_lvl; 94 95 void init_gbl_data(test_env_t *); 96 #ifdef WINDOWS 97 void PrintLastSystemError(unsigned long); 98 void GetSystemErrorString(unsigned long, void *); 99 #endif 100 101 #endif /* _GLOBALS_H */ 102 103