4 #define FIO_MAX_OPTS 512
10 #include "lib/types.h"
12 int add_option(struct fio_option *);
13 void invalidate_profile_options(const char *);
14 extern char *exec_profile;
16 void add_opt_posval(const char *, const char *, const char *);
17 void del_opt_posval(const char *, const char *);
19 void fio_options_free(struct thread_data *);
20 int set_name_idx(char *, size_t, char *, int, bool);
22 extern char client_sockaddr_str[]; /* used with --client option */
24 extern struct fio_option fio_options[FIO_MAX_OPTS];
26 extern bool __fio_option_is_set(struct thread_options *, unsigned int off);
28 #define fio_option_is_set(__td, name) \
30 const unsigned int off = offsetof(struct thread_options, name); \
31 bool __r = __fio_option_is_set((__td), off); \
35 extern void fio_option_mark_set(struct thread_options *, struct fio_option *);
37 static inline bool o_match(struct fio_option *o, const char *opt)
39 if (!strcmp(o->name, opt))
41 else if (o->alias && !strcmp(o->alias, opt))
47 extern struct fio_option *find_option(struct fio_option *, const char *);
48 extern struct fio_option *fio_option_find(const char *);
49 extern unsigned int fio_get_kb_base(void *);