source: benchmark/io/http/options.hfa @ 5ad381b

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 5ad381b was 5ad381b, checked in by Thierry Delisle <tdelisle@…>, 3 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
7struct cluster;
8
9enum ExprimentType {
10        FileExperiment,
11        HelloWorldExperiment
12};
13
14struct 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
43extern Options options;
44
45const char * parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.