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
RevLine 
[0aec496]1#pragma once
2
3#include <stdint.h>
4
[d11d6eb]5#include <kernel.hfa>
6
[0aec496]7struct cluster;
8
9struct Options {
[481ee28]10        bool log;
[5ad381b]11
[2ecbd7b]12        struct {
[b57db73]13                const char * path;
[2ecbd7b]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;
[03ed863]24                int buflen;
[2ecbd7b]25        } socket;
26
27        struct {
[348f81d5]28                int nclusters;
[2ecbd7b]29                int nprocs;
30                int nworkers;
[d11d6eb]31                io_context_params params;
[2ecbd7b]32                bool procstats;
33                bool viewhalts;
[348f81d5]34                cluster ** instance;
35                size_t   * thrd_cnt;
36                size_t     cltr_cnt;
[2ecbd7b]37        } clopts;
[0aec496]38};
39
[2ecbd7b]40extern Options options;
41
[b57db73]42void parse_options( int argc, char * argv[] );
Note: See TracBrowser for help on using the repository browser.