ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since ece0e80 was
5ad381b,
checked in by Thierry Delisle <tdelisle@…>, 4 years ago
|
Started to work on httpforall also supporting techempower 'plaintext' benchmark.
|
-
Property mode set to
100644
|
File size:
599 bytes
|
Line | |
---|
1 | #pragma once |
---|
2 | |
---|
3 | #include <stdint.h> |
---|
4 | |
---|
5 | #include <kernel.hfa> |
---|
6 | |
---|
7 | struct cluster; |
---|
8 | |
---|
9 | enum ExprimentType { |
---|
10 | FileExperiment, |
---|
11 | HelloWorldExperiment |
---|
12 | }; |
---|
13 | |
---|
14 | struct Options { |
---|
15 | struct { |
---|
16 | ExprimentType type; |
---|
17 | } experiment; |
---|
18 | |
---|
19 | struct { |
---|
20 | int open_flags; |
---|
21 | uint32_t hash_seed; |
---|
22 | size_t size; |
---|
23 | bool list; |
---|
24 | bool fixed_fds; |
---|
25 | } file_cache; |
---|
26 | |
---|
27 | struct { |
---|
28 | int port; |
---|
29 | int backlog; |
---|
30 | int buflen; |
---|
31 | } socket; |
---|
32 | |
---|
33 | struct { |
---|
34 | int nprocs; |
---|
35 | int nworkers; |
---|
36 | io_context_params params; |
---|
37 | bool procstats; |
---|
38 | bool viewhalts; |
---|
39 | cluster * instance; |
---|
40 | } clopts; |
---|
41 | }; |
---|
42 | |
---|
43 | extern Options options; |
---|
44 | |
---|
45 | const char * parse_options( int argc, char * argv[] ); |
---|
Note: See
TracBrowser
for help on using the repository browser.