diff --git a/benchmark-sets/c-specific/bind9.yaml b/benchmark-sets/c-specific/bind9.yaml new file mode 100644 index 0000000000..8a062f73ff --- /dev/null +++ b/benchmark-sets/c-specific/bind9.yaml @@ -0,0 +1,299 @@ +"functions": +- "name": "dns_view_freezezones" + "params": + - "name": "view" + "type": "bool " + - "name": "value" + "type": "bool" + "return_type": "int" + "signature": "isc_result_t dns_view_freezezones(dns_view_t *, bool)" +- "name": "dns_zt_freezezones" + "params": + - "name": "zt" + "type": "bool " + - "name": "view" + "type": "bool " + - "name": "freeze" + "type": "bool" + "return_type": "int" + "signature": "isc_result_t dns_zt_freezezones(dns_zt_t *, dns_view_t *, bool)" +- "name": "dns_view_asyncload" + "params": + - "name": "view" + "type": "bool " + - "name": "newonly" + "type": "bool" + - "name": "callback" + "type": "bool " + - "name": "arg" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_view_asyncload(dns_view_t *, bool, dns_zt_callback_t *, void *)" +- "name": "dns_zt_asyncload" + "params": + - "name": "zt" + "type": "bool " + - "name": "newonly" + "type": "bool" + - "name": "loaddone" + "type": "bool " + - "name": "arg" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_zt_asyncload(dns_zt_t *, bool, dns_zt_callback_t *, void *)" +- "name": "dns_zone_asyncload" + "params": + - "name": "zone" + "type": "bool " + - "name": "newonly" + "type": "bool" + - "name": "done" + "type": "bool " + - "name": "arg" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_zone_asyncload(dns_zone_t *, bool, dns_zt_callback_t *, void *)" +- "name": "dns_view_load" + "params": + - "name": "view" + "type": "bool " + - "name": "stop" + "type": "bool" + - "name": "newonly" + "type": "bool" + "return_type": "int" + "signature": "isc_result_t dns_view_load(dns_view_t *, bool, bool)" +- "name": "load" + "params": + - "name": "zone" + "type": "bool " + - "name": "uap" + "type": "bool " + "return_type": "int" + "signature": "void load(void *)" +- "name": "dns_zone_loadandthaw" + "params": + - "name": "zone" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_zone_loadandthaw(dns_zone_t *)" +- "name": "dns_zt_load" + "params": + - "name": "zt" + "type": "bool " + - "name": "stop" + "type": "bool" + - "name": "newonly" + "type": "bool" + "return_type": "int" + "signature": "isc_result_t dns_zt_load(dns_zt_t *, bool, bool)" +- "name": "dns_master_loadfileasync" + "params": + - "name": "master_file" + "type": "bool " + - "name": "top" + "type": "bool " + - "name": "origin" + "type": "bool " + - "name": "zclass" + "type": "short" + - "name": "options" + "type": "int" + - "name": "resign" + "type": "int" + - "name": "callbacks" + "type": "bool " + - "name": "loop" + "type": "bool " + - "name": "done" + "type": "bool " + - "name": "done_arg" + "type": "bool " + - "name": "lctxp" + "type": "bool " + - "name": "include_cb" + "type": "bool " + - "name": "include_arg" + "type": "bool " + - "name": "mctx" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "maxttl" + "type": "int" + "return_type": "int" + "signature": "isc_result_t dns_master_loadfileasync(const char *, dns_name_t *, dns_name_t *, dns_rdataclass_t, unsigned int, uint32_t, dns_rdatacallbacks_t *, isc_loop_t *, dns_loaddonefunc_t, void *, dns_loadctx_t **, dns_masterincludecb_t, void *, isc_mem_t *, dns_masterformat_t, uint32_t)" +- "name": "dns_dlz_writeablezone" + "params": + - "name": "view" + "type": "bool " + - "name": "dlzdb" + "type": "bool " + - "name": "zone_name" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_dlz_writeablezone(dns_view_t *, dns_dlzdb_t *, const char *)" +- "name": "dns_zone_synckeyzone" + "params": + - "name": "zone" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_zone_synckeyzone(dns_zone_t *)" +- "name": "dns_zone_notifyreceive" + "params": + - "name": "zone" + "type": "bool " + - "name": "from" + "type": "bool " + - "name": "to" + "type": "bool " + - "name": "msg" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_zone_notifyreceive(dns_zone_t *, isc_sockaddr_t *, isc_sockaddr_t *, dns_message_t *)" +- "name": "dns_view_loadnta" + "params": + - "name": "view" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_view_loadnta(dns_view_t *)" +- "name": "dns_zone_forwardupdate" + "params": + - "name": "zone" + "type": "bool " + - "name": "msg" + "type": "bool " + - "name": "callback" + "type": "bool " + - "name": "callback_arg" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dns_zone_forwardupdate(dns_zone_t *, dns_message_t *, dns_updatecallback_t, void *)" +- "name": "isc_time_parsehttptimestamp" + "params": + - "name": "buf" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t isc_time_parsehttptimestamp(char *, isc_time_t *)" +- "name": "hmacsha512_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "lexer" + "type": "bool " + - "name": "pub" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__hmacsha512_init(dst_func_t **)" +- "name": "hmacsha384_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "lexer" + "type": "bool " + - "name": "pub" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__hmacsha384_init(dst_func_t **)" +- "name": "hmacsha256_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "lexer" + "type": "bool " + - "name": "pub" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__hmacsha256_init(dst_func_t **)" +- "name": "hmacsha224_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "lexer" + "type": "bool " + - "name": "pub" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__hmacsha224_init(dst_func_t **)" +- "name": "hmacsha1_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "lexer" + "type": "bool " + - "name": "pub" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__hmacsha1_init(dst_func_t **)" +- "name": "hmacmd5_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "lexer" + "type": "bool " + - "name": "pub" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__hmacmd5_init(dst_func_t **)" +- "name": "dns_zone_getrequesttransporttype" + "params": + - "name": "zone" + "type": "bool " + "return_type": "int" + "signature": "dns_transport_type_t dns_zone_getrequesttransporttype(dns_zone_t *)" +- "name": "dst__privstruct_parse" + "params": + - "name": "key" + "type": "bool " + - "name": "alg" + "type": "int" + - "name": "lex" + "type": "bool " + - "name": "mctx" + "type": "bool " + - "name": "priv" + "type": "bool " + "return_type": "int" + "signature": "isc_result_t dst__privstruct_parse(dst_key_t *, unsigned int, isc_lex_t *, isc_mem_t *, dst_private_t *)" +- "name": "dns_request_unref" + "params": + - "name": "ptr" + "type": "bool " + "return_type": "void" + "signature": "void dns_request_detach(dns_request_t **)" +- "name": "dns_requestmgr_detach" + "params": + - "name": "ptrp" + "type": "bool " + "return_type": "void" + "signature": "dns_requestmgr_t * dns_requestmgr_ref(dns_requestmgr_t *)" +- "name": "dns_requestmgr_unref" + "params": + - "name": "ptr" + "type": "bool " + "return_type": "void" + "signature": "dns_requestmgr_t * dns_requestmgr_ref(dns_requestmgr_t *)" +- "name": "dns_request_destroy" + "params": + - "name": "requestp" + "type": "bool " + "return_type": "void" + "signature": "void dns_request_destroy(dns_request_t **)" +- "name": "dns_request_cancel" + "params": + - "name": "request" + "type": "bool " + "return_type": "void" + "signature": "void dns_request_cancel(dns_request_t *)" +- "name": "dns_request_detach" + "params": + - "name": "ptrp" + "type": "bool " + "return_type": "void" + "signature": "void dns_request_detach(dns_request_t **)" +"language": "c" +"project": "bind9" +"target_name": "dns_rdata_fromwire_text_fuzzer" +"target_path": "/src/bind9/fuzz/dns_rdata_fromwire_text.c" diff --git a/benchmark-sets/c-specific/clib.yaml b/benchmark-sets/c-specific/clib.yaml new file mode 100644 index 0000000000..b34b138a64 --- /dev/null +++ b/benchmark-sets/c-specific/clib.yaml @@ -0,0 +1,235 @@ +"functions": +- "name": "clib_package_install" + "params": + - "name": "pkg" + "type": "bool " + - "name": "dir" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "int" + "signature": "int clib_package_install(clib_package_t *, const char *, int)" +- "name": "clib_package_install_executable" + "params": + - "name": "pkg" + "type": "bool " + - "name": "dir" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "int" + "signature": "int clib_package_install_executable(clib_package_t *, const char *, int)" +- "name": "install_packages" + "params": + - "name": "list" + "type": "bool " + - "name": "dir" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "int" + "signature": "int install_packages(list_t *, const char *, int)" +- "name": "clib_package_install_development" + "params": + - "name": "pkg" + "type": "bool " + - "name": "dir" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "int" + "signature": "int clib_package_install_development(clib_package_t *, const char *, int)" +- "name": "clib_package_install_dependencies" + "params": + - "name": "pkg" + "type": "bool " + - "name": "dir" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "int" + "signature": "int clib_package_install_dependencies(clib_package_t *, const char *, int)" +- "name": "main2" + "params": + - "name": "argc" + "type": "int" + - "name": "argv" + "type": "bool " + "return_type": "int" + "signature": "int main2(int, char **)" +- "name": "configure_package_with_manifest_name" + "params": + - "name": "dir" + "type": "bool " + - "name": "file" + "type": "bool " + "return_type": "int" + "signature": "int configure_package_with_manifest_name(const char *, const char *)" +- "name": "configure_package" + "params": + - "name": "dir" + "type": "bool " + "return_type": "int" + "signature": "int configure_package(const char *)" +- "name": "configure_package_with_manifest_name_thread" + "params": + - "name": "arg" + "type": "bool " + "return_type": "void" + "signature": "void * configure_package_with_manifest_name_thread(void *)" +- "name": "clib_package_new_from_slug" + "params": + - "name": "slug" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "void" + "signature": "clib_package_t * clib_package_new_from_slug(const char *, int)" +- "name": "clib_package_load_local_manifest" + "params": + - "name": "verbose" + "type": "int" + "return_type": "void" + "signature": "clib_package_t * clib_package_load_local_manifest(int)" +- "name": "json_parse_file_with_comments" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_file_with_comments(const char *)" +- "name": "json_parse_file" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_file(const char *)" +- "name": "json_parse_string_with_comments" + "params": + - "name": "string" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_string_with_comments(const char *)" +- "name": "fetch_package_file_thread" + "params": + - "name": "arg" + "type": "bool " + "return_type": "void" + "signature": "void * fetch_package_file_thread(void *)" +- "name": "clib_cache_read_json" + "params": + - "name": "author" + "type": "bool " + - "name": "name" + "type": "bool " + - "name": "version" + "type": "bool " + "return_type": "void" + "signature": "char * clib_cache_read_json(char *, char *, char *)" +- "name": "clib_package_parse_version" + "params": + - "name": "slug" + "type": "bool " + "return_type": "void" + "signature": "char * clib_package_parse_version(const char *)" +- "name": "parse_repo_version" + "params": + - "name": "slug" + "type": "bool " + - "name": "fallback" + "type": "bool " + "return_type": "void" + "signature": "char * parse_repo_version(const char *, const char *)" +- "name": "command_parse" + "params": + - "name": "self" + "type": "bool " + - "name": "argc" + "type": "int" + - "name": "argv" + "type": "bool " + "return_type": "void" + "signature": "void command_parse(command_t *, int, char **)" +- "name": "parse_array_value" + "params": + - "name": "string" + "type": "bool " + - "name": "nesting" + "type": "size_t" + "return_type": "void" + "signature": "JSON_Value * parse_array_value(const char **, size_t)" +- "name": "json_parse_string_with_comments" + "params": + - "name": "string" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_string_with_comments(const char *)" +- "name": "json_parse_file_with_comments" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_file_with_comments(const char *)" +- "name": "json_parse_file" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_file(const char *)" +- "name": "configure_package" + "params": + - "name": "dir" + "type": "bool " + "return_type": "int" + "signature": "int configure_package(const char *)" +- "name": "clib_package_new_from_slug" + "params": + - "name": "slug" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "void" + "signature": "clib_package_t * clib_package_new_from_slug(const char *, int)" +- "name": "clib_package_new" + "params": + - "name": "json" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "void" + "signature": "clib_package_t * clib_package_new(const char *, int)" +- "name": "clib_package_load_from_manifest" + "params": + - "name": "manifest" + "type": "bool " + - "name": "verbose" + "type": "int" + "return_type": "void" + "signature": "clib_package_t * clib_package_load_from_manifest(const char *, int)" +- "name": "json_parse_string_with_comments" + "params": + - "name": "string" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_string_with_comments(const char *)" +- "name": "json_parse_file_with_comments" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_file_with_comments(const char *)" +- "name": "json_parse_string" + "params": + - "name": "string" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_string(const char *)" +- "name": "json_parse_file" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "JSON_Value * json_parse_file(const char *)" +"language": "c" +"project": "clib" +"target_name": "fuzz_manifest" +"target_path": "/src/clib/test/fuzzing/fuzz_manifest.c" diff --git a/benchmark-sets/c-specific/croaring.yaml b/benchmark-sets/c-specific/croaring.yaml new file mode 100644 index 0000000000..0fc5192fc2 --- /dev/null +++ b/benchmark-sets/c-specific/croaring.yaml @@ -0,0 +1,159 @@ +"functions": +- "name": "roaring_bitmap_add_offset" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_add_offset(const roaring_bitmap_t *, int64_t)" +- "name": "roaring_bitmap_xor_many" + "params": + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_xor_many(size_t, const roaring_bitmap_t **)" +- "name": "roaring_bitmap_or_many" + "params": + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_or_many(size_t, const roaring_bitmap_t **)" +- "name": "roaring_bitmap_lazy_xor_inplace" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "void roaring_bitmap_lazy_xor_inplace(roaring_bitmap_t *, const roaring_bitmap_t *)" +- "name": "roaring_bitmap_lazy_or" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_lazy_or(const roaring_bitmap_t *, const roaring_bitmap_t *, const _Bool)" +- "name": "roaring_bitmap_lazy_or_inplace" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool" + "return_type": "void" + "signature": "void roaring_bitmap_lazy_or_inplace(roaring_bitmap_t *, const roaring_bitmap_t *, const _Bool)" +- "name": "roaring_bitmap_lazy_xor" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_lazy_xor(const roaring_bitmap_t *, const roaring_bitmap_t *)" +- "name": "roaring_bitmap_flip" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "size_t" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_flip(const roaring_bitmap_t *, uint64_t, uint64_t)" +- "name": "roaring_bitmap_deserialize_safe" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_deserialize_safe(const void *, size_t)" +- "name": "roaring_bitmap_deserialize" + "params": + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_deserialize(const void *)" +- "name": "roaring_bitmap_from_range" + "params": + - "name": "" + "type": "size_t" + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_from_range(uint64_t, uint64_t, uint32_t)" +- "name": "roaring_bitmap_of" + "params": + - "name": "" + "type": "size_t" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_of(size_t, void)" +- "name": "roaring_bitmap_of_ptr" + "params": + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_of_ptr(size_t, const uint32_t *)" +- "name": "roaring_bitmap_add_bulk" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "void" + "signature": "void roaring_bitmap_add_bulk(roaring_bitmap_t *, roaring_bulk_context_t *, uint32_t)" +- "name": "roaring_bitmap_remove_many" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "void roaring_bitmap_remove_many(roaring_bitmap_t *, size_t, const uint32_t *)" +- "name": "roaring_bitmap_deserialize_safe" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_deserialize_safe(const void *, size_t)" +- "name": "roaring_bitmap_deserialize" + "params": + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_deserialize(const void *)" +- "name": "roaring_bitmap_portable_deserialize" + "params": + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_portable_deserialize(const char *)" +- "name": "roaring_bitmap_portable_deserialize" + "params": + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "roaring_bitmap_t * roaring_bitmap_portable_deserialize(const char *)" +"language": "c" +"project": "croaring" +"target_name": "croaring_fuzzer" +"target_path": "/src/croaring_fuzzer.c" diff --git a/benchmark-sets/c-specific/htslib.yaml b/benchmark-sets/c-specific/htslib.yaml new file mode 100644 index 0000000000..d6f6de03f3 --- /dev/null +++ b/benchmark-sets/c-specific/htslib.yaml @@ -0,0 +1,401 @@ +"functions": +- "name": "bam_index_build" + "params": + - "name": "fn" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int bam_index_build(const char *, int)" +- "name": "sam_index_build2" + "params": + - "name": "fn" + "type": "bool " + - "name": "fnidx" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int sam_index_build2(const char *, const char *, int)" +- "name": "sam_index_build" + "params": + - "name": "fn" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int sam_index_build(const char *, int)" +- "name": "sam_index_build3" + "params": + - "name": "fn" + "type": "bool " + - "name": "fnidx" + "type": "bool " + - "name": "min_shift" + "type": "int" + - "name": "nthreads" + "type": "int" + "return_type": "int" + "signature": "int sam_index_build3(const char *, const char *, int, int)" +- "name": "bcf_index_build" + "params": + - "name": "fn" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int bcf_index_build(const char *, int)" +- "name": "bcf_index_build2" + "params": + - "name": "fn" + "type": "bool " + - "name": "fnidx" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int bcf_index_build2(const char *, const char *, int)" +- "name": "bcf_index_build3" + "params": + - "name": "fn" + "type": "bool " + - "name": "fnidx" + "type": "bool " + - "name": "min_shift" + "type": "int" + - "name": "n_threads" + "type": "int" + "return_type": "int" + "signature": "int bcf_index_build3(const char *, const char *, int, int)" +- "name": "hts_flush" + "params": + - "name": "fp" + "type": "bool " + "return_type": "int" + "signature": "int hts_flush(htsFile *)" +- "name": "cram_flush" + "params": + - "name": "fd" + "type": "bool " + "return_type": "int" + "signature": "int cram_flush(cram_fd *)" +- "name": "sam_itr_regarray" + "params": + - "name": "idx" + "type": "bool " + - "name": "hdr" + "type": "bool " + - "name": "regarray" + "type": "bool " + - "name": "regcount" + "type": "int" + "return_type": "void" + "signature": "hts_itr_t * sam_itr_regarray(const hts_idx_t *, sam_hdr_t *, char **, unsigned int)" +- "name": "sam_itr_queryi" + "params": + - "name": "idx" + "type": "bool " + - "name": "tid" + "type": "int" + - "name": "beg" + "type": "size_t" + - "name": "end" + "type": "size_t" + "return_type": "void" + "signature": "hts_itr_t * sam_itr_queryi(const hts_idx_t *, int, hts_pos_t, hts_pos_t)" +- "name": "sam_itr_regions" + "params": + - "name": "idx" + "type": "bool " + - "name": "hdr" + "type": "bool " + - "name": "reglist" + "type": "bool " + - "name": "regcount" + "type": "int" + "return_type": "void" + "signature": "hts_itr_t * sam_itr_regions(const hts_idx_t *, sam_hdr_t *, hts_reglist_t *, unsigned int)" +- "name": "sam_itr_querys" + "params": + - "name": "idx" + "type": "bool " + - "name": "hdr" + "type": "bool " + - "name": "region" + "type": "bool " + "return_type": "void" + "signature": "hts_itr_t * sam_itr_querys(const hts_idx_t *, sam_hdr_t *, const char *)" +- "name": "cram_index_build" + "params": + - "name": "fd" + "type": "bool " + - "name": "fn_base" + "type": "bool " + - "name": "fn_idx" + "type": "bool " + "return_type": "int" + "signature": "int cram_index_build(cram_fd *, const char *, const char *)" +- "name": "bcf_index" + "params": + - "name": "fp" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "void" + "signature": "hts_idx_t * bcf_index(htsFile *, int)" +- "name": "hts_parse_region" + "params": + - "name": "s" + "type": "bool " + - "name": "tid" + "type": "bool " + - "name": "beg" + "type": "bool " + - "name": "end" + "type": "bool " + - "name": "getid" + "type": "bool " + - "name": "hdr" + "type": "bool " + - "name": "flags" + "type": "int" + "return_type": "void" + "signature": "const char * hts_parse_region(const char *, int *, hts_pos_t *, hts_pos_t *, hts_name2id_f, void *, int)" +- "name": "hts_parse_decimal" + "params": + - "name": "str" + "type": "bool " + - "name": "strend" + "type": "bool " + - "name": "flags" + "type": "int" + "return_type": "size_t" + "signature": "long long hts_parse_decimal(const char *, char **, int)" +- "name": "hts_parse_reg" + "params": + - "name": "s" + "type": "bool " + - "name": "beg" + "type": "bool " + - "name": "end" + "type": "bool " + "return_type": "void" + "signature": "const char * hts_parse_reg(const char *, int *, int *)" +- "name": "hts_parse_reg64" + "params": + - "name": "s" + "type": "bool " + - "name": "beg" + "type": "bool " + - "name": "end" + "type": "bool " + "return_type": "void" + "signature": "const char * hts_parse_reg64(const char *, hts_pos_t *, hts_pos_t *)" +- "name": "hts_parse_opt_list" + "params": + - "name": "fmt" + "type": "bool " + - "name": "str" + "type": "bool " + "return_type": "int" + "signature": "int hts_parse_opt_list(htsFormat *, const char *)" +- "name": "hts_parse_format" + "params": + - "name": "format" + "type": "bool " + - "name": "str" + "type": "bool " + "return_type": "int" + "signature": "int hts_parse_format(htsFormat *, const char *)" +- "name": "sam_parse_worker" + "params": + - "name": "arg" + "type": "bool " + "return_type": "void" + "signature": "void * sam_parse_worker(void *)" +- "name": "sam_parse_cigar" + "params": + - "name": "in" + "type": "bool " + - "name": "end" + "type": "bool " + - "name": "a_cigar" + "type": "bool " + - "name": "a_mem" + "type": "bool " + "return_type": "size_t" + "signature": "ssize_t sam_parse_cigar(const char *, char **, uint32_t **, size_t *)" +- "name": "sam_hdr_parse" + "params": + - "name": "l_text" + "type": "size_t" + - "name": "text" + "type": "bool " + "return_type": "void" + "signature": "sam_hdr_t * sam_hdr_parse(size_t, const char *)" +- "name": "sam_parse_region" + "params": + - "name": "h" + "type": "bool " + - "name": "s" + "type": "bool " + - "name": "tid" + "type": "bool " + - "name": "beg" + "type": "bool " + - "name": "end" + "type": "bool " + - "name": "flags" + "type": "int" + "return_type": "void" + "signature": "const char * sam_parse_region(sam_hdr_t *, const char *, int *, hts_pos_t *, hts_pos_t *, int)" +- "name": "bam_parse_basemod" + "params": + - "name": "b" + "type": "bool " + - "name": "state" + "type": "bool " + "return_type": "int" + "signature": "int bam_parse_basemod(const bam1_t *, hts_base_mod_state *)" +- "name": "bam_parse_basemod2" + "params": + - "name": "b" + "type": "bool " + - "name": "state" + "type": "bool " + - "name": "flags" + "type": "int" + "return_type": "int" + "signature": "int bam_parse_basemod2(const bam1_t *, hts_base_mod_state *, uint32_t)" +- "name": "cram_compress_slice" + "params": + - "name": "fd" + "type": "bool " + - "name": "c" + "type": "bool " + - "name": "s" + "type": "bool " + "return_type": "int" + "signature": "int cram_compress_slice(cram_fd *, cram_container *, cram_slice *)" +- "name": "cram_read_file_def" + "params": + - "name": "fd" + "type": "bool " + "return_type": "void" + "signature": "cram_file_def * cram_read_file_def(cram_fd *)" +- "name": "arith_uncompress" + "params": + - "name": "in" + "type": "bool " + - "name": "in_size" + "type": "int" + - "name": "out_size" + "type": "bool " + "return_type": "void" + "signature": "unsigned char * arith_uncompress(unsigned char *, unsigned int, unsigned int *)" +- "name": "is_preload_url_remote" + "params": + - "name": "url" + "type": "bool " + "return_type": "int" + "signature": "int is_preload_url_remote(const char *)" +- "name": "hisremote" + "params": + - "name": "fname" + "type": "bool " + "return_type": "int" + "signature": "int hisremote(const char *)" +- "name": "hfile_has_plugin" + "params": + - "name": "name" + "type": "bool " + "return_type": "int" + "signature": "int hfile_has_plugin(const char *)" +- "name": "hfile_list_plugins" + "params": + - "name": "plist" + "type": "bool " + - "name": "nplugins" + "type": "bool " + "return_type": "int" + "signature": "int hfile_list_plugins(const char **, int *)" +- "name": "hts_idx_load" + "params": + - "name": "fn" + "type": "bool " + - "name": "fmt" + "type": "int" + "return_type": "void" + "signature": "hts_idx_t * hts_idx_load(const char *, int)" +- "name": "hts_file_type" + "params": + - "name": "fname" + "type": "bool " + "return_type": "int" + "signature": "int hts_file_type(const char *)" +- "name": "hts_readlines" + "params": + - "name": "fn" + "type": "bool " + - "name": "_n" + "type": "bool " + "return_type": "void" + "signature": "char ** hts_readlines(const char *, int *)" +- "name": "bam_index_build" + "params": + - "name": "fn" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int bam_index_build(const char *, int)" +- "name": "sam_index_build" + "params": + - "name": "fn" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int sam_index_build(const char *, int)" +- "name": "bcf_hdr_init" + "params": + - "name": "mode" + "type": "bool " + "return_type": "void" + "signature": "bcf_hdr_t * bcf_hdr_init(const char *)" +- "name": "bcf_index_build" + "params": + - "name": "fn" + "type": "bool " + - "name": "min_shift" + "type": "int" + "return_type": "int" + "signature": "int bcf_index_build(const char *, int)" +- "name": "bgzf_is_bgzf" + "params": + - "name": "fn" + "type": "bool " + "return_type": "int" + "signature": "int bgzf_is_bgzf(const char *)" +- "name": "fai_path" + "params": + - "name": "fa" + "type": "bool " + "return_type": "void" + "signature": "char * fai_path(const char *)" +- "name": "fai_load" + "params": + - "name": "fn" + "type": "bool " + "return_type": "void" + "signature": "faidx_t * fai_load(const char *)" +- "name": "fai_build" + "params": + - "name": "fn" + "type": "bool " + "return_type": "int" + "signature": "int fai_build(const char *)" +"language": "c++" +"project": "htslib" +"target_name": "hts_open_fuzzer" +"target_path": "/src/htslib/test/fuzz/hts_open_fuzzer.c" diff --git a/benchmark-sets/c-specific/kamailio.yaml b/benchmark-sets/c-specific/kamailio.yaml new file mode 100644 index 0000000000..278cc88e1e --- /dev/null +++ b/benchmark-sets/c-specific/kamailio.yaml @@ -0,0 +1,303 @@ +"functions": +- "name": "main2" + "params": + - "name": "argc" + "type": "int" + - "name": "argv" + "type": "bool " + "return_type": "int" + "signature": "int main2(int, char **)" +- "name": "tcp_init_children" + "params": + - "name": "woneinit" + "type": "bool " + "return_type": "int" + "signature": "int tcp_init_children(int *)" +- "name": "fix_actions" + "params": + - "name": "a" + "type": "bool " + "return_type": "int" + "signature": "int fix_actions(struct action *)" +- "name": "tcp_receive_loop" + "params": + - "name": "unix_sock" + "type": "int" + "return_type": "void" + "signature": "void tcp_receive_loop(int)" +- "name": "fix_switch" + "params": + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int fix_switch(struct action *)" +- "name": "handle_io" + "params": + - "name": "fm" + "type": "bool " + - "name": "events" + "type": "short" + - "name": "idx" + "type": "int" + "return_type": "int" + "signature": "int handle_io(struct fd_map *, short, int)" +- "name": "fix_expr" + "params": + - "name": "exp" + "type": "bool " + "return_type": "int" + "signature": "int fix_expr(struct expr *)" +- "name": "fix_rval_expr" + "params": + - "name": "p" + "type": "bool " + "return_type": "int" + "signature": "int fix_rval_expr(void *)" +- "name": "add_actions" + "params": + - "name": "a" + "type": "bool " + - "name": "head" + "type": "bool " + "return_type": "int" + "signature": "int add_actions(struct action *, struct action **)" +- "name": "tcp_read_req" + "params": + - "name": "con" + "type": "bool " + - "name": "bytes_read" + "type": "bool " + - "name": "read_flags" + "type": "bool " + "return_type": "int" + "signature": "int tcp_read_req(struct tcp_connection *, int *, rd_conn_flags_t *)" +- "name": "parse_orig_ruri" + "params": + - "name": "msg" + "type": "bool " + "return_type": "int" + "signature": "int parse_orig_ruri(struct sip_msg *)" +- "name": "parse_sip_msg_uri" + "params": + - "name": "msg" + "type": "bool " + "return_type": "int" + "signature": "int parse_sip_msg_uri(struct sip_msg *)" +- "name": "parse_phostport" + "params": + - "name": "s" + "type": "bool " + - "name": "host" + "type": "bool " + - "name": "hlen" + "type": "bool " + - "name": "port" + "type": "bool " + - "name": "proto" + "type": "bool " + "return_type": "int" + "signature": "int parse_phostport(char *, char **, int *, int *, int *)" +- "name": "parse_accept_hdr" + "params": + - "name": "msg" + "type": "bool " + "return_type": "int" + "signature": "int parse_accept_hdr(const struct sip_msg *)" +- "name": "parse_accept_body" + "params": + - "name": "hdr" + "type": "bool " + "return_type": "int" + "signature": "int parse_accept_body(const struct hdr_field *)" +- "name": "parse_fline" + "params": + - "name": "buffer" + "type": "bool " + - "name": "end" + "type": "bool " + - "name": "fl" + "type": "bool " + "return_type": "void" + "signature": "char * parse_fline(char *, char *, struct msg_start *)" +- "name": "parse_hname2_str" + "params": + - "name": "hbuf" + "type": "bool " + - "name": "hdr" + "type": "bool " + "return_type": "void" + "signature": "char * parse_hname2_str(const str *, const hdr_field_t *)" +- "name": "parse_hname2_short" + "params": + - "name": "begin" + "type": "bool " + - "name": "end" + "type": "bool " + - "name": "hdr" + "type": "bool " + "return_type": "void" + "signature": "char * parse_hname2_short(const char *, const const char *, const struct hdr_field *)" +- "name": "parse_methods" + "params": + - "name": "_body" + "type": "bool " + - "name": "_methods" + "type": "bool " + "return_type": "int" + "signature": "int parse_methods(const const str *, const unsigned int *)" +- "name": "parse_via_oc" + "params": + - "name": "msg" + "type": "bool " + - "name": "vbp" + "type": "bool " + - "name": "ocp" + "type": "bool " + "return_type": "int" + "signature": "int parse_via_oc(struct sip_msg *, struct via_body *, via_oc_t *)" +- "name": "parse_via_header" + "params": + - "name": "msg" + "type": "bool " + - "name": "n" + "type": "int" + - "name": "q" + "type": "bool " + "return_type": "int" + "signature": "int parse_via_header(struct sip_msg *, int, struct via_body **)" +- "name": "parse_pvname_list" + "params": + - "name": "in" + "type": "bool " + - "name": "type" + "type": "int" + "return_type": "void" + "signature": "pvname_list_t * parse_pvname_list(str *, unsigned int)" +- "name": "pv_parse_spec2" + "params": + - "name": "in" + "type": "bool " + - "name": "e" + "type": "bool " + - "name": "silent" + "type": "int" + "return_type": "void" + "signature": "char * pv_parse_spec2(str *, pv_spec_p, int)" +- "name": "pv_parse_avp_name" + "params": + - "name": "sp" + "type": "bool " + - "name": "in" + "type": "bool " + "return_type": "int" + "signature": "int pv_parse_avp_name(pv_spec_p, str *)" +- "name": "pv_parse_format" + "params": + - "name": "in" + "type": "bool " + - "name": "el" + "type": "bool " + "return_type": "int" + "signature": "int pv_parse_format(str *, pv_elem_p *)" +- "name": "set_mod_param_serialized" + "params": + - "name": "mval" + "type": "bool " + "return_type": "int" + "signature": "int set_mod_param_serialized(char *)" +- "name": "pkg_init_manager" + "params": + - "name": "name" + "type": "bool " + "return_type": "int" + "signature": "int pkg_init_manager(char *)" +- "name": "pp_ifexp_eval" + "params": + - "name": "exval" + "type": "bool " + - "name": "exlen" + "type": "int" + "return_type": "void" + "signature": "void pp_ifexp_eval(char *, int)" +- "name": "pp_subst_run" + "params": + - "name": "data" + "type": "bool " + "return_type": "int" + "signature": "int pp_subst_run(char **)" +- "name": "pp_substdef_add" + "params": + - "name": "data" + "type": "bool " + - "name": "mode" + "type": "int" + "return_type": "int" + "signature": "int pp_substdef_add(char *, int)" +- "name": "pp_subst_add" + "params": + - "name": "data" + "type": "bool " + "return_type": "int" + "signature": "int pp_subst_add(char *)" +- "name": "sip_check_fline" + "params": + - "name": "buf" + "type": "bool " + - "name": "len" + "type": "int" + "return_type": "int" + "signature": "int sip_check_fline(char *, unsigned int)" +- "name": "__resolvehost" + "params": + - "name": "name" + "type": "bool " + "return_type": "void" + "signature": "struct hostent * __resolvehost(char *)" +- "name": "shm_init_manager" + "params": + - "name": "name" + "type": "bool " + "return_type": "int" + "signature": "int shm_init_manager(char *)" +- "name": "ipv6_get_netif_scope" + "params": + - "name": "ipval" + "type": "bool " + "return_type": "int" + "signature": "unsigned int ipv6_get_netif_scope(char *)" +- "name": "find_module_by_name" + "params": + - "name": "mod" + "type": "bool " + "return_type": "void" + "signature": "struct sr_module * find_module_by_name(char *)" +- "name": "register_avpflag" + "params": + - "name": "name" + "type": "bool " + "return_type": "int" + "signature": "unsigned int register_avpflag(char *)" +- "name": "add_avp_galias_str" + "params": + - "name": "alias_definition" + "type": "bool " + "return_type": "int" + "signature": "int add_avp_galias_str(char *)" +- "name": "async_task_set_workers_group" + "params": + - "name": "data" + "type": "bool " + "return_type": "int" + "signature": "int async_task_set_workers_group(char *)" +- "name": "cfg_new_ginst" + "params": + - "name": "group_name" + "type": "bool " + - "name": "group_id" + "type": "int" + "return_type": "int" + "signature": "int cfg_new_ginst(char *, unsigned int)" +"language": "c" +"project": "kamailio" +"target_name": "fuzz_uri" +"target_path": "/src/kamailio/misc/fuzz/fuzz_uri.c" diff --git a/benchmark-sets/c-specific/libiec61850.yaml b/benchmark-sets/c-specific/libiec61850.yaml new file mode 100644 index 0000000000..194354389d --- /dev/null +++ b/benchmark-sets/c-specific/libiec61850.yaml @@ -0,0 +1,113 @@ +"functions": +- "name": "MmsValue_encodeMmsData" + "params": + - "name": "self" + "type": "bool " + - "name": "buffer" + "type": "bool " + - "name": "bufPos" + "type": "int" + - "name": "encode" + "type": "bool" + "return_type": "int" + "signature": "int MmsValue_encodeMmsData(MmsValue *, uint8_t *, int, bool)" +- "name": "MmsValue_printToBuffer" + "params": + - "name": "self" + "type": "bool " + - "name": "buffer" + "type": "bool " + - "name": "bufferSize" + "type": "int" + "return_type": "void" + "signature": "const char * MmsValue_printToBuffer(const MmsValue *, char *, int)" +- "name": "MmsValue_newDefaultValue" + "params": + - "name": "typeSpec" + "type": "bool " + "return_type": "void" + "signature": "MmsValue * MmsValue_newDefaultValue(const MmsVariableSpecification *)" +- "name": "MmsValue_createArray" + "params": + - "name": "elementType" + "type": "bool " + - "name": "size" + "type": "int" + "return_type": "void" + "signature": "MmsValue * MmsValue_createArray(const MmsVariableSpecification *, int)" +- "name": "MmsValue_newStructure" + "params": + - "name": "typeSpec" + "type": "bool " + "return_type": "void" + "signature": "MmsValue * MmsValue_newStructure(const MmsVariableSpecification *)" +- "name": "MmsValue_update" + "params": + - "name": "self" + "type": "bool " + - "name": "update" + "type": "bool " + "return_type": "bool" + "signature": "bool MmsValue_update(MmsValue *, const MmsValue *)" +- "name": "MmsValue_clone" + "params": + - "name": "self" + "type": "bool " + "return_type": "void" + "signature": "MmsValue * MmsValue_clone(const MmsValue *)" +- "name": "MmsValue_equals" + "params": + - "name": "self" + "type": "bool " + - "name": "otherValue" + "type": "bool " + "return_type": "bool" + "signature": "bool MmsValue_equals(const MmsValue *, const MmsValue *)" +- "name": "MmsVariableSpecification_getMaxEncodedSize" + "params": + - "name": "self" + "type": "bool " + "return_type": "int" + "signature": "int MmsVariableSpecification_getMaxEncodedSize(MmsVariableSpecification *)" +- "name": "MmsValue_getMaxEncodedSize" + "params": + - "name": "self" + "type": "bool " + "return_type": "int" + "signature": "int MmsValue_getMaxEncodedSize(MmsValue *)" +- "name": "MmsVariableSpecification_isValueOfType" + "params": + - "name": "self" + "type": "bool " + - "name": "value" + "type": "bool " + "return_type": "bool" + "signature": "bool MmsVariableSpecification_isValueOfType(MmsVariableSpecification *, const MmsValue *)" +- "name": "MmsValue_newUnsignedFromUint32" + "params": + - "name": "integer" + "type": "int" + "return_type": "void" + "signature": "MmsValue * MmsValue_newUnsignedFromUint32(uint32_t)" +- "name": "MmsValue_newIntegerFromInt64" + "params": + - "name": "integer" + "type": "size_t" + "return_type": "void" + "signature": "MmsValue * MmsValue_newIntegerFromInt64(int64_t)" +- "name": "MmsValue_newIntegerFromInt32" + "params": + - "name": "integer" + "type": "int" + "return_type": "void" + "signature": "MmsValue * MmsValue_newIntegerFromInt32(int32_t)" +- "name": "MmsValue_newIntegerFromInt16" + "params": + - "name": "integer" + "type": "short" + "return_type": "void" + "signature": "MmsValue * MmsValue_newIntegerFromInt16(int16_t)" +"language": "c" +"project": "libiec61850" +"target_name": "fuzz_mms_decode" +"target_path": "/src/libiec61850/fuzz/fuzz_mms_decode.c" diff --git a/benchmark-sets/c-specific/libyang.yaml b/benchmark-sets/c-specific/libyang.yaml new file mode 100644 index 0000000000..161563c88a --- /dev/null +++ b/benchmark-sets/c-specific/libyang.yaml @@ -0,0 +1,505 @@ +"functions": +- "name": "yang_print_compiled" + "params": + - "name": "out" + "type": "bool " + - "name": "module" + "type": "bool " + - "name": "options" + "type": "int" + "return_type": "int" + "signature": "LY_ERR yang_print_compiled(struct ly_out *, const struct lys_module *, uint32_t)" +- "name": "lyplg_ext_print_info_extension_instance" + "params": + - "name": "ctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "flag" + "type": "bool " + "return_type": "void" + "signature": "void lyplg_ext_print_info_extension_instance(struct lyspr_ctx *, const struct lysc_ext_instance *, ly_bool *)" +- "name": "lyd_parse_ext_op" + "params": + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "tree" + "type": "bool " + - "name": "op" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_ext_op(const struct lysc_ext_instance *, struct lyd_node *, struct ly_in *, LYD_FORMAT, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct lyd_node **)" +- "name": "lyd_parse_op" + "params": + - "name": "ctx" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "tree" + "type": "bool " + - "name": "op" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_op(const struct ly_ctx *, struct lyd_node *, struct ly_in *, LYD_FORMAT, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct lyd_node **)" +- "name": "ly_ctx_get_yanglib_data" + "params": + - "name": "ctx" + "type": "bool " + - "name": "root_p" + "type": "bool " + - "name": "content_id_format" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR ly_ctx_get_yanglib_data(const struct ly_ctx *, struct lyd_node **, const char *, void)" +- "name": "lyd_diff_siblings" + "params": + - "name": "first" + "type": "bool " + - "name": "second" + "type": "bool " + - "name": "options" + "type": "short" + - "name": "diff" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_diff_siblings(const struct lyd_node *, const struct lyd_node *, uint16_t, struct lyd_node **)" +- "name": "lyd_diff_tree" + "params": + - "name": "first" + "type": "bool " + - "name": "second" + "type": "bool " + - "name": "options" + "type": "short" + - "name": "diff" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_diff_tree(const struct lyd_node *, const struct lyd_node *, uint16_t, struct lyd_node **)" +- "name": "lyd_new_ext_path" + "params": + - "name": "parent" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "path" + "type": "bool " + - "name": "value" + "type": "bool " + - "name": "options" + "type": "int" + - "name": "node" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_new_ext_path(struct lyd_node *, const struct lysc_ext_instance *, const char *, const void *, uint32_t, struct lyd_node **)" +- "name": "lyd_new_path2" + "params": + - "name": "parent" + "type": "bool " + - "name": "ctx" + "type": "bool " + - "name": "path" + "type": "bool " + - "name": "value" + "type": "bool " + - "name": "value_len" + "type": "size_t" + - "name": "value_type" + "type": "int" + - "name": "options" + "type": "int" + - "name": "new_parent" + "type": "bool " + - "name": "new_node" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_new_path2(struct lyd_node *, const struct ly_ctx *, const char *, const void *, size_t, LYD_ANYDATA_VALUETYPE, uint32_t, struct lyd_node **, struct lyd_node **)" +- "name": "lyd_new_path" + "params": + - "name": "parent" + "type": "bool " + - "name": "ctx" + "type": "bool " + - "name": "path" + "type": "bool " + - "name": "value" + "type": "bool " + - "name": "options" + "type": "int" + - "name": "node" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_new_path(struct lyd_node *, const struct ly_ctx *, const char *, const char *, uint32_t, struct lyd_node **)" +- "name": "lyd_parse_xml_netconf" + "params": + - "name": "ctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "first_p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "parse_opts" + "type": "int" + - "name": "val_opts" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "envp" + "type": "bool " + - "name": "parsed" + "type": "bool " + - "name": "lydctx_p" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_xml_netconf(const struct ly_ctx *, const struct lysc_ext_instance *, struct lyd_node *, struct lyd_node **, struct ly_in *, uint32_t, uint32_t, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct ly_set *, struct lyd_ctx **)" +- "name": "lyplg_type_store_xpath10" + "params": + - "name": "ctx" + "type": "bool " + - "name": "type" + "type": "bool " + - "name": "value" + "type": "bool " + - "name": "value_len" + "type": "size_t" + - "name": "options" + "type": "int" + - "name": "format" + "type": "int" + - "name": "prefix_data" + "type": "bool " + - "name": "hints" + "type": "int" + - "name": "ctx_node" + "type": "bool " + - "name": "storage" + "type": "bool " + - "name": "UNUSED_unres" + "type": "bool " + - "name": "err" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyplg_type_store_xpath10(const struct ly_ctx *, const struct lysc_type *, const void *, size_t, uint32_t, LY_VALUE_FORMAT, void *, uint32_t, const struct lysc_node *, struct lyd_value *, struct lys_glob_unres *, struct ly_err_item **)" +- "name": "lyd_merge_module" + "params": + - "name": "target" + "type": "bool " + - "name": "source" + "type": "bool " + - "name": "mod" + "type": "bool " + - "name": "merge_cb" + "type": "bool " + - "name": "cb_data" + "type": "bool " + - "name": "options" + "type": "short" + "return_type": "int" + "signature": "LY_ERR lyd_merge_module(struct lyd_node **, const struct lyd_node *, const struct lys_module *, lyd_merge_cb, void *, uint16_t)" +- "name": "lyd_merge_siblings" + "params": + - "name": "target" + "type": "bool " + - "name": "source" + "type": "bool " + - "name": "options" + "type": "short" + "return_type": "int" + "signature": "LY_ERR lyd_merge_siblings(struct lyd_node **, const struct lyd_node *, uint16_t)" +- "name": "lyd_merge_tree" + "params": + - "name": "target" + "type": "bool " + - "name": "source" + "type": "bool " + - "name": "options" + "type": "short" + "return_type": "int" + "signature": "LY_ERR lyd_merge_tree(struct lyd_node **, const struct lyd_node *, uint16_t)" +- "name": "lyplg_ext_parse_log" + "params": + - "name": "pctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "level" + "type": "int" + - "name": "err" + "type": "int" + - "name": "format" + "type": "bool " + "return_type": "void" + "signature": "void lyplg_ext_parse_log(const struct lysp_ctx *, const struct lysp_ext_instance *, LY_LOG_LEVEL, LY_ERR, const char *, void)" +- "name": "lyd_parse_ext_op" + "params": + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "tree" + "type": "bool " + - "name": "op" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_ext_op(const struct lysc_ext_instance *, struct lyd_node *, struct ly_in *, LYD_FORMAT, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct lyd_node **)" +- "name": "lyd_parse_op" + "params": + - "name": "ctx" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "tree" + "type": "bool " + - "name": "op" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_op(const struct ly_ctx *, struct lyd_node *, struct ly_in *, LYD_FORMAT, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct lyd_node **)" +- "name": "lyd_parse_data_path" + "params": + - "name": "ctx" + "type": "bool " + - "name": "path" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "parse_options" + "type": "int" + - "name": "validate_options" + "type": "int" + - "name": "tree" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_data_path(const struct ly_ctx *, const char *, LYD_FORMAT, uint32_t, uint32_t, struct lyd_node **)" +- "name": "lyd_parse_data_fd" + "params": + - "name": "ctx" + "type": "bool " + - "name": "fd" + "type": "int" + - "name": "format" + "type": "int" + - "name": "parse_options" + "type": "int" + - "name": "validate_options" + "type": "int" + - "name": "tree" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_data_fd(const struct ly_ctx *, int, LYD_FORMAT, uint32_t, uint32_t, struct lyd_node **)" +- "name": "lyd_parse_ext_data" + "params": + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "parse_options" + "type": "int" + - "name": "validate_options" + "type": "int" + - "name": "tree" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_ext_data(const struct lysc_ext_instance *, struct lyd_node *, struct ly_in *, LYD_FORMAT, uint32_t, uint32_t, struct lyd_node **)" +- "name": "lyd_parse_opaq_error" + "params": + - "name": "node" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_opaq_error(const struct lyd_node *)" +- "name": "lyd_parse_xml_netconf" + "params": + - "name": "ctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "first_p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "parse_opts" + "type": "int" + - "name": "val_opts" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "envp" + "type": "bool " + - "name": "parsed" + "type": "bool " + - "name": "lydctx_p" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_xml_netconf(const struct ly_ctx *, const struct lysc_ext_instance *, struct lyd_node *, struct lyd_node **, struct ly_in *, uint32_t, uint32_t, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct ly_set *, struct lyd_ctx **)" +- "name": "lyd_parse_xml" + "params": + - "name": "ctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "first_p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "parse_opts" + "type": "int" + - "name": "val_opts" + "type": "int" + - "name": "int_opts" + "type": "int" + - "name": "parsed" + "type": "bool " + - "name": "subtree_sibling" + "type": "bool " + - "name": "lydctx_p" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_xml(const struct ly_ctx *, const struct lysc_ext_instance *, struct lyd_node *, struct lyd_node **, struct ly_in *, uint32_t, uint32_t, uint32_t, struct ly_set *, ly_bool *, struct lyd_ctx **)" +- "name": "lyd_parse_json_restconf" + "params": + - "name": "ctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "first_p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "parse_opts" + "type": "int" + - "name": "val_opts" + "type": "int" + - "name": "data_type" + "type": "int" + - "name": "envp" + "type": "bool " + - "name": "parsed" + "type": "bool " + - "name": "lydctx_p" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_json_restconf(const struct ly_ctx *, const struct lysc_ext_instance *, struct lyd_node *, struct lyd_node **, struct ly_in *, uint32_t, uint32_t, DW_TAG_enumeration_typelyd_type, struct lyd_node **, struct ly_set *, struct lyd_ctx **)" +- "name": "lyd_parse_lyb" + "params": + - "name": "ctx" + "type": "bool " + - "name": "ext" + "type": "bool " + - "name": "parent" + "type": "bool " + - "name": "first_p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "parse_opts" + "type": "int" + - "name": "val_opts" + "type": "int" + - "name": "int_opts" + "type": "int" + - "name": "parsed" + "type": "bool " + - "name": "subtree_sibling" + "type": "bool " + - "name": "lydctx_p" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lyd_parse_lyb(const struct ly_ctx *, const struct lysc_ext_instance *, struct lyd_node *, struct lyd_node **, struct ly_in *, uint32_t, uint32_t, uint32_t, struct ly_set *, ly_bool *, struct lyd_ctx **)" +- "name": "lys_parse_path" + "params": + - "name": "ctx" + "type": "bool " + - "name": "path" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "module" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lys_parse_path(struct ly_ctx *, const char *, LYS_INFORMAT, struct lys_module **)" +- "name": "lys_parse_fd" + "params": + - "name": "ctx" + "type": "bool " + - "name": "fd" + "type": "int" + - "name": "format" + "type": "int" + - "name": "module" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lys_parse_fd(struct ly_ctx *, int, LYS_INFORMAT, struct lys_module **)" +- "name": "lys_parse_submodule" + "params": + - "name": "ctx" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "format" + "type": "int" + - "name": "main_ctx" + "type": "bool " + - "name": "custom_check" + "type": "bool " + - "name": "check_data" + "type": "bool " + - "name": "new_mods" + "type": "bool " + - "name": "submodule" + "type": "bool " + "return_type": "int" + "signature": "LY_ERR lys_parse_submodule(struct ly_ctx *, struct ly_in *, LYS_INFORMAT, struct lysp_ctx *, DW_TAG_subroutine_typeInfinite loop *, void *, struct ly_set *, struct lysp_submodule **)" +- "name": "ly_in_parsed" + "params": + - "name": "in" + "type": "bool " + "return_type": "size_t" + "signature": "size_t ly_in_parsed(const struct ly_in *)" +- "name": "lyd_lyb_data_length" + "params": + - "name": "data" + "type": "bool " + "return_type": "int" + "signature": "int lyd_lyb_data_length(const char *)" +"language": "c" +"project": "libyang" +"target_name": "lyd_parse_mem_xml" +"target_path": "/src/libyang/tests/fuzz/lyd_parse_mem_xml.c" diff --git a/benchmark-sets/c-specific/mdbtools.yaml b/benchmark-sets/c-specific/mdbtools.yaml new file mode 100644 index 0000000000..8da0999ed2 --- /dev/null +++ b/benchmark-sets/c-specific/mdbtools.yaml @@ -0,0 +1,153 @@ +"functions": +- "name": "mdb_print_schema" + "params": + - "name": "mdb" + "type": "bool " + - "name": "outfile" + "type": "bool " + - "name": "tabname" + "type": "bool " + - "name": "dbnamespace" + "type": "bool " + - "name": "export_options" + "type": "int" + "return_type": "int" + "signature": "int mdb_print_schema(MdbHandle *, FILE *, char *, char *, guint32)" +- "name": "mdb_dump_catalog" + "params": + - "name": "mdb" + "type": "bool " + - "name": "obj_type" + "type": "int" + "return_type": "void" + "signature": "void mdb_dump_catalog(MdbHandle *, int)" +- "name": "mdb_read_table_by_name" + "params": + - "name": "mdb" + "type": "bool " + - "name": "table_name" + "type": "bool " + - "name": "obj_type" + "type": "int" + "return_type": "void" + "signature": "MdbTableDef * mdb_read_table_by_name(MdbHandle *, gchar *, int)" +- "name": "mdb_data_dump" + "params": + - "name": "table" + "type": "bool " + "return_type": "void" + "signature": "void mdb_data_dump(MdbTableDef *)" +- "name": "mdb_table_dump" + "params": + - "name": "entry" + "type": "bool " + "return_type": "void" + "signature": "void mdb_table_dump(MdbCatalogEntry *)" +- "name": "mdb_open" + "params": + - "name": "filename" + "type": "bool " + - "name": "flags" + "type": "int" + "return_type": "void" + "signature": "MdbHandle * mdb_open(const char *, MdbFileFlags)" +- "name": "mdb_insert_row" + "params": + - "name": "table" + "type": "bool " + - "name": "num_fields" + "type": "int" + - "name": "fields" + "type": "bool " + "return_type": "int" + "signature": "int mdb_insert_row(MdbTableDef *, int, MdbField *)" +- "name": "mdb_index_scan_init" + "params": + - "name": "mdb" + "type": "bool " + - "name": "table" + "type": "bool " + "return_type": "void" + "signature": "void mdb_index_scan_init(MdbHandle *, MdbTableDef *)" +- "name": "mdb_init_index_chain" + "params": + - "name": "table" + "type": "bool " + - "name": "idx" + "type": "bool " + "return_type": "int" + "signature": "int mdb_init_index_chain(MdbTableDef *, MdbIndex *)" +- "name": "mdb_update_row" + "params": + - "name": "table" + "type": "bool " + "return_type": "int" + "signature": "int mdb_update_row(MdbTableDef *)" +- "name": "mdb_clone_handle" + "params": + - "name": "mdb" + "type": "bool " + "return_type": "void" + "signature": "MdbHandle * mdb_clone_handle(MdbHandle *)" +- "name": "mdb_read_indices" + "params": + - "name": "table" + "type": "bool " + "return_type": "void" + "signature": "GPtrArray * mdb_read_indices(MdbTableDef *)" +- "name": "mdb_replace_row" + "params": + - "name": "table" + "type": "bool " + - "name": "row" + "type": "int" + - "name": "new_row" + "type": "bool " + - "name": "new_row_size" + "type": "int" + "return_type": "int" + "signature": "int mdb_replace_row(MdbTableDef *, int, void *, int)" +- "name": "mdb_map_find_next_freepage" + "params": + - "name": "table" + "type": "bool " + - "name": "row_size" + "type": "int" + "return_type": "int" + "signature": "gint32 mdb_map_find_next_freepage(MdbTableDef *, int)" +- "name": "mdb_print_col" + "params": + - "name": "outfile" + "type": "bool " + - "name": "col_val" + "type": "bool " + - "name": "quote_text" + "type": "int" + - "name": "col_type" + "type": "int" + - "name": "bin_len" + "type": "int" + - "name": "quote_char" + "type": "bool " + - "name": "escape_char" + "type": "bool " + - "name": "flags" + "type": "int" + "return_type": "void" + "signature": "void mdb_print_col(FILE *, gchar *, int, int, int, char *, char *, int)" +- "name": "g_option_context_parse" + "params": + - "name": "context" + "type": "bool " + - "name": "argc" + "type": "bool " + - "name": "argv" + "type": "bool " + - "name": "error" + "type": "bool " + "return_type": "int" + "signature": "gboolean g_option_context_parse(GOptionContext *, gint *, gchar ***, GError **)" +"language": "c" +"project": "mdbtools" +"target_name": "fuzz_mdb" +"target_path": "/src/mdbtools/src/fuzz/fuzz_mdb.c" diff --git a/benchmark-sets/c-specific/miniz.yaml b/benchmark-sets/c-specific/miniz.yaml new file mode 100644 index 0000000000..390f000bda --- /dev/null +++ b/benchmark-sets/c-specific/miniz.yaml @@ -0,0 +1,383 @@ +"functions": +- "name": "mz_zip_add_mem_to_archive_file_in_place" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_add_mem_to_archive_file_in_place(const char *, const char *, const void *, size_t, const void *, mz_uint16, mz_uint)" +- "name": "mz_zip_add_mem_to_archive_file_in_place_v2" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + "return_type": "int" + "signature": "mz_bool mz_zip_add_mem_to_archive_file_in_place_v2(const char *, const char *, const void *, size_t, const void *, mz_uint16, mz_uint, mz_zip_error *)" +- "name": "mz_zip_writer_add_file" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_writer_add_file(mz_zip_archive *, const char *, const char *, const void *, mz_uint16, mz_uint)" +- "name": "mz_zip_writer_add_cfile" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_writer_add_cfile(mz_zip_archive *, const char *, FILE *, mz_uint64, const time_t *, const void *, mz_uint16, mz_uint, const char *, mz_uint, const char *, mz_uint)" +- "name": "mz_zip_validate_file_archive" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + "return_type": "int" + "signature": "mz_bool mz_zip_validate_file_archive(const char *, mz_uint, mz_zip_error *)" +- "name": "mz_zip_writer_add_mem" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_writer_add_mem(mz_zip_archive *, const char *, const void *, size_t, mz_uint)" +- "name": "mz_zip_writer_add_mem_ex" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_writer_add_mem_ex(mz_zip_archive *, const char *, const void *, size_t, const void *, mz_uint16, mz_uint, mz_uint64, mz_uint32)" +- "name": "mz_zip_validate_mem_archive" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + "return_type": "int" + "signature": "mz_bool mz_zip_validate_mem_archive(const void *, size_t, mz_uint, mz_zip_error *)" +- "name": "mz_zip_writer_add_read_buf_callback" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_writer_add_read_buf_callback(mz_zip_archive *, const char *, mz_file_read_func, void *, mz_uint64, const time_t *, const void *, mz_uint16, mz_uint, const char *, mz_uint, const char *, mz_uint)" +- "name": "mz_zip_writer_add_mem_ex_v2" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "short" + - "name": "" + "type": "int" + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool mz_zip_writer_add_mem_ex_v2(mz_zip_archive *, const char *, const void *, size_t, const void *, mz_uint16, mz_uint, mz_uint64, mz_uint32, time_t *, const char *, mz_uint, const char *, mz_uint)" +- "name": "mz_zip_extract_archive_file_to_heap" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "void" + "signature": "void * mz_zip_extract_archive_file_to_heap(const char *, const char *, size_t *, mz_uint)" +- "name": "mz_zip_extract_archive_file_to_heap_v2" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "void * mz_zip_extract_archive_file_to_heap_v2(const char *, const char *, const char *, size_t *, mz_uint, mz_zip_error *)" +- "name": "mz_compress" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + "return_type": "int" + "signature": "int mz_compress(unsigned char *, mz_ulong *, const unsigned char *, mz_ulong)" +- "name": "tdefl_write_image_to_png_file_in_memory" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "int" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + "return_type": "void" + "signature": "void * tdefl_write_image_to_png_file_in_memory(const void *, int, int, int, size_t *)" +- "name": "tdefl_write_image_to_png_file_in_memory_ex" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "int" + - "name": "" + "type": "int" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + - "name": "" + "type": "int" + "return_type": "void" + "signature": "void * tdefl_write_image_to_png_file_in_memory_ex(const void *, int, int, int, size_t *, mz_uint, mz_bool)" +- "name": "tdefl_compress_buffer" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + "return_type": "int" + "signature": "tdefl_status tdefl_compress_buffer(tdefl_compressor *, const void *, size_t, tdefl_flush)" +- "name": "tinfl_decompress_mem_to_callback" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "int" + "signature": "int tinfl_decompress_mem_to_callback(const void *, size_t *, tinfl_put_buf_func_ptr, void *, int)" +- "name": "tinfl_decompress_mem_to_mem" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + "return_type": "size_t" + "signature": "size_t tinfl_decompress_mem_to_mem(void *, size_t, const void *, size_t, int)" +- "name": "tinfl_decompress_mem_to_heap" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "void" + "signature": "void * tinfl_decompress_mem_to_heap(const void *, size_t, size_t *, int)" +- "name": "tdefl_compress_mem_to_mem" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "int" + "return_type": "size_t" + "signature": "size_t tdefl_compress_mem_to_mem(void *, size_t, const void *, size_t, int)" +- "name": "tdefl_compress_mem_to_output" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "int" + "signature": "mz_bool tdefl_compress_mem_to_output(const void *, size_t, tdefl_put_buf_func_ptr, void *, int)" +- "name": "tdefl_compress_mem_to_heap" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + - "name": "" + "type": "bool " + - "name": "" + "type": "int" + "return_type": "void" + "signature": "void * tdefl_compress_mem_to_heap(const void *, size_t, size_t *, int)" +- "name": "mz_compress" + "params": + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "bool " + - "name": "" + "type": "size_t" + "return_type": "int" + "signature": "int mz_compress(unsigned char *, mz_ulong *, const unsigned char *, mz_ulong)" +"language": "c" +"project": "miniz" +"target_name": "large_fuzzer" +"target_path": "/src/miniz/tests/large_fuzzer.c" diff --git a/benchmark-sets/c-specific/ntpsec.yaml b/benchmark-sets/c-specific/ntpsec.yaml new file mode 100644 index 0000000000..3e940143b2 --- /dev/null +++ b/benchmark-sets/c-specific/ntpsec.yaml @@ -0,0 +1,107 @@ +"functions": +- "name": "nts_probe" + "params": + - "name": "peer" + "type": "bool " + "return_type": "bool" + "signature": "bool nts_probe(struct peer *)" +- "name": "nts_ke_listener" + "params": + - "name": "arg" + "type": "bool " + "return_type": "void" + "signature": "void * nts_ke_listener(void *)" +- "name": "nts_ke_request" + "params": + - "name": "ssl" + "type": "bool " + "return_type": "bool" + "signature": "bool nts_ke_request(SSL *)" +- "name": "extens_server_send" + "params": + - "name": "ntspacket" + "type": "bool " + - "name": "xpkt" + "type": "bool " + "return_type": "int" + "signature": "int extens_server_send(struct ntspacket_t *, struct pkt *)" +- "name": "nts_ke_setup_send" + "params": + - "name": "buf" + "type": "bool " + - "name": "aead" + "type": "int" + - "name": "c2s" + "type": "bool " + - "name": "s2c" + "type": "bool " + - "name": "keylen" + "type": "int" + "return_type": "bool" + "signature": "bool nts_ke_setup_send(struct BufCtl_t *, int, uint8_t *, uint8_t *, int)" +- "name": "nts_make_cookie" + "params": + - "name": "cookie" + "type": "bool " + - "name": "aead" + "type": "short" + - "name": "c2s" + "type": "bool " + - "name": "s2c" + "type": "bool " + - "name": "keylen" + "type": "int" + "return_type": "int" + "signature": "int nts_make_cookie(uint8_t *, uint16_t, uint8_t *, uint8_t *, int)" +- "name": "extens_client_send" + "params": + - "name": "peer" + "type": "bool " + - "name": "xpkt" + "type": "bool " + "return_type": "int" + "signature": "int extens_client_send(struct peer *, struct pkt *)" +- "name": "nts_client_process_response" + "params": + - "name": "ssl" + "type": "bool " + - "name": "peer" + "type": "bool " + "return_type": "bool" + "signature": "bool nts_client_process_response(SSL *, struct peer *)" +- "name": "make_ssl_client_ctx" + "params": + - "name": "filename" + "type": "bool " + "return_type": "void" + "signature": "SSL_CTX * make_ssl_client_ctx(const char *)" +- "name": "nts_ke_request" + "params": + - "name": "ssl" + "type": "bool " + "return_type": "bool" + "signature": "bool nts_ke_request(SSL *)" +- "name": "nts_client_send_request_core" + "params": + - "name": "buff" + "type": "bool " + - "name": "buf_size" + "type": "int" + - "name": "used" + "type": "bool " + - "name": "peer" + "type": "bool " + "return_type": "bool" + "signature": "bool nts_client_send_request_core(uint8_t *, int, int *, struct peer *)" +- "name": "nts_client_send_request" + "params": + - "name": "ssl" + "type": "bool " + - "name": "peer" + "type": "bool " + "return_type": "bool" + "signature": "bool nts_client_send_request(SSL *, struct peer *)" +"language": "c" +"project": "ntpsec" +"target_name": "FuzzServer" +"target_path": "/src/ntpsec/fuzz/FuzzServer.c" diff --git a/benchmark-sets/c-specific/opensips.yaml b/benchmark-sets/c-specific/opensips.yaml new file mode 100644 index 0000000000..fe5a64ee27 --- /dev/null +++ b/benchmark-sets/c-specific/opensips.yaml @@ -0,0 +1,279 @@ +"functions": +- "name": "receive_msg" + "params": + - "name": "buf" + "type": "bool " + - "name": "len" + "type": "int" + - "name": "rcv_info" + "type": "bool " + - "name": "existing_context" + "type": "bool " + - "name": "msg_flags" + "type": "int" + "return_type": "int" + "signature": "int receive_msg(char *, unsigned int, struct receive_info *, context_p, unsigned int)" +- "name": "tcp_start_processes" + "params": + - "name": "chd_rank" + "type": "bool " + - "name": "startup_done" + "type": "bool " + "return_type": "int" + "signature": "int tcp_start_processes(int *, int *)" +- "name": "udp_start_processes" + "params": + - "name": "chd_rank" + "type": "bool " + - "name": "startup_done" + "type": "bool " + "return_type": "int" + "signature": "int udp_start_processes(int *, int *)" +- "name": "parse_opensips_cfg" + "params": + - "name": "cfg_file" + "type": "bool " + - "name": "preproc_cmdline" + "type": "bool " + - "name": "ret_buffer" + "type": "bool " + "return_type": "int" + "signature": "int parse_opensips_cfg(const char *, const char *, str *)" +- "name": "start_timer_extra_processes" + "params": + - "name": "chd_rank" + "type": "bool " + "return_type": "int" + "signature": "int start_timer_extra_processes(int *)" +- "name": "forward_request" + "params": + - "name": "msg" + "type": "bool " + - "name": "p" + "type": "bool " + "return_type": "int" + "signature": "int forward_request(struct sip_msg *, struct proxy_l *)" +- "name": "handle_io" + "params": + - "name": "fm" + "type": "bool " + - "name": "idx" + "type": "int" + - "name": "event_type" + "type": "int" + "return_type": "int" + "signature": "int handle_io(struct fd_map *, int, int)" +- "name": "forward_reply" + "params": + - "name": "msg" + "type": "bool " + "return_type": "int" + "signature": "int forward_reply(struct sip_msg *)" +- "name": "do_action" + "params": + - "name": "a" + "type": "bool " + - "name": "msg" + "type": "bool " + "return_type": "int" + "signature": "int do_action(struct action *, struct sip_msg *)" +- "name": "async_launch_resume" + "params": + - "name": "fd" + "type": "int" + - "name": "param" + "type": "bool " + "return_type": "int" + "signature": "int async_launch_resume(int, void *)" +- "name": "do_assign" + "params": + - "name": "msg" + "type": "bool " + - "name": "a" + "type": "bool " + "return_type": "int" + "signature": "int do_assign(struct sip_msg *, struct action *)" +- "name": "parse_pvname_list" + "params": + - "name": "in" + "type": "bool " + - "name": "type" + "type": "int" + "return_type": "void" + "signature": "pvname_list_t * parse_pvname_list(str *, unsigned int)" +- "name": "pv_parse_spec" + "params": + - "name": "in" + "type": "bool " + - "name": "e" + "type": "bool " + "return_type": "void" + "signature": "char * pv_parse_spec(const str *, const pv_spec_p)" +- "name": "pv_parse_avp_name" + "params": + - "name": "sp" + "type": "bool " + - "name": "in" + "type": "bool " + "return_type": "int" + "signature": "int pv_parse_avp_name(pv_spec_p, const str *)" +- "name": "pv_parse_index" + "params": + - "name": "sp" + "type": "bool " + - "name": "in" + "type": "bool " + "return_type": "int" + "signature": "int pv_parse_index(pv_spec_p, const str *)" +- "name": "pv_parse_format" + "params": + - "name": "in" + "type": "bool " + - "name": "el" + "type": "bool " + "return_type": "int" + "signature": "int pv_parse_format(const str *, pv_elem_p *)" +- "name": "parse_sock_info" + "params": + - "name": "addr" + "type": "bool " + "return_type": "void" + "signature": "const struct socket_info * parse_sock_info(str *)" +- "name": "tr_parse_re" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_re(str *, trans_t *)" +- "name": "tr_parse_sparam" + "params": + - "name": "p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "tp" + "type": "bool " + - "name": "skip_param_ws" + "type": "int" + "return_type": "void" + "signature": "char * tr_parse_sparam(char *, str *, tr_param_t **, int)" +- "name": "tr_parse_ip" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_ip(str *, trans_t *)" +- "name": "tr_parse_sdp" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_sdp(str *, trans_t *)" +- "name": "tr_parse_nparam" + "params": + - "name": "p" + "type": "bool " + - "name": "in" + "type": "bool " + - "name": "tp" + "type": "bool " + "return_type": "void" + "signature": "char * tr_parse_nparam(char *, str *, tr_param_t **)" +- "name": "tr_parse_csv" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_csv(str *, trans_t *)" +- "name": "tr_parse_nameaddr" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_nameaddr(str *, trans_t *)" +- "name": "tr_parse_paramlist" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_paramlist(str *, trans_t *)" +- "name": "tr_parse_via" + "params": + - "name": "in" + "type": "bool " + - "name": "t" + "type": "bool " + "return_type": "int" + "signature": "int tr_parse_via(str *, trans_t *)" +- "name": "register_stats_group" + "params": + - "name": "name" + "type": "bool " + "return_type": "void" + "signature": "group_stats * register_stats_group(const char *)" +- "name": "add_stat_module" + "params": + - "name": "module" + "type": "bool " + "return_type": "void" + "signature": "module_stats * add_stat_module(char *)" +- "name": "load_module" + "params": + - "name": "name" + "type": "bool " + "return_type": "int" + "signature": "int load_module(char *)" +- "name": "sr_load_module" + "params": + - "name": "path" + "type": "bool " + "return_type": "int" + "signature": "int sr_load_module(char *)" +- "name": "daemonize" + "params": + - "name": "name" + "type": "bool " + - "name": "own_pgid" + "type": "bool " + "return_type": "int" + "signature": "int daemonize(char *, int *)" +- "name": "sr_add_core_report" + "params": + - "name": "report_s" + "type": "bool " + - "name": "report_len" + "type": "int" + "return_type": "int" + "signature": "int sr_add_core_report(char *, int)" +- "name": "resolvehost" + "params": + - "name": "name" + "type": "bool " + - "name": "no_ip_test" + "type": "int" + "return_type": "void" + "signature": "struct hostent * resolvehost(char *, int)" +- "name": "get_record" + "params": + - "name": "name" + "type": "bool " + - "name": "type" + "type": "int" + "return_type": "void" + "signature": "struct rdata * get_record(char *, int)" +"language": "c" +"project": "opensips" +"target_name": "fuzz_msg_parser" +"target_path": "/src/opensips/test/fuzz/fuzz_msg_parser.c" diff --git a/benchmark-sets/c-specific/unit.yaml b/benchmark-sets/c-specific/unit.yaml new file mode 100644 index 0000000000..5681f450ba --- /dev/null +++ b/benchmark-sets/c-specific/unit.yaml @@ -0,0 +1,229 @@ +"functions": +- "name": "nxt_runtime_create" + "params": + - "name": "task" + "type": "bool " + "return_type": "int" + "signature": "nxt_int_t nxt_runtime_create(nxt_task_t *)" +- "name": "nxt_main_process_start" + "params": + - "name": "thr" + "type": "bool " + - "name": "task" + "type": "bool " + - "name": "rt" + "type": "bool " + "return_type": "int" + "signature": "nxt_int_t nxt_main_process_start(nxt_thread_t *, nxt_task_t *, nxt_runtime_t *)" +- "name": "nxt_process_init_start" + "params": + - "name": "task" + "type": "bool " + - "name": "init" + "type": "bool " + "return_type": "int" + "signature": "nxt_int_t nxt_process_init_start(nxt_task_t *, nxt_process_init_t)" +- "name": "nxt_process_start" + "params": + - "name": "task" + "type": "bool " + - "name": "process" + "type": "bool " + "return_type": "int" + "signature": "nxt_int_t nxt_process_start(nxt_task_t *, nxt_process_t *)" +- "name": "nxt_http_application_handler" + "params": + - "name": "task" + "type": "bool " + - "name": "r" + "type": "bool " + - "name": "action" + "type": "bool " + "return_type": "void" + "signature": "nxt_http_action_t * nxt_http_application_handler(nxt_task_t *, nxt_http_request_t *, nxt_http_action_t *)" +- "name": "nxt_router_process_http_request" + "params": + - "name": "task" + "type": "bool " + - "name": "r" + "type": "bool " + - "name": "action" + "type": "bool " + "return_type": "void" + "signature": "void nxt_router_process_http_request(nxt_task_t *, nxt_http_request_t *, nxt_http_action_t *)" +- "name": "nxt_router_conf_apply" + "params": + - "name": "task" + "type": "bool " + - "name": "obj" + "type": "bool " + - "name": "data" + "type": "bool " + "return_type": "void" + "signature": "void nxt_router_conf_apply(nxt_task_t *, void *, void *)" +- "name": "nxt_router_access_log_open" + "params": + - "name": "task" + "type": "bool " + - "name": "tmcf" + "type": "bool " + "return_type": "void" + "signature": "void nxt_router_access_log_open(nxt_task_t *, nxt_router_temp_conf_t *)" +- "name": "nxt_http_routes_create" + "params": + - "name": "task" + "type": "bool " + - "name": "tmcf" + "type": "bool " + - "name": "routes_conf" + "type": "bool " + "return_type": "void" + "signature": "nxt_http_routes_t * nxt_http_routes_create(nxt_task_t *, nxt_router_temp_conf_t *, nxt_conf_value_t *)" +- "name": "nxt_runtime_quit" + "params": + - "name": "task" + "type": "bool " + - "name": "status" + "type": "int" + "return_type": "void" + "signature": "void nxt_runtime_quit(nxt_task_t *, nxt_uint_t)" +- "name": "nxt_signal_quit_handler" + "params": + - "name": "task" + "type": "bool " + - "name": "msg" + "type": "bool " + "return_type": "void" + "signature": "void nxt_signal_quit_handler(nxt_task_t *, nxt_port_recv_msg_t *)" +- "name": "nxt_process_quit" + "params": + - "name": "task" + "type": "bool " + - "name": "exit_status" + "type": "int" + "return_type": "void" + "signature": "void nxt_process_quit(nxt_task_t *, nxt_uint_t)" +- "name": "nxt_port_quit_handler" + "params": + - "name": "task" + "type": "bool " + - "name": "msg" + "type": "bool " + "return_type": "void" + "signature": "void nxt_port_quit_handler(nxt_task_t *, nxt_port_recv_msg_t *)" +- "name": "nxt_router_listen_event_release" + "params": + - "name": "task" + "type": "bool " + - "name": "lev" + "type": "bool " + - "name": "joint" + "type": "bool " + "return_type": "void" + "signature": "void nxt_router_listen_event_release(nxt_task_t *, nxt_listen_event_t *, nxt_socket_conf_joint_t *)" +- "name": "nxt_http_action_init" + "params": + - "name": "task" + "type": "bool " + - "name": "tmcf" + "type": "bool " + - "name": "cv" + "type": "bool " + - "name": "action" + "type": "bool " + "return_type": "int" + "signature": "nxt_int_t nxt_http_action_init(nxt_task_t *, nxt_router_temp_conf_t *, nxt_conf_value_t *, nxt_http_action_t *)" +- "name": "nxt_router_process_http_request" + "params": + - "name": "task" + "type": "bool " + - "name": "r" + "type": "bool " + - "name": "action" + "type": "bool " + "return_type": "void" + "signature": "void nxt_router_process_http_request(nxt_task_t *, nxt_http_request_t *, nxt_http_action_t *)" +- "name": "nxt_http_request_action" + "params": + - "name": "task" + "type": "bool " + - "name": "r" + "type": "bool " + - "name": "action" + "type": "bool " + "return_type": "void" + "signature": "void nxt_http_request_action(nxt_task_t *, nxt_http_request_t *, nxt_http_action_t *)" +- "name": "nxt_http_request_close_handler" + "params": + - "name": "task" + "type": "bool " + - "name": "obj" + "type": "bool " + - "name": "data" + "type": "bool " + "return_type": "void" + "signature": "void nxt_http_request_close_handler(nxt_task_t *, void *, void *)" +- "name": "nxt_http_cookies_parse" + "params": + - "name": "r" + "type": "bool " + "return_type": "void" + "signature": "nxt_array_t * nxt_http_cookies_parse(nxt_http_request_t *)" +- "name": "nxt_http_arguments_parse" + "params": + - "name": "r" + "type": "bool " + "return_type": "void" + "signature": "nxt_array_t * nxt_http_arguments_parse(nxt_http_request_t *)" +- "name": "nxt_http_request_header_send" + "params": + - "name": "task" + "type": "bool " + - "name": "r" + "type": "bool " + - "name": "body_handler" + "type": "bool " + - "name": "data" + "type": "bool " + "return_type": "void" + "signature": "void nxt_http_request_header_send(nxt_task_t *, nxt_http_request_t *, nxt_work_handler_t, void *)" +- "name": "nxt_http_request_create" + "params": + - "name": "task" + "type": "bool " + "return_type": "void" + "signature": "nxt_http_request_t * nxt_http_request_create(nxt_task_t *)" +- "name": "nxt_http_request_error" + "params": + - "name": "task" + "type": "bool " + - "name": "r" + "type": "bool " + - "name": "status" + "type": "int" + "return_type": "void" + "signature": "void nxt_http_request_error(nxt_task_t *, nxt_http_request_t *, nxt_http_status_t)" +- "name": "nxt_http_route_addr_pattern_parse" + "params": + - "name": "mp" + "type": "bool " + - "name": "pattern" + "type": "bool " + - "name": "cv" + "type": "bool " + "return_type": "int" + "signature": "nxt_int_t nxt_http_route_addr_pattern_parse(nxt_mp_t *, nxt_http_route_addr_pattern_t *, nxt_conf_value_t *)" +- "name": "nxt_http_chunk_parse" + "params": + - "name": "task" + "type": "bool " + - "name": "hcp" + "type": "bool " + - "name": "in" + "type": "bool " + "return_type": "void" + "signature": "nxt_buf_t * nxt_http_chunk_parse(nxt_task_t *, nxt_http_chunk_parse_t *, nxt_buf_t *)" +"language": "c" +"project": "unit" +"target_name": "fuzz_json" +"target_path": "/src/unit/fuzzing/nxt_json_fuzz.c"