source:
benchmark/io/http/options.hfa
@
198e335
Last change on this file since 198e335 was 2cd784a, checked in by , 4 years ago | |
---|---|
|
|
File size: 589 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; |
[5ad381b] | 12 | |
[2ecbd7b] | 13 | struct { |
[b57db73] | 14 | const char * path; |
[2ecbd7b] | 15 | int open_flags; |
16 | uint32_t hash_seed; | |
17 | size_t size; | |
18 | bool list; | |
19 | bool fixed_fds; | |
20 | } file_cache; | |
21 | ||
22 | struct { | |
23 | int port; | |
24 | int backlog; | |
[03ed863] | 25 | int buflen; |
[2ecbd7b] | 26 | } socket; |
27 | ||
28 | struct { | |
[348f81d5] | 29 | int nclusters; |
[2ecbd7b] | 30 | int nprocs; |
31 | int nworkers; | |
[d11d6eb] | 32 | io_context_params params; |
[2ecbd7b] | 33 | bool procstats; |
34 | bool viewhalts; | |
[348f81d5] | 35 | cluster ** instance; |
36 | size_t * thrd_cnt; | |
37 | size_t cltr_cnt; | |
[2ecbd7b] | 38 | } clopts; |
[0aec496] | 39 | }; |
40 | ||
[2ecbd7b] | 41 | extern Options options; |
42 | ||
[b57db73] | 43 | void parse_options( int argc, char * argv[] ); |
Note: See TracBrowser
for help on using the repository browser.