|
valFuzz 1.2.0
|
Data Structures | |
| class | csv_reporter |
| class | default_reporter |
| class | none_reporter |
| struct | report |
| class | reporter |
| class | reporter_engine |
Typedefs | |
| typedef std::function< void(std::string)> | benchmark_function |
| typedef std::pair< std::string, benchmark_function > | benchmark_pair |
| typedef std::function< void(std::string)> | test_function |
| typedef std::pair< std::string, test_function > | test_pair |
| typedef std::function< void(std::string)> | fuzz_function |
| typedef std::pair< std::string, fuzz_function > | fuzz_pair |
Functions | |
| unsigned long | get_cache_l3_size () |
| bool & | get_do_benchmarks () |
| int & | get_num_iterations_benchmark () |
| bool & | get_run_one_benchmark () |
| std::string & | get_one_benchmark () |
| unsigned long | get_num_benchmarks () |
| std::deque< benchmark_pair > & | get_benchmarks () |
| std::atomic< bool > & | get_save_to_file () |
| std::ofstream & | get_save_file () |
| void | set_save_to_file (bool save_to_file) |
| void | set_save_file (const std::filesystem::path &save_to_file_path) |
| void | add_benchmark (const std::string &name, benchmark_function benchmark) |
| void | set_do_benchmarks (bool do_benchmarks) |
| void | set_num_iterations_benchmark (int num_iterations_benchmark) |
| void | set_run_one_benchmark (bool run_one_benchmark) |
| void | set_one_benchmark (const std::string &one_benchmark) |
| void | run_benchmarks () |
| std::mutex & | get_stream_mutex () |
| std::atomic< bool > & | get_verbose () |
| std::atomic< long unsigned int > & | get_max_num_threads () |
| std::mutex & | get_tests_mutex () |
| std::atomic< bool > & | get_is_threaded () |
| std::vector< std::thread > & | get_thread_pool () |
| template<typename T > | |
| T | get_random () |
| std::deque< fuzz_pair > & | get_fuzzs () |
| long unsigned int | get_num_fuzz_tests () |
| std::atomic< long unsigned int > & | get_iterations () |
| std::mt19937 & | get_random_engine () |
| std::uniform_real_distribution & | get_uniform_distribution () |
| void | increment_iterations () |
| std::optional< fuzz_pair > | pop_fuzz_or_null () |
| void | add_fuzz_test (const std::string &name, fuzz_function test) |
| void | run_one_fuzz (const std::string &name) |
| void | _run_fuzz_tests () |
| void | run_fuzz_tests () |
| std::string & | get_reporter () |
| void | set_reporter (std::string rep) |
| std::deque< valfuzz::test_pair > & | get_tests () |
| std::mutex & | get_test_mutex () |
| long unsigned int | get_num_tests () |
| std::atomic< bool > & | get_has_failed_once () |
| std::function< void()> & | get_function_execute_before () |
| std::function< void()> & | get_function_execute_after () |
| void | set_function_execute_before (std::function< void()> f) |
| void | set_function_execute_after (std::function< void()> f) |
| void | set_has_failed_once (bool has_failed_once) |
| void | add_test (const std::string &name, test_function test) |
| std::optional< valfuzz::test_pair > | pop_test_or_null () |
| void | run_one_test (const std::string &name) |
| void | _run_tests () |
| void | run_tests () |
| std::atomic< bool > & | get_header () |
| std::atomic< bool > & | get_do_fuzzing () |
| std::optional< std::string > & | get_test_one () |
| std::optional< std::string > & | get_fuzz_one () |
| void | set_multithreaded (bool is_threaded) |
| void | set_max_num_threads (long unsigned int max_num_threads) |
| void | set_verbose (bool verbose) |
| void | set_header (bool header) |
| void | set_do_fuzzing (bool do_fuzzing) |
| void | set_test_one (const std::string &test_one) |
| void | set_fuzz_one (const std::string &fuzz_one) |
| void | parse_args (int argc, char *argv[]) |
| void | print_header () |
| int | main (int argc, char **argv) |
| template<> | |
| __attribute__ ((noinline)) int get_random< int >() | |
| template<> | |
| float | get_random< float > () |
| template<> | |
| double | get_random< double > () |
| template<> | |
| char | get_random< char > () |
| template<> | |
| bool | get_random< bool > () |
| template<> | |
| std::string | get_random< std::string > () |
| ADD_REPORTER (default_reporter) | |
| ADD_REPORTER (csv_reporter) | |
| ADD_REPORTER (none_reporter) | |
| std::atomic< long unsigned int > & | get_seed () |
| void | set_seed (long unsigned int new_seed) |
Variables | |
| reporter_engine | reporter_eg |
| char | valfuzz_banner [] |
| typedef std::function<void(std::string)> valfuzz::benchmark_function |
Definition at line 98 of file benchmark.hpp.
| typedef std::pair<std::string, benchmark_function> valfuzz::benchmark_pair |
Definition at line 99 of file benchmark.hpp.
| typedef std::function<void(std::string)> valfuzz::fuzz_function |
| typedef std::pair<std::string, fuzz_function> valfuzz::fuzz_pair |
| typedef std::function<void(std::string)> valfuzz::test_function |
Definition at line 18 of file common.hpp.
| typedef std::pair<std::string, test_function> valfuzz::test_pair |
Definition at line 19 of file common.hpp.
| void valfuzz::add_benchmark | ( | const std::string & | name, |
| benchmark_function | benchmark ) |
Definition at line 132 of file benchmark.cpp.
| void valfuzz::add_fuzz_test | ( | const std::string & | name, |
| fuzz_function | test ) |
| valfuzz::ADD_REPORTER | ( | csv_reporter | ) |
| valfuzz::ADD_REPORTER | ( | default_reporter | ) |
| valfuzz::ADD_REPORTER | ( | none_reporter | ) |
| void valfuzz::add_test | ( | const std::string & | name, |
| test_function | test ) |
| std::deque< benchmark_pair > & valfuzz::get_benchmarks | ( | ) |
Definition at line 71 of file benchmark.cpp.
| unsigned long valfuzz::get_cache_l3_size | ( | ) |
Definition at line 56 of file benchmark.cpp.
| bool & valfuzz::get_do_benchmarks | ( | ) |
Definition at line 62 of file benchmark.cpp.
| std::atomic< bool > & valfuzz::get_do_fuzzing | ( | ) |
Definition at line 22 of file valfuzz.cpp.
| std::function< void()> & valfuzz::get_function_execute_after | ( | ) |
| std::function< void()> & valfuzz::get_function_execute_before | ( | ) |
| std::optional< std::string > & valfuzz::get_fuzz_one | ( | ) |
Definition at line 42 of file valfuzz.cpp.
| std::atomic< bool > & valfuzz::get_header | ( | ) |
Definition at line 12 of file valfuzz.cpp.
| std::atomic< bool > & valfuzz::get_is_threaded | ( | ) |
Definition at line 49 of file common.cpp.
| std::atomic< long unsigned int > & valfuzz::get_iterations | ( | ) |
| std::atomic< long unsigned int > & valfuzz::get_max_num_threads | ( | ) |
Definition at line 30 of file common.cpp.
| unsigned long valfuzz::get_num_benchmarks | ( | ) |
Definition at line 86 of file benchmark.cpp.
| int & valfuzz::get_num_iterations_benchmark | ( | ) |
Definition at line 77 of file benchmark.cpp.
| std::string & valfuzz::get_one_benchmark | ( | ) |
Definition at line 101 of file benchmark.cpp.
| T valfuzz::get_random | ( | ) |
| bool valfuzz::get_random< bool > | ( | ) |
| char valfuzz::get_random< char > | ( | ) |
| double valfuzz::get_random< double > | ( | ) |
| float valfuzz::get_random< float > | ( | ) |
| std::string valfuzz::get_random< std::string > | ( | ) |
| std::string & valfuzz::get_reporter | ( | ) |
Definition at line 20 of file reporter.cpp.
| bool & valfuzz::get_run_one_benchmark | ( | ) |
Definition at line 92 of file benchmark.cpp.
| std::ofstream & valfuzz::get_save_file | ( | ) |
Definition at line 107 of file benchmark.cpp.
| std::atomic< bool > & valfuzz::get_save_to_file | ( | ) |
Definition at line 11 of file benchmark.cpp.
| std::atomic< long unsigned int > & valfuzz::get_seed | ( | ) |
Definition at line 52 of file valfuzz.cpp.
| std::mutex & valfuzz::get_stream_mutex | ( | ) |
Definition at line 11 of file common.cpp.
| std::mutex & valfuzz::get_test_mutex | ( | ) |
| std::optional< std::string > & valfuzz::get_test_one | ( | ) |
Definition at line 32 of file valfuzz.cpp.
| std::deque< valfuzz::test_pair > & valfuzz::get_tests | ( | ) |
| std::mutex & valfuzz::get_tests_mutex | ( | ) |
Definition at line 40 of file common.cpp.
| std::vector< std::thread > & valfuzz::get_thread_pool | ( | ) |
Definition at line 59 of file common.cpp.
| std::uniform_real_distribution & valfuzz::get_uniform_distribution | ( | ) |
| std::atomic< bool > & valfuzz::get_verbose | ( | ) |
Definition at line 20 of file common.cpp.
| int valfuzz::main | ( | int | argc, |
| char ** | argv ) |
Definition at line 316 of file valfuzz.cpp.
| void valfuzz::parse_args | ( | int | argc, |
| char * | argv[] ) |
Definition at line 135 of file valfuzz.cpp.
| std::optional< valfuzz::test_pair > valfuzz::pop_test_or_null | ( | ) |
| void valfuzz::print_header | ( | ) |
Definition at line 115 of file valfuzz.cpp.
| void valfuzz::run_benchmarks | ( | ) |
Definition at line 162 of file benchmark.cpp.
| void valfuzz::set_do_benchmarks | ( | bool | do_benchmarks | ) |
Definition at line 138 of file benchmark.cpp.
| void valfuzz::set_do_fuzzing | ( | bool | do_fuzzing | ) |
Definition at line 83 of file valfuzz.cpp.
| void valfuzz::set_function_execute_after | ( | std::function< void()> | f | ) |
| void valfuzz::set_function_execute_before | ( | std::function< void()> | f | ) |
| void valfuzz::set_fuzz_one | ( | const std::string & | fuzz_one | ) |
Definition at line 95 of file valfuzz.cpp.
| void valfuzz::set_header | ( | bool | header | ) |
Definition at line 77 of file valfuzz.cpp.
| void valfuzz::set_max_num_threads | ( | long unsigned int | max_num_threads | ) |
Definition at line 65 of file valfuzz.cpp.
| void valfuzz::set_multithreaded | ( | bool | is_threaded | ) |
Definition at line 59 of file valfuzz.cpp.
| void valfuzz::set_num_iterations_benchmark | ( | int | num_iterations_benchmark | ) |
Definition at line 144 of file benchmark.cpp.
| void valfuzz::set_one_benchmark | ( | const std::string & | one_benchmark | ) |
Definition at line 156 of file benchmark.cpp.
| void valfuzz::set_reporter | ( | std::string | rep | ) |
Definition at line 26 of file reporter.cpp.
| void valfuzz::set_run_one_benchmark | ( | bool | run_one_benchmark | ) |
Definition at line 150 of file benchmark.cpp.
| void valfuzz::set_save_file | ( | const std::filesystem::path & | save_to_file_path | ) |
Definition at line 119 of file benchmark.cpp.
| void valfuzz::set_save_to_file | ( | bool | save_to_file | ) |
Definition at line 113 of file benchmark.cpp.
| void valfuzz::set_seed | ( | long unsigned int | new_seed | ) |
Definition at line 101 of file valfuzz.cpp.
| void valfuzz::set_test_one | ( | const std::string & | test_one | ) |
Definition at line 89 of file valfuzz.cpp.
| void valfuzz::set_verbose | ( | bool | verbose | ) |
Definition at line 71 of file valfuzz.cpp.
| reporter_engine valfuzz::reporter_eg |
Global reporter engine
Definition at line 10 of file reporter.cpp.
| char valfuzz::valfuzz_banner[] |
Definition at line 107 of file valfuzz.cpp.