![]() |
PandA-2024.02
|
#include "support.h"#include <stdio.h>#include <string.h>#include <sys/stat.h>#include <sys/mman.h>#include <unistd.h>#include <fcntl.h>#include <assert.h>
Go to the source code of this file.
Macros | |
| #define | generate_test_TYPE_array(TYPE) |
| #define | STRLEN 11 |
| #define | TESTSTR "hello world" |
Functions | |
| void | run_benchmark (void *vargs) |
| void | input_to_data (int fd, void *vdata) |
| void | output_to_data (int fd, void *vdata) |
| void | data_to_output (int fd, void *vdata) |
| int | check_data (void *vdata, void *vref) |
| generate_test_TYPE_array (uint8_t) | |
| void | test_strings () |
| void | test_prng () |
| int | main (int argc, char **argv) |
Variables | |
| int | INPUT_SIZE |
| #define generate_test_TYPE_array | ( | TYPE | ) |
Definition at line 19 of file test_support.c.
| #define STRLEN 11 |
Definition at line 64 of file test_support.c.
Referenced by test_strings().
| #define TESTSTR "hello world" |
Definition at line 65 of file test_support.c.
Referenced by test_strings().
| int check_data | ( | void * | vdata, |
| void * | vref | ||
| ) |
Definition at line 15 of file test_support.c.
| void data_to_output | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 14 of file test_support.c.
| generate_test_TYPE_array | ( | uint8_t | ) |
Definition at line 42 of file test_support.c.
References find_section_start(), and readfile().

| void input_to_data | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 12 of file test_support.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 120 of file test_support.c.
References test_prng(), and test_strings().

| void output_to_data | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 13 of file test_support.c.
| void run_benchmark | ( | void * | vargs | ) |
Definition at line 11 of file test_support.c.
| void test_prng | ( | ) |
Definition at line 101 of file test_support.c.
References prng_rand(), and prng_srand().
Referenced by main().


| void test_strings | ( | ) |
Definition at line 66 of file test_support.c.
References parse_string(), readfile(), SECTION_TERMINATED, STRLEN, test(), TESTSTR, write_section_header(), and write_string().
Referenced by main().


| int INPUT_SIZE |
Definition at line 16 of file test_support.c.
1.8.13