projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stats: Add a function to report completion latency percentiles
[fio.git]
/
parse.h
diff --git
a/parse.h
b/parse.h
index 41e3633c24edb162ba629a8766389a91984db414..c5a74171ae94e70cb45339b1b22fbd387579ccf5 100644
(file)
--- a/
parse.h
+++ b/
parse.h
@@
-16,6
+16,7
@@
enum fio_opt_type {
FIO_OPT_RANGE,
FIO_OPT_INT,
FIO_OPT_BOOL,
FIO_OPT_RANGE,
FIO_OPT_INT,
FIO_OPT_BOOL,
+ FIO_OPT_FLOAT_LIST,
FIO_OPT_STR_SET,
FIO_OPT_DEPRECATED,
};
FIO_OPT_STR_SET,
FIO_OPT_DEPRECATED,
};
@@
-47,6
+48,9
@@
struct fio_option {
void *roff1, *roff2, *roff3, *roff4;
unsigned int maxval; /* max and min value */
int minval;
void *roff1, *roff2, *roff3, *roff4;
unsigned int maxval; /* max and min value */
int minval;
+ double maxfp; /* max and min floating value */
+ double minfp;
+ unsigned int maxlen; /* max length */
int neg; /* negate value stored */
int prio;
void *cb; /* callback */
int neg; /* negate value stored */
int prio;
void *cb; /* callback */
@@
-89,4
+93,9
@@
typedef int (fio_opt_str_set_fn)(void *);
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif
+static inline int parse_is_percent(unsigned long long val)
+{
+ return val <= -1ULL && val >= (-1ULL - 100ULL);
+}
+
#endif
#endif