Commit Graph

38 Commits (a5b3bc79b3614ebf4a304bc3b3216a237066db35)
 

Author SHA1 Message Date
Avril a5b3bc79b3
Version bump: v0.1.0
3 years ago
Avril d7ddeaf2ca
Use `slice_sted()` on base-removed slice to calculate offsets instead of using ad-hoc anonymous struct in-line.
3 years ago
Avril 4465050a29
Added basic reporting of haystack match offsets and failures.
3 years ago
Avril 2ed48ec977
Added COLD_BLOCK and HOT_BLOCK (for now), not sure if they work but they"re added.
3 years ago
Avril 145781a293
Added COLD_EXPR() and HOT_EXPR() macros that (ab)use label attrs. Not sure of a better way to mark blocks/expressions as `cold` :/ I dunno if `if(UNLIKELY(1))` would work.
3 years ago
Avril 7fd570ff6f
Change all `map_handle_err(map_free())` conditionals to `UNLIKELY` (`ifU()`), as it is unlikely an unmap will fail on a map that has already been established successfully.
3 years ago
Avril 037a234953
Unmap needle before returning from main after failed haystack maps. The process return value is still `PROG_RET_MAP_HAYSTACK_FAILED`, but a warning message is printed if unmapping the needle failed after the rollback. (this is unlikely)
3 years ago
Avril 05b96a7e1b
Prevent returning from main without unmapping all haystacks+needle on haystack unmap failure.
3 years ago
Avril 2ce5037725
TODO: Single-threaded mode: print aggregate result in a reasonable format
3 years ago
Avril 63513504be
Added show current logging level in usage output
3 years ago
Avril 033ec9e902
Added human-readable compilation date in usage output.
3 years ago
Avril 4b6cc7034b
Added descriptions for logging levels
3 years ago
Avril 7295733087
Up default logging level on release builds to `INFO` (from `WARN`).
3 years ago
Avril 139d741bce
Allow controling logging verbosity at runtime with `LOG_LEVEL=<name>` env-var. Default is `DEBUG` (trace) on debug builds, and `WARN` on release builds.
3 years ago
Avril a3f4b80d54
Disable `PARALLEL` as default feature (it"s unimplemented.)
3 years ago
Avril 4b48c796a4
Added single-threaded match passthrough aggregate reporting.
3 years ago
Avril 947b801153
Fix returning on error from vararg function `cmp_find_many()` not calling `va_end()`
3 years ago
Avril 77c57d3624
Remove extra loop counter data dependancy in `map_haystacks()` error rollback path.
3 years ago
Avril b0623182be
Added rollback to unmap previous haystack maps on error in `map_haystacks()` before returning.
3 years ago
Avril d9eed51762
Added non-TRACE info messages on needle+haystack un/mappings
3 years ago
Avril d82407951a
Mapping +unmappign haystacks from cl.
3 years ago
Avril aff04b6d4b
Reworked `PROG_RET_` to return negatives on internal, memory, or file/mapping failures, and to return the first haystack number that failed to match instead as return code (haystack numbers start at 1, since 0 is the needle). If all matched, return 0 from main().
3 years ago
Avril 254d9fbadc
Added `cmp_find()` `cmp_find_many()` in "comp.c"/"comp.h".
3 years ago
Avril b694d73167
Added "useful" program error return codes `PROG_RET_` in "project.h". These can be used to specify which operation failed and on which input.
3 years ago
Avril f056d09c2e
Added `--help` option
3 years ago
Avril f3538aa2db
Instrumented map.c functions with TRACE()s
3 years ago
Avril f8f5d9102e
mmap() API facade.
3 years ago
Avril 4dd4285ee0
Add IGNORE_ALL() as alias to _drain()
3 years ago
Avril 6b66965424
Added "debug build" to usage message when compiled as `debug` target.
3 years ago
Avril a8e38d292e
Added Makefile re-export (project.h) `PROG_COMPILED_TIMESTAMP` (u64): UTC unix timestamp (seconds) when TU was compiled.
3 years ago
Avril 66f9b0ad55
Added Makefile exports for metadata, and import header that creates better-useable C types from them
3 years ago
Avril 56870bde45
Added usage message, added usage-then-exit function for error and non-error cases
3 years ago
Avril 701601f5cd
added testing framework
3 years ago
Avril 672502449b
Moved string handling functions from version header into its own TU.
3 years ago
Avril fb2fa5801e
version to string functions `v_ctos{s,n,}()` working as intended
3 years ago
Avril d9ccfa0d89
added `bswap()` generic macro
3 years ago
Avril 53355bb836
added mman includes
3 years ago
Avril d8202d7994
Fortune for naka's current commit: Small blessing − 小吉
3 years ago