Commit Graph

7 Commits

Author SHA1 Message Date
Léo Lam e37272f14a
tools: Add single function check mode
Similar to diff.py wrapper usage, except this will also automatically
update the function CSV with the actual match status.
2021-08-05 22:30:20 +02:00
Léo Lam 15f062a2fc
tools: Refactor "check all functions" into its own function
In preparation for adding a single function checking mode.
2021-08-05 22:30:19 +02:00
Léo Lam d1032acc1c
tools: Remove dead code 2021-08-05 22:30:19 +02:00
Léo Lam 5367d0c85a
tools: Print a note when a U function actually exists and matches
Also fixes the function call check not being as strict as it should be
and fixes several false positives in the function list
2021-08-04 17:37:12 +02:00
Léo Lam e3887d6835
tools: Add duplicate name checking 2021-08-04 17:28:50 +02:00
AlexApps99 3c0648e51f
Added support for WIP function status
This brings functionality up to what diff.py uses
2021-08-01 14:19:29 +12:00
Léo Lam 6e30bbea32
tools: Add a new, optimized check tool
Reimplements tools/check.py in a faster language (picked Rust to learn
and play with the language and because installing dependencies is way
easier than with C++)

On my machine, a full run takes ~160ms with this new implementation
and 49s (!) with check.py.

The main performance improvements come from not having to use
pyelftools and the Python bindings of Capstone (which are both insanely
slow and perhaps less efficient than they could be). Function checking
is now also performed in parallel rather than sequentially for yet
another significant performance boost.

Other tweaks include editing Capstone and the bindings to avoid
computing expensive things that we don't actually need and avoiding
dynamic memory allocations in hot paths as much as possible.

check.py will be removed after the setup instructions are updated.
2021-07-30 23:52:55 +02:00