Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 45 lines (36 sloc) 1.791 kB
2557d8a @avsm add atomicio and utility functions
authored
1 /*
2 Copyright (c) 2011 Anil Madhavapeddy <anil@recoil.org>
3
4 Permission is hereby granted, free of charge, to any person
5 obtaining a copy of this software and associated documentation
6 files (the "Software"), to deal in the Software without
7 restriction, including without limitation the rights to use,
8 copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the
10 Software is furnished to do so, subject to the following
11 conditions:
12
13 The above copyright notice and this permission notice shall be
14 included in all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 OTHER DEALINGS IN THE SOFTWARE.
24 */
25
d2e837c Track how long each iteration takes, and then try to do some simple
Steven Smith authored
26 #include <stdbool.h>
ad344b1 Tweak the _test macro to avoid depending on variables from the
Steven Smith authored
27 #include <stdio.h>
d2e837c Track how long each iteration takes, and then try to do some simple
Steven Smith authored
28
2557d8a @avsm add atomicio and utility functions
authored
29 void * xmalloc(size_t);
30 void xread(int, void *, size_t);
31 void xwrite(int, const void *, size_t);
d2e837c Track how long each iteration takes, and then try to do some simple
Steven Smith authored
32
4f9900f @avsm rewrite test runner to support multiple parallel tests to simulate load
authored
33 void setaffinity(int);
d4b7d42 Make it easier to log the results to a file for later analysis.
Steven Smith authored
34 void parse_args(int argc, char *argv[], bool *per_iter_timings, int *size, size_t *count,
b75a059 Merge branch 'master' of git://github.com/avsm/ipc-bench
Steven Smith authored
35 int *first_cpu, int *second_cpu, int *parallel, char **output_dir, int *wip, int *rip, int *prod, int *do_verify,
e0a16b7 Add a -n option which allows you to specify which NUMA node shared
Steven Smith authored
36 int *numa_node);
37 void *establish_shm_segment(int nr_pages, int numa_node);
985fdd0 Simple in-memory IPC throughput test.
Steven Smith authored
38
1683c80 Move summarise_tsc_counters.c back into the main test pipeline, so
Steven Smith authored
39 /* Doesn't really belong here, but doesn't really belong anywhere. */
40 void summarise_samples(FILE *f, double *data, int nr_samples);
41
d8599ce @avsm PAGE_SIZE defined in sys/param.h in OpenBSD, so dont redefine
authored
42 #ifndef PAGE_SIZE
985fdd0 Simple in-memory IPC throughput test.
Steven Smith authored
43 #define PAGE_SIZE 4096
d8599ce @avsm PAGE_SIZE defined in sys/param.h in OpenBSD, so dont redefine
authored
44 #endif
Something went wrong with that request. Please try again.