source: benchmark/io/http/options.hfa @ b664af2

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since b664af2 was 348f81d5, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Added option to isolate processor so everything has it's own cluster

  • Property mode set to 100644
File size: 576 bytes
Line 
1#pragma once
2
3#include <stdint.h>
4
5#include <kernel.hfa>
6
7struct cluster;
8
9struct Options {
10        bool log;
11
12        struct {
13                const char * path;
14                int open_flags;
15                uint32_t hash_seed;
16                size_t size;
17                bool list;
18                bool fixed_fds;
19        } file_cache;
20
21        struct {
22                int port;
23                int backlog;
24                int buflen;
25        } socket;
26
27        struct {
28                int nclusters;
29                int nprocs;
30                int nworkers;
31                io_context_params params;
32                bool procstats;
33                bool viewhalts;
34                cluster ** instance;
35                size_t   * thrd_cnt;
36                size_t     cltr_cnt;
37        } clopts;
38};
39
40extern Options options;
41
42void parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.