IOR
|
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "utilities.h"
#include "ior.h"
#include "aiori.h"
#include "parse_options.h"
#include "option.h"
Go to the source code of this file.
Macros | |
#define | ISPOWEROFTWO(x) ((x != 0) && !(x & (x - 1))) |
Functions | |
option_help * | createGlobalOptions (IOR_param_t *params) |
static void | CheckRunSettings (IOR_test_t *tests) |
void | DecodeDirective (char *line, IOR_param_t *params, options_all_t *module_options) |
void | ParseLine (char *line, IOR_param_t *test, options_all_t *module_options) |
static void | decodeDirectiveWrapper (char *line) |
int | contains_only (char *haystack, char *needle) |
IOR_test_t * | ReadConfigScript (char *scriptName) |
IOR_test_t * | ParseCommandLine (int argc, char **argv) |
Variables | |
IOR_param_t | initialTestParams |
static IOR_param_t * | parameters |
static options_all_t * | global_options |
#define ISPOWEROFTWO | ( | x | ) | ((x != 0) && !(x & (x - 1))) |
Definition at line 35 of file parse_options.c.
Referenced by DecodeDirective().
|
static |
Definition at line 49 of file parse_options.c.
References IOR_param_t::checkRead, IOR_param_t::checkWrite, FALSE, IOR_CREAT, IOR_EXCL, IOR_RDONLY, IOR_RDWR, IOR_WRONLY, IOR_test_t::next, NULL, IOR_param_t::openFlags, IOR_test_t::params, IOR_param_t::readFile, TRUE, and IOR_param_t::writeFile.
Referenced by ParseCommandLine().
int contains_only | ( | char * | haystack, |
char * | needle | ||
) |
Definition at line 353 of file parse_options.c.
Referenced by ReadConfigScript().
option_help * createGlobalOptions | ( | IOR_param_t * | params | ) |
Definition at line 464 of file parse_options.c.
References aiori_supported_apis(), IOR_param_t::api, IOR_param_t::blockSize, IOR_param_t::buffer_type, IOR_param_t::checkRead, IOR_param_t::checkWrite, IOR_param_t::collective, IOR_param_t::deadlineForStonewalling, decodeDirectiveWrapper(), IOR_param_t::dryRun, IOR_param_t::filePerProc, IOR_param_t::fsync, IOR_param_t::fsyncPerWrite, IOR_param_t::hintsFileName, IOR_param_t::individualDataSets, IOR_param_t::interTestDelay, IOR_param_t::intraTestBarriers, IOR, IOR_param_t::keepFile, IOR_param_t::keepFileWithError, LAST_OPTION, IOR_param_t::maxTimeDuration, IOR_param_t::memoryPerNodeStr, IOR_param_t::multiFile, IOR_param_t::noFill, NULL, IOR_param_t::numTasks, o, OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, options, IOR_param_t::outlierThreshold, IOR_param_t::preallocate, IOR_param_t::quitOnError, IOR_param_t::randomOffset, IOR_param_t::readFile, IOR_param_t::referenceNumber, IOR_param_t::reorderTasks, IOR_param_t::reorderTasksRandom, IOR_param_t::reorderTasksRandomSeed, IOR_param_t::repetitions, IOR_param_t::segmentCount, IOR_param_t::setAlignment, IOR_param_t::setTimeStampSignature, IOR_param_t::showHints, IOR_param_t::singleXferAttempt, IOR_param_t::taskPerNodeOffset, IOR_param_t::testFileName, IOR_param_t::testscripts, IOR_param_t::transferSize, IOR_param_t::uniqueDir, IOR_param_t::useExistingTestFile, IOR_param_t::useFileView, IOR_param_t::useSharedFilePointer, IOR_param_t::useStridedDatatype, IOR_param_t::verbose, and IOR_param_t::writeFile.
Referenced by ParseCommandLine(), and ReadConfigScript().
void DecodeDirective | ( | char * | line, |
IOR_param_t * | params, | ||
options_all_t * | module_options | ||
) |
Definition at line 89 of file parse_options.c.
References aiori_select(), IOR_param_t::api, IOR_param_t::backend, IOR_param_t::beegfs_chunkSize, IOR_param_t::beegfs_numTargets, IOR_param_t::blockSize, IOR_param_t::checkRead, IOR_param_t::checkWrite, IOR_param_t::collective, IOR_param_t::deadlineForStonewalling, IOR_param_t::debug, ERR, FAIL, IOR_param_t::filePerProc, IOR_param_t::fsync, IOR_param_t::fsyncPerWrite, IOR_param_t::gpfs_hint_access, IOR_param_t::gpfs_release_token, IOR_param_t::hintsFileName, IOR_param_t::individualDataSets, IOR_param_t::interIODelay, IOR_param_t::interTestDelay, IOR_param_t::intraTestBarriers, ISPOWEROFTWO, IOR_param_t::keepFile, IOR_param_t::keepFileWithError, IOR_param_t::lustre_ignore_locks, IOR_param_t::lustre_set_striping, IOR_param_t::lustre_start_ost, IOR_param_t::lustre_stripe_count, IOR_param_t::lustre_stripe_size, MAX_STR, IOR_param_t::maxTimeDuration, IOR_param_t::memoryPerNode, IOR_param_t::memoryPerTask, MPI_CHECK, IOR_param_t::multiFile, NodeMemoryStringToBytes(), IOR_param_t::noFill, NULL, IOR_param_t::numNodes, IOR_param_t::numTasks, IOR_param_t::numTasksOnNode0, option_parse_key_value(), out_logfile, out_resultfile, IOR_param_t::outlierThreshold, OUTPUT_CSV, OUTPUT_DEFAULT, OUTPUT_JSON, outputFormat, IOR_param_t::platform, IOR_param_t::preallocate, IOR_param_t::quitOnError, IOR_param_t::randomOffset, rank, rc, IOR_param_t::readFile, IOR_param_t::referenceNumber, IOR_param_t::reorderTasks, IOR_param_t::reorderTasksRandom, IOR_param_t::reorderTasksRandomSeed, IOR_param_t::repetitions, IOR_param_t::segmentCount, IOR_param_t::setAlignment, IOR_param_t::setTimeStampSignature, IOR_param_t::showHints, IOR_param_t::singleXferAttempt, IOR_param_t::stoneWallingStatusFile, IOR_param_t::stoneWallingWearOut, IOR_param_t::stoneWallingWearOutIterations, IOR_param_t::storeFileOffset, string_to_bytes(), IOR_param_t::summary_every_test, IOR_param_t::taskPerNodeOffset, IOR_param_t::testFileName, IOR_param_t::transferSize, IOR_param_t::uniqueDir, IOR_param_t::useExistingTestFile, IOR_param_t::useFileView, IOR_param_t::useSharedFilePointer, IOR_param_t::useStridedDatatype, IOR_param_t::verbose, and IOR_param_t::writeFile.
Referenced by ParseLine().
|
static |
Definition at line 345 of file parse_options.c.
References ParseLine().
Referenced by createGlobalOptions().
IOR_test_t* ParseCommandLine | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 541 of file parse_options.c.
References airoi_create_all_module_options(), AllocResults(), CheckRunSettings(), createGlobalOptions(), CreateTest(), GetPlatformName(), init_IOR_Param_t(), initialTestParams, NULL, option_parse(), options, IOR_param_t::platform, ReadConfigScript(), IOR_param_t::testscripts, and updateParsedOptions().
Referenced by ior_main(), and ior_run().
void ParseLine | ( | char * | line, |
IOR_param_t * | test, | ||
options_all_t * | module_options | ||
) |
Definition at line 318 of file parse_options.c.
References DecodeDirective(), NULL, and out_logfile.
Referenced by decodeDirectiveWrapper(), and ReadConfigScript().
IOR_test_t* ReadConfigScript | ( | char * | scriptName | ) |
Definition at line 379 of file parse_options.c.
References airoi_update_module_options(), AllocResults(), contains_only(), createGlobalOptions(), CreateTest(), ERR, MAX_STR, options_all_t::modules, IOR_test_t::next, NULL, option_module::options, IOR_test_t::params, and ParseLine().
Referenced by ParseCommandLine().
|
static |
Definition at line 43 of file parse_options.c.
Referenced by airoi_create_all_module_options(), and mdtest_run().
IOR_param_t initialTestParams |
Definition at line 37 of file parse_options.c.
Referenced by ParseCommandLine().
|
static |
Definition at line 42 of file parse_options.c.