source:
benchmark/io/http/options.hfa
@
c0af102
Last change on this file since c0af102 was 40a64f78, checked in by , 3 years ago | |
---|---|
|
|
File size: 666 bytes |
Rev | Line | |
---|---|---|
[0aec496] | 1 | #pragma once |
2 | ||
3 | #include <stdint.h> | |
4 | ||
[d11d6eb] | 5 | #include <kernel.hfa> |
6 | ||
[0aec496] | 7 | struct cluster; |
8 | ||
9 | struct Options { | |
[481ee28] | 10 | bool log; |
[2cd784a] | 11 | bool stats; |
[40a64f78] | 12 | bool interactive; |
13 | const char * reopen_stdout; | |
14 | const char * reopen_stderr; | |
[5ad381b] | 15 | |
[2ecbd7b] | 16 | struct { |
[b57db73] | 17 | const char * path; |
[2ecbd7b] | 18 | int open_flags; |
19 | uint32_t hash_seed; | |
20 | size_t size; | |
21 | bool list; | |
22 | bool fixed_fds; | |
23 | } file_cache; | |
24 | ||
25 | struct { | |
26 | int port; | |
27 | int backlog; | |
[03ed863] | 28 | int buflen; |
[2ecbd7b] | 29 | } socket; |
30 | ||
31 | struct { | |
[348f81d5] | 32 | int nclusters; |
[2ecbd7b] | 33 | int nprocs; |
34 | int nworkers; | |
[d11d6eb] | 35 | io_context_params params; |
[2ecbd7b] | 36 | bool procstats; |
37 | bool viewhalts; | |
[348f81d5] | 38 | cluster ** instance; |
39 | size_t * thrd_cnt; | |
40 | size_t cltr_cnt; | |
[2ecbd7b] | 41 | } clopts; |
[0aec496] | 42 | }; |
43 | ||
[2ecbd7b] | 44 | extern Options options; |
45 | ||
[b57db73] | 46 | void parse_options( int argc, char * argv[] ); |
Note: See TracBrowser
for help on using the repository browser.