/dports/devel/hyperscan/hyperscan-5.4.0/src/ |
H A D | hs_common.h | 69 typedef int hs_error_t; typedef 84 hs_error_t HS_CDECL hs_free_database(hs_database_t *db); 137 hs_error_t HS_CDECL hs_deserialize_database(const char *bytes, 169 hs_error_t HS_CDECL hs_deserialize_database_at(const char *bytes, 187 hs_error_t HS_CDECL hs_stream_size(const hs_database_t *database, 203 hs_error_t HS_CDECL hs_database_size(const hs_database_t *database, 230 hs_error_t HS_CDECL hs_serialized_database_size(const char *bytes, 271 hs_error_t HS_CDECL hs_serialized_database_info(const char *bytes, 325 hs_error_t HS_CDECL hs_set_allocator(hs_alloc_t alloc_func, 385 hs_error_t HS_CDECL hs_set_misc_allocator(hs_alloc_t alloc_func, [all …]
|
H A D | dispatcher.c | 91 CREATE_DISPATCH(hs_error_t, hs_database_size, const hs_database_t *db, 93 CREATE_DISPATCH(hs_error_t, dbIsValid, const hs_database_t *db); 94 CREATE_DISPATCH(hs_error_t, hs_free_database, hs_database_t *db); 96 CREATE_DISPATCH(hs_error_t, hs_open_stream, const hs_database_t *db, 103 CREATE_DISPATCH(hs_error_t, hs_close_stream, hs_stream_t *id, 106 CREATE_DISPATCH(hs_error_t, hs_scan_vector, const hs_database_t *db, 113 CREATE_DISPATCH(hs_error_t, hs_copy_stream, hs_stream_t **to_id, 116 CREATE_DISPATCH(hs_error_t, hs_reset_stream, hs_stream_t *id, 120 CREATE_DISPATCH(hs_error_t, hs_reset_and_copy_stream, hs_stream_t *to_id, 127 CREATE_DISPATCH(hs_error_t, hs_deserialize_database, const char *bytes, [all …]
|
H A D | hs_runtime.h | 188 hs_error_t HS_CDECL hs_scan_stream(hs_stream_t *id, const char *data, 291 hs_error_t HS_CDECL hs_copy_stream(hs_stream_t **to_id, 324 hs_error_t HS_CDECL hs_reset_and_copy_stream(hs_stream_t *to_id, 395 hs_error_t HS_CDECL hs_expand_stream(const hs_database_t *db, 438 hs_error_t HS_CDECL hs_reset_and_expand_stream(hs_stream_t *to_stream, 479 hs_error_t HS_CDECL hs_scan(const hs_database_t *db, const char *data, 522 hs_error_t HS_CDECL hs_scan_vector(const hs_database_t *db, 555 hs_error_t HS_CDECL hs_alloc_scratch(const hs_database_t *db, 576 hs_error_t HS_CDECL hs_clone_scratch(const hs_scratch_t *src, 593 hs_error_t HS_CDECL hs_scratch_size(const hs_scratch_t *scratch, [all …]
|
H A D | database.c | 52 hs_error_t HS_CDECL hs_free_database(hs_database_t *db) { in hs_free_database() 72 hs_error_t ret = validDatabase(db); in hs_serialize_database() 115 hs_error_t db_check_platform(const u64a p) { in db_check_platform() 178 hs_error_t db_check_crc(const hs_database_t *db) { in db_check_crc() 214 hs_error_t ret = db_decode_header(&bytes, length, &header); in hs_deserialize_database_at() 243 hs_error_t HS_CDECL hs_deserialize_database(const char *bytes, in hs_deserialize_database() 254 hs_error_t ret = db_decode_header(&bytes, length, &header); in hs_deserialize_database() 298 hs_error_t ret = validDatabase(db); in hs_database_size() 326 hs_error_t dbIsValid(const hs_database_t *db) { in dbIsValid() 347 hs_error_t rv = db_check_crc(db); in dbIsValid() [all …]
|
H A D | hs_compile.h | 360 hs_error_t HS_CDECL hs_compile(const char *expression, unsigned int flags, 443 hs_error_t HS_CDECL hs_compile_multi(const char *const *expressions, 534 hs_error_t HS_CDECL hs_compile_ext_multi(const char *const *expressions, 608 hs_error_t HS_CDECL hs_compile_lit(const char *expression, unsigned flags, 690 hs_error_t HS_CDECL hs_compile_lit_multi(const char * const *expressions, 710 hs_error_t HS_CDECL hs_free_compile_error(hs_compile_error_t *error); 773 hs_error_t HS_CDECL hs_expression_info(const char *expression, 844 hs_error_t HS_CDECL hs_expression_ext_info(const char *expression, 860 hs_error_t HS_CDECL hs_populate_platform(hs_platform_info_t *platform);
|
H A D | alloc.c | 70 hs_error_t HS_CDECL hs_set_allocator(hs_alloc_t allocfunc, hs_free_t freefunc) { in hs_set_allocator() 80 hs_error_t HS_CDECL hs_set_database_allocator(hs_alloc_t allocfunc, in hs_set_database_allocator() 89 hs_error_t HS_CDECL hs_set_misc_allocator(hs_alloc_t allocfunc, in hs_set_misc_allocator() 98 hs_error_t HS_CDECL hs_set_scratch_allocator(hs_alloc_t allocfunc, in hs_set_scratch_allocator() 107 hs_error_t HS_CDECL hs_set_stream_allocator(hs_alloc_t allocfunc, in hs_set_stream_allocator()
|
H A D | hs.cpp | 167 hs_error_t 285 hs_error_t 412 hs_error_t HS_CDECL hs_compile(const char *expression, unsigned flags, in hs_compile() 431 hs_error_t HS_CDECL hs_compile_multi(const char *const *expressions, in hs_compile_multi() 443 hs_error_t HS_CDECL hs_compile_ext_multi(const char * const *expressions, in hs_compile_ext_multi() 455 hs_error_t HS_CDECL hs_compile_lit(const char *expression, unsigned flags, in hs_compile_lit() 475 hs_error_t HS_CDECL hs_compile_lit_multi(const char * const *expressions, in hs_compile_lit_multi() 590 hs_error_t HS_CDECL hs_expression_info(const char *expression, in hs_expression_info() 599 hs_error_t HS_CDECL hs_expression_ext_info(const char *expression, in hs_expression_ext_info() 609 hs_error_t HS_CDECL hs_populate_platform(hs_platform_info_t *platform) { in hs_populate_platform() [all …]
|
H A D | scratch.c | 74 hs_error_t alloc_scratch(const hs_scratch_t *proto, hs_scratch_t **scratch) { in alloc_scratch() 122 hs_error_t err = hs_check_alloc(s_tmp); in alloc_scratch() 244 hs_error_t HS_CDECL hs_alloc_scratch(const hs_database_t *db, in hs_alloc_scratch() 254 hs_error_t rv = dbIsValid(db); in hs_alloc_scratch() 279 hs_error_t proto_ret = hs_check_alloc(proto_tmp); in hs_alloc_scratch() 376 hs_error_t alloc_ret = alloc_scratch(proto, scratch); in hs_alloc_scratch() 392 hs_error_t HS_CDECL hs_clone_scratch(const hs_scratch_t *src, in hs_clone_scratch() 399 hs_error_t ret = alloc_scratch(src, dest); in hs_clone_scratch() 410 hs_error_t HS_CDECL hs_free_scratch(hs_scratch_t *scratch) { in hs_free_scratch() 434 hs_error_t HS_CDECL hs_scratch_size(const hs_scratch_t *scratch, size_t *size) { in hs_scratch_size()
|
H A D | runtime.c | 324 hs_error_t err = validDatabase(db); in hs_scan() 542 hs_error_t HS_CDECL hs_open_stream(const hs_database_t *db, in hs_open_stream() 551 hs_error_t err = validDatabase(db); in hs_open_stream() 713 hs_error_t HS_CDECL hs_copy_stream(hs_stream_t **to_id, in hs_copy_stream() 1057 hs_error_t HS_CDECL hs_stream_size(const hs_database_t *db, in hs_stream_size() 1063 hs_error_t ret = validDatabase(db); in hs_stream_size() 1105 hs_error_t HS_CDECL hs_scan_vector(const hs_database_t *db, in hs_scan_vector() 1116 hs_error_t err = validDatabase(db); in hs_scan_vector() 1148 hs_error_t ret in hs_scan_vector() 1203 hs_error_t HS_CDECL hs_expand_stream(const hs_database_t *db, in hs_expand_stream() [all …]
|
H A D | allocator.h | 56 hs_error_t hs_check_alloc(const void *mem) { in hs_check_alloc() 57 hs_error_t ret = HS_SUCCESS; in hs_check_alloc()
|
H A D | hs_internal.h | 47 hs_error_t hs_compile_multi_int(const char *const *expressions, 57 hs_error_t hs_compile_lit_multi_int(const char *const *expressions,
|
/dports/devel/hyperscan/hyperscan-5.4.0/unit/hyperscan/ |
H A D | arg_checks.cpp | 89 hs_error_t error = hs_valid_platform(); in TEST() 660 hs_error_t err = hs_copy_stream(&to, nullptr); in TEST() 1548 hs_error_t err = hs_stream_size(nullptr, &sz); in TEST() 1693 hs_error_t err = hs_database_size(db, &sz); in TEST() 1700 hs_error_t err = hs_database_info(db, &info); in TEST() 1999 hs_error_t err; in TEST() 2224 hs_error_t err = in TEST() 2235 hs_error_t err = in TEST() 2245 hs_error_t err = in TEST() 2252 hs_error_t err = hs_free_database(nullptr); in TEST() [all …]
|
H A D | allocators.cpp | 49 hs_error_t err = hs_database_info(db, &info); in TEST() 80 hs_error_t err = in TEST() 95 hs_error_t err = in TEST() 112 hs_error_t err = hs_database_info(db, &info); in TEST() 127 hs_error_t err = hs_serialize_database(db, &bytes, &serialized_len); in TEST() 140 hs_error_t err = hs_serialize_database(db, &bytes, &serialized_len); in TEST() 165 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 178 hs_error_t err = hs_expression_info(pattern.c_str(), 0, &info, &c_err); in TEST() 191 hs_error_t err = hs_expression_info(pattern.c_str(), 0, &info, &c_err); in TEST()
|
H A D | scratch_in_use.cpp | 50 hs_error_t err = hs_free_database(db); in operator ()() 59 hs_error_t err = hs_compile(expression, flags, mode, nullptr, &db, in makeDatabase() 73 hs_error_t err = hs_alloc_scratch(db.get(), &scratch); in runBlockTest() 97 hs_error_t err = hs_alloc_scratch(db.get(), &scratch); in runStreamingTest() 127 hs_error_t err = hs_alloc_scratch(db.get(), &scratch); in runVectoredTest() 156 hs_error_t err = hs_scan(rctx->db, data.c_str(), data.length(), 0, in rescan_block_cb() 177 hs_error_t err = hs_open_stream(rctx->db, 0, &stream); in rescan_stream_cb() 210 hs_error_t err = hs_scan_vector(rctx->db, vec, len, 2, 0, rctx->scratch, in rescan_vector_cb() 228 hs_error_t err = hs_alloc_scratch(db.get(), &rctx->scratch); in rescan_realloc_cb() 257 hs_error_t err = hs_free_scratch(rctx->scratch); in rescan_free_cb()
|
H A D | behaviour.cpp | 86 hs_error_t err; in TEST() 141 hs_error_t err; in TEST_P() 224 hs_error_t err; in allocAndScanBlock() 241 hs_error_t err; in TEST_P() 318 hs_error_t err; in TEST() 362 hs_error_t err; in TEST() 410 hs_error_t err; in TEST_P() 448 hs_error_t err; in TEST_P() 497 hs_error_t err; in TEST_P() 527 hs_error_t err; in TEST_P() [all …]
|
H A D | bad_patterns.cpp | 60 hs_error_t err; 222 hs_error_t compile(unsigned int mode, hs_database_t **db, in compile() 244 hs_error_t err = p.compile(HS_MODE_NOSTREAM, &db, &compile_err); in TEST_P() 262 hs_error_t err = p.compile(HS_MODE_STREAM | HS_MODE_SOM_HORIZON_LARGE, &db, in TEST_P() 345 hs_error_t err = hs_compile(pattern, HS_FLAG_DOTALL, HS_MODE_BLOCK, nullptr, in TEST() 369 hs_error_t err = in TEST() 390 hs_error_t err = hs_compile(pattern, HS_FLAG_DOTALL, HS_MODE_BLOCK, nullptr, in TEST()
|
H A D | serialize.cpp | 90 hs_error_t err; in TEST_P() 165 hs_error_t err; in TEST_P() 256 hs_error_t err = hs_database_size(db, &db_len); in TEST() 306 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() 324 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() 344 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() 374 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() 386 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() 413 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() 439 hs_error_t err = hs_compile(pat, 0, HS_MODE_BLOCK, nullptr, &db, &c_err); in TEST() [all …]
|
H A D | multi.cpp | 49 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 82 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 115 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 146 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 177 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 209 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 241 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 272 hs_error_t err = hs_compile_multi(expr, flags, ids, 2, HS_MODE_NOSTREAM, in TEST() 306 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 348 hs_error_t err = hs_compile_multi(expr, flags, nullptr, 3, HS_MODE_BLOCK, in TEST()
|
H A D | scratch_op.cpp | 64 hs_error_t err; in TEST() 89 hs_error_t err = hs_set_allocator(count_malloc_b, count_free_b); in TEST() 139 hs_error_t err; in TEST() 169 hs_error_t err; in TEST() 202 hs_error_t err = hs_alloc_scratch(db1, &scratch); in TEST() 233 hs_error_t err = hs_alloc_scratch(db1, &scratch); in TEST() 269 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST()
|
H A D | stream_op.cpp | 51 hs_error_t err; in TEST() 91 hs_error_t err; in TEST() 132 hs_error_t err; in TEST() 161 hs_error_t err; in TEST() 200 hs_error_t err; in TEST() 249 hs_error_t err; in TEST() 293 hs_error_t err; in TEST() 337 hs_error_t err; in TEST() 382 hs_error_t err; in TEST() 435 hs_error_t err; in TEST() [all …]
|
H A D | logical_combination.cpp | 50 hs_error_t err = hs_compile_multi(expr, flags, ids, 6, HS_MODE_NOSTREAM, in TEST() 98 hs_error_t err = hs_compile_multi(expr, flags, ids, 6, HS_MODE_NOSTREAM, in TEST() 141 hs_error_t err = hs_compile_multi(expr, flags, ids, 9, HS_MODE_NOSTREAM, in TEST() 188 hs_error_t err = hs_compile_multi(expr, flags, ids, 9, HS_MODE_NOSTREAM, in TEST() 227 hs_error_t err = hs_compile_multi(expr, flags, ids, 9, HS_MODE_NOSTREAM, in TEST() 260 hs_error_t err = hs_compile_multi(expr, flags, ids, 6, HS_MODE_NOSTREAM, in TEST() 305 hs_error_t err = hs_compile_multi(expr, flags, ids, 6, HS_MODE_NOSTREAM, in TEST() 344 hs_error_t err = hs_compile_multi(expr, flags, ids, 6, HS_MODE_NOSTREAM, in TEST() 393 hs_error_t err = hs_compile_multi(expr, flags, ids, 6, HS_MODE_NOSTREAM, in TEST() 435 hs_error_t err = hs_compile_multi(expr, flags, ids, 8, HS_MODE_NOSTREAM, in TEST() [all …]
|
H A D | order.cpp | 80 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 112 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 143 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 174 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 207 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 250 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 292 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST() 334 hs_error_t err = hs_alloc_scratch(db, &scratch); in TEST()
|
/dports/devel/hyperscan/hyperscan-5.4.0/util/ |
H A D | database_util.cpp | 58 hs_error_t err = hs_serialize_database(db, &bytes, &length); in saveDatabase() 125 hs_error_t err = hs_serialized_database_info(bytes, len, &info); in loadDatabase() 138 hs_error_t err = hs_deserialize_database(bytes, len, &db); in loadDatabase()
|
/dports/devel/hyperscan/hyperscan-5.4.0/examples/ |
H A D | pcapscan.cc | 190 hs_error_t err = hs_alloc_scratch(db_streaming, &scratch); in Benchmark() 267 hs_error_t err = hs_open_stream(db_streaming, 0, &stream); in openStreams() 279 hs_error_t err = hs_close_stream(stream, scratch, onMatch, in closeStreams() 293 hs_error_t err = hs_scan_stream(streams[stream_ids[i]], in scanStreams() 308 hs_error_t err = hs_scan(db_block, pkt.c_str(), pkt.length(), 0, in scanBlock() 322 hs_error_t err; in displayStats() 373 hs_error_t err; in buildDatabase()
|
H A D | patbench.cc | 293 hs_error_t err = hs_alloc_scratch(db, &scratch); in setDatabase() 305 hs_error_t err = hs_scratch_size(scratch, &scratch_size); in getScratchSize() 372 hs_error_t err = hs_open_stream(db, 0, &stream); in openStreams() 384 hs_error_t err = in closeStreams() 398 hs_error_t err = hs_scan_stream(streams[stream_ids[i]], in scanStreams() 413 hs_error_t err = hs_scan(db, pkt.c_str(), pkt.length(), 0, in scanBlock() 460 hs_error_t err = hs_compile_multi(cstrPatterns.data(), flags.data(), in compileDatabase() 568 hs_error_t err = hs_database_size(bench.getDatabase(), &dbSize); in eval_set() 579 hs_error_t err = hs_stream_size(bench.getDatabase(), &streamStateSize); in eval_set()
|