⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rf_testcode.h

📁 RAIDFrame是个非常好的磁盘阵列RAID仿真工具
💻 H
字号:
/* * rf_testcode.h *//* * Copyright (c) 1996 Carnegie-Mellon University. * All rights reserved. * * Author: Mark Holland, Rachad Youssef * * Permission to use, copy, modify and distribute this software and * its documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * Carnegie Mellon requests users of this software to return to * *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU *  School of Computer Science *  Carnegie Mellon University *  Pittsburgh PA 15213-3890 * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. *//* * $Locker:  $ * $Log: rf_testcode.h,v $ * Revision 1.9  1996/07/22  20:58:23  jimz * added WriteArrayTest * * Revision 1.8  1996/06/14  23:15:38  jimz * attempt to deal with thread GC problem * * Revision 1.7  1996/06/12  04:41:26  jimz * tweaks to make genplot work with user-level driver * (mainly change stat collection) * * Revision 1.6  1996/06/12  03:31:29  jimz * add infrastructure for genplot (stats extraction) * cleanup simulator script handling * * Revision 1.5  1996/06/11  18:12:36  jimz * get rid of JOIN operations * use ThreadGroup stuff instead * fix some allocation/deallocation and sync bugs * * Revision 1.4  1996/06/11  10:58:07  jimz * add rf_TestcodeInit * * Revision 1.3  1996/06/10  16:40:01  jimz * break user-level stuff out into lib+apps * * Revision 1.2  1996/06/05  18:06:02  jimz * Major code cleanup. The Great Renaming is now done. * Better modularity. Better typing. Fixed a bunch of * synchronization bugs. Made a lot of global stuff * per-desc or per-array. Removed dead code. * * Revision 1.1  1996/05/18  19:55:11  jimz * Initial revision * */#ifndef _RF__RF_TESTCODE_H_#define _RF__RF_TESTCODE_H_#include "rf_types.h"typedef struct RF_GRpair_s {  RF_Raid_t         *raidPtr;  RF_ThreadGroup_t   group;  RF_Script_t       *script;} RF_GRpair_t;extern char rf_testcode_degr_mode_type;extern RF_Raid_t *globalRaidPtr;extern int rf_test_running;extern int rf_terminate_script_test;RF_GRpair_t *rf_GetGrpair(RF_ShutdownList_t  **listp);void DiskFailingThread(RF_ThreadArg_t arg);void rf_TestcodeInit(RF_Raid_t *raidPtr);#ifndef SIMULATEvoid SingleAccessTest(RF_Raid_t *raidPtr);void LoopTest(RF_Raid_t *raidPtr, RF_ShutdownList_t **listp);void DegradedModeReadTest(RF_Raid_t *raidPtr);void RandomReadTest(RF_Raid_t *raidPtr, RF_ShutdownList_t **listp);void FileWriteReadTest(RF_Raid_t *raidPtr);void WriteArrayTest(RF_Raid_t *raidPtr, RF_ShutdownList_t **listp);void ReconTest(RF_Raid_t *raidPtr, RF_ShutdownList_t **listp);void ScriptTestFunc(RF_ThreadArg_t arg);#else /* !SIMULATE */void RunScriptTestFunc(RF_GRpair_t *grp, long nthreads);#endif /* !SIMULATE */void ScriptTest(RF_Raid_t *raidPtr, RF_ShutdownList_t **listp);void LayoutTest(RF_Raid_t *raidPtr);void ExtractStats(RF_Raid_t *raidPtr, RF_uint64 *num_iosp,	double *ios_per_secp, double *response_timep);#endif /* !_RF__RF_TESTCODE_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -