aboutsummaryrefslogtreecommitdiffstats
path: root/parse.c
AgeCommit message (Expand)AuthorFilesLines
2025-06-20parse: use minimum delimiter distanceLeonid Kozlov1-3/+6
2022-03-30Rename 'fallthrough' attribute to 'fio_fallthrough'Jens Axboe1-2/+2
2022-03-09- fixed memory leak, which is happening when parsing options, claimed by ASANDenis Pronin1-0/+2
2021-11-24parse: handle comma-separated optionsOleg Latin1-4/+8
2021-02-22zbd: support 'z' suffix for zone granularityAlexey Dobriyan1-1/+29
2021-01-16options: fix buffer overrunSitsofe Wheeler1-0/+5
2021-01-06Change ARRAY_SIZE to FIO_ARRAY_SIZEJens Axboe1-1/+1
2020-08-28Use fallthrough attributeJens Axboe1-2/+2
2019-11-26parse: Silence discard-const warning on OpenBSDTomohiro Kusumi1-1/+14
2019-10-14parse: improve detection of bad input stringJens Axboe1-1/+5
2019-08-14Optimize the code that copies stringsBart Van Assche1-4/+2
2018-09-25parse: fix negative FIO_OPT_INT too-large checkJens Axboe1-1/+4
2018-09-25parse: fix minval checkingJens Axboe1-10/+4
2018-09-25parse: fix min/max val checking for FIO_OPT_INTJens Axboe1-2/+32
2018-09-25parse: print option name for out-of-range settingsJens Axboe1-4/+4
2018-08-24Fix the typehelp[] arrayBart Van Assche1-13/+16
2018-08-23parse: fix bssplit optionJens Axboe1-3/+1
2018-07-23parse: mark another fall-through switch caseJens Axboe1-0/+1
2018-07-23parse: mark fall-through switch caseJens Axboe1-0/+1
2018-07-23Add support for >= 4G block sizesJeff Furlong1-21/+55
2018-06-05log: fix signedness issueJens Axboe1-2/+2
2018-04-17parse: add support for soft deprecated optionsJens Axboe1-3/+7
2018-04-08parse: fix dead 'org' assignmentJens Axboe1-2/+0
2018-04-06Fix floating point option range formattingBart Van Assche1-3/+7
2018-04-04Ensure that .minfp and .maxfp are respected for FIO_OPT_FLOAT_LISTBart Van Assche1-15/+14
2018-04-04option parsing: Mark arguments that are not modified as 'const'Bart Van Assche1-38/+45
2018-03-21Refactor #includes and headersSitsofe Wheeler1-3/+1
2018-03-12parse: Fix two compiler warningsBart Van Assche1-2/+2
2017-12-15parse: don't check for < 0 on an unsigned typeJens Axboe1-1/+1
2017-12-15parse: dump option type when using --debug=parseJens Axboe1-2/+30
2017-10-25parse: minimum options values are signedJens Axboe1-2/+2
2017-07-12parse: enable options to be marked dont-freeJens Axboe1-1/+1
2017-04-26Drop the only local variable declaration within a for-loop (C99)Tomohiro Kusumi1-1/+2
2017-02-24fio: fix overflow trying to use 'd' suffixSitsofe Wheeler1-1/+1
2017-01-19Move options_mem_dupe() to parse.cTomohiro Kusumi1-0/+17
2017-01-02Improve IEC binary and SI decimal prefix handlingRobert Elliott1-11/+29
2016-08-15Various cleanupsJens Axboe1-1/+1
2016-07-27Add missing --cmdhelp type string for FIO_OPT_UNSUPPORTEDTomohiro Kusumi1-0/+1
2016-06-08parse: add support for unsupported optionsJens Axboe1-1/+20
2016-05-23parse: warn if option is missing a long option variantJens Axboe1-0/+2
2015-12-30options: split out option grouping codeJens Axboe1-0/+1
2015-12-17Ensure that command line options also end up in json outputJens Axboe1-17/+27
2015-12-16parse: fix segfault if posval option doesn't have a valueJens Axboe1-0/+2
2015-12-15Rework 'dump_cmdline'Jens Axboe1-9/+8
2015-10-27Proper size return from output buffersJens Axboe1-2/+2
2015-08-21parse: only print option mismatch help, if the distance is close enoughJens Axboe1-0/+13
2015-05-06Add support for options being a power-of-2Jens Axboe1-0/+5
2015-01-22parse: ensure strings are pre-terminated when using strncpy()Jens Axboe1-0/+2
2014-12-17parse: remove the arithmetic parser checkingJens Axboe1-52/+1
2014-12-09options: add support for checking if an option has been setJens Axboe1-2/+0
2014-12-05parse: make suggestions for unknown optionsJens Axboe1-1/+1
2014-11-10Fixup some of the time (usec) based conversionsStephen M. Cameron1-15/+20
2014-11-06Make fio -Wshadow cleanJens Axboe1-1/+3
2014-09-30enable informing arithmetic parser of implicit unitsStephen M. Cameron1-7/+14
2014-09-30verify that expression parsing code gets the right answerStephen M. Cameron1-1/+47
2014-09-29fio: support suffixes in expression parserStephen M. Cameron1-2/+6
2014-09-29fio: allow arithmetic expressions to be used in job filesStephen M. Cameron1-8/+42
2014-09-23Fix min/max typeof warningsJens Axboe1-1/+1
2014-06-18Add support for compiling for ESXJens Axboe1-1/+1
2014-04-14parse: make it clear that 'cp' can't be NULL for o->off1Jens Axboe1-1/+1
2014-04-03parse: fix crash with empty FIO_OPT_STR_STORE variablesJens Axboe1-0/+3
2014-02-21Unify the time handlingJens Axboe1-10/+16
2014-02-21Fixup time multipliersJens Axboe1-7/+9
2014-02-20fio: allow milliseconds on all time specifiersChristian Ehrhardt1-14/+34
2014-02-12Make parse.h C++ safe by avoiding "or" keywordDaniel Gollub1-1/+1
2014-02-11parse: cleanup difference between profile and normal optionsJens Axboe1-35/+13
2014-02-11parse: get rid of raw option offsetsJens Axboe1-104/+70
2013-12-09Add options to have fio latency profile a deviceJens Axboe1-6/+10
2013-11-26init: escape description option stringJens Axboe1-5/+20
2013-07-25Add support for randomness of any IO directionJens Axboe1-0/+1
2013-07-22core: Insure "il" is initialized in all casesErwan Velu1-1/+1
2013-05-23parse: if profile is set, only show options relevant to the profileJens Axboe1-0/+2
2013-04-25parse: add debug output when enabledJens Axboe1-0/+6
2013-04-24Add support for other ways of triggering intermediate result outputsJens Axboe1-1/+1
2013-04-10Merge branch 'master' into gfioJens Axboe1-3/+3
2013-04-10parse: fix spelling errorJens Axboe1-1/+1
2013-04-10parse: bring in more stuff from gfioJens Axboe1-3/+5
2013-04-10Unify options with gfioJens Axboe1-0/+5
2013-04-10parse: set invalid group on option with no group setJens Axboe1-0/+1
2013-04-10parse: catch all options without a group/category setJens Axboe1-4/+4
2013-04-10parse: don't print min/max option ranges if posval[] is setJens Axboe1-2/+2
2013-04-10Merge branch 'master' into gfioJens Axboe1-1/+2
2013-04-10parse: for option with posval, dump allowed values on failureJens Axboe1-1/+2
2013-04-09parse: add posval support to FIO_OPT_INTJens Axboe1-0/+18
2013-04-09parse: add posval support to FIO_OPT_INTJens Axboe1-0/+18
2013-04-05Merge branch 'master' into gfioJens Axboe1-1/+19
2013-03-29parse: fix misparse of bs=64k-128kJens Axboe1-1/+19
2013-02-07Merge branch 'master' into gfioJens Axboe1-0/+32
2013-02-06Handle normal output wrapping of the percentile listJens Axboe1-3/+4
2013-02-06Cleanup the percentile output formattingJens Axboe1-1/+1
2013-02-06Handle percentile lists with higher precision that 2 digitsVincent Kang Fu1-1/+32
2013-02-04Merge branch 'master' into gfioJens Axboe1-18/+11
2013-02-02values.h is obsolete: use float.h and DBL_MIN/MAX instead.Bruce Cran1-5/+5
2013-02-02parse: use MIN/MAXDOUBLE instead of some representation of NANJens Axboe1-9/+7
2013-02-02Fix percentile_list optionVincent Kang Fu1-8/+3
2013-01-29Merge branch 'master' into gfioJens Axboe1-0/+3
2013-01-24NAN: use __builtin_nanf() if not availableJens Axboe1-0/+3
2012-12-11Merge branch 'master' into gfioJens Axboe1-2/+7
2012-12-06parser: always match the correct option length for posval optionsJens Axboe1-2/+7
2012-12-03Merge branch 'master' into gfioJens Axboe1-3/+1
2012-11-29parse: fix wrong "might be used unitialized" warning on some compilersJens Axboe1-3/+1
2012-11-14Merge branch 'master' into gfioJens Axboe1-1/+2
2012-11-06Add sample zipf distribution randomizerJens Axboe1-2/+3
2012-09-24Merge branch 'master' into gfioJens Axboe1-4/+8
2012-09-24parser: fix overflowing integer type optionsJens Axboe1-4/+8
2012-09-24Merge branch 'master' into gfioJens Axboe1-10/+67
2012-09-14Add support for trim as a workload typeShaohua Li1-10/+67
2012-03-27White space spring cleaningJens Axboe1-4/+3
2012-03-19Add support for inverse optionsJens Axboe1-3/+5
2012-03-19gfio: improve option editJens Axboe1-1/+1
2012-03-16parse: ensure that an option has a categoryJens Axboe1-0/+4
2012-03-16gfio: start of options view and editJens Axboe1-6/+6
2012-03-07parser: relax restriction on postfix rangesJens Axboe1-11/+11
2012-02-09Fix a few other static code checker spotted "issues"Jens Axboe1-1/+1
2012-02-09Fixup a few items spotted by a static code checkerJens Axboe1-0/+1
2011-11-16Fix parsing of ioengine stringsSteven Lang1-33/+42
2011-11-09Private parameters for ioenginesSteven Lang1-25/+33
2011-10-28Cleanup option keyword/environment substitutionSteven Lang1-67/+12
2011-10-15Fix strip blank space for empty stringJens Axboe1-0/+5
2011-10-14Memory leak fixesJens Axboe1-0/+19
2011-10-05parser: always use the fio logging instead of stderr/stdoutJens Axboe1-19/+18
2011-10-04parser: use logging infrastructureJens Axboe1-33/+37
2011-09-21Silence build warning on HPUXJens Axboe1-1/+1
2011-09-07Better parser fixJens Axboe1-1/+4
2011-09-07Revert "Fix parser bug with ranges"Jens Axboe1-11/+9
2011-09-07Fix parser bug with rangesJens Axboe1-9/+11
2011-08-31Only clear string pointer in parser for sub-value optionsJens Axboe1-2/+4
2011-08-31Fix parser using uninitialized memoryJens Axboe1-6/+4
2011-08-31Remove duplicate code in parserJens Axboe1-14/+5
2011-08-31Fix FIO_OPT_STR_STORE without posvalJens Axboe1-2/+17
2011-08-30Add sub-option support (sort-of) and convert libaio_userspace_reapJens Axboe1-13/+34
2011-08-13stats: Add a function to report completion latency percentilesYu-ju Hong1-9/+71
2011-07-23Fix bsrange read,write value option pairsDave Engberg1-0/+5
2011-07-15Make string-set options behave more like bool optionsJens Axboe1-23/+9
2011-07-12Allow percentage setting for size=Jens Axboe1-8/+21
2011-07-08Get rid of warning on platforms for casting char -> intJens Axboe1-4/+4
2011-05-05Revert "parser: get rid of useless is_time variable"Jens Axboe1-8/+10
2011-03-27Fix parser bug dealing with range options and postfixJens Axboe1-9/+10
2011-03-27parser: get rid of useless is_time variableJens Axboe1-10/+8
2010-09-14Add missing option typeJens Axboe1-0/+1
2010-07-29Fix bad deref of memory in parserJens Axboe1-0/+3
2010-07-14Really fix broken option length checkJens Axboe1-1/+12
2010-06-23Allow use of KiB etc to give explicit base 10 multipliesJens Axboe1-43/+64
2010-06-18parser: match on length of argument, not potential valueJens Axboe1-1/+1
2010-04-01Make the 'closest option' print a bit betterJens Axboe1-2/+7
2010-03-18Fix bad type usage in parse.c for external optionsJens Axboe1-6/+6
2010-03-10Fix broken FIO_OPT_STR optionJens Axboe1-2/+3
2010-03-10Fix parser bug capping multi value options at 2Jens Axboe1-33/+41
2010-03-09Allow OR'able option valuesJens Axboe1-23/+31
2010-03-09Remove debug printf()Jens Axboe1-2/+0
2010-03-08Make profile io op overrides a dedicated structureJens Axboe1-0/+2
2010-03-05Fix parse strlen() bugJens Axboe1-1/+1
2010-03-05Allow the adding of 'posval' for dynamic options like 'profile'Jens Axboe1-22/+0
2010-03-05Allow holes in the option posval (possible values)Jens Axboe1-6/+5
2010-03-05Cleanup profile supportJens Axboe1-42/+18
2010-03-04Add initial support for profile specific optionsJens Axboe1-3/+19
2010-03-04Add parser support for out-of-td option storageJens Axboe1-23/+72
2010-03-04Add support for registrering external optionsJens Axboe1-37/+63
2010-03-03Add check for OPT_LEN_MAX being too smallJens Axboe1-0/+7
2009-12-23Allow 'b' postfix for integer valuesJens Axboe1-3/+13
2009-09-11Silence the style/whitespace policeJens Axboe1-1/+1
2009-07-18A few more kb_base fixupsJens Axboe1-17/+18
2009-07-18Make kb_base apply to parser k/m/g etc valuesJens Axboe1-15/+21
2009-07-17Add tera/peta suffixesJens Axboe1-3/+6
2009-07-17parser: dump valid option format for ->verify() failJens Axboe1-29/+35
2009-07-01Add verify hook to optionsJens Axboe1-0/+6
2009-07-01Only show maxval in --cmdhelp if it is givenJens Axboe1-1/+4
2009-06-15Cmd help type fixJens Axboe1-1/+0
2009-06-09parser: get rid of FIO_OPT_STR_VAL_INTJens Axboe1-4/+2
2009-06-09Fix bug in parser with postfix and truncated direction valuesJens Axboe1-4/+15
2009-03-10Fix integer store bug in parserJens Axboe1-1/+2
2009-03-09Get rid of int vs siint differenceJens Axboe1-1/+1
2009-03-09Allow 0x (or 0X) prefix for any int value to indicate hex baseJens Axboe1-2/+7
2009-03-06Fix failure to strip end of line with commentJens Axboe1-2/+2
2008-12-08Properly strip end-of-option blanksJens Axboe1-2/+3
2008-11-19Add support for giving bw/clat/slat log prefixesJens Axboe1-1/+1
2008-11-19Fix bug in parser that causes a crash with a bad optionJens Axboe1-7/+8
2008-10-07Add environment-variable substitution to config optionsAaron Carroll1-1/+51
2008-06-10Add option prioritiesJens Axboe1-14/+54
2008-04-07Mark rwmixcycle option as deprecated in the option parserJens Axboe1-0/+8
2008-03-06Style fixupsJens Axboe1-37/+49
2008-03-01Fix recursive dump of optionsJens Axboe1-6/+31
2008-02-27Add --debug=parse for option parsing debugJens Axboe1-0/+10
2008-02-05parser: always set off3/4 even if we have moreJens Axboe1-1/+1
2007-12-14Add support for 'bssplit' option, fine grained block size contrlJens Axboe1-1/+1
2007-08-10Allow upper-case 'X' for hexidecimal in parserJens Axboe1-1/+1
2007-07-31Be a little more clever in finding child optionsJens Axboe1-10/+6
2007-07-31Parent options didn't recurse properlyJens Axboe1-7/+12
2007-07-31Add parent link to optionsJens Axboe1-2/+34
2007-07-30Parser: make check_int() accept hex input if prefixed with 0xJens Axboe1-2/+7
2007-07-19Fix memory overflow bugsJens Axboe1-2/+2
2007-04-04Have strip_blank_end() also strip off any commentsJens Axboe1-2/+12
2007-03-29Fix memory overflow with > 64 byte optionsJens Axboe1-3/+7
2007-03-28Fix bug with stripping white space at the front of an optionJens Axboe1-0/+2
2007-03-20Warn if default value is given for string option without valueJens Axboe1-0/+2
2007-03-19Sort option possible value mapJens Axboe1-1/+30
2007-03-15Show alias in command helpJens Axboe1-0/+3
2007-03-15Command help match also on aliasesJens Axboe1-1/+2
2007-03-15Accept '-' as siint delimter as well.Jens Axboe1-0/+2
2007-03-14Add suboption help textsJens Axboe1-7/+7