Skip to content

Commit 6e67421

Browse files
authored
Merge pull request #368 from NotRequiem/dev
small performance improvements
2 parents 7247714 + 026bb4d commit 6e67421

4 files changed

Lines changed: 338 additions & 643 deletions

File tree

β€Žauxiliary/benchmark.cppβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ int main(void) {
174174
for (const VM::enum_flags technique_enum : VM::technique_vector) {
175175
start = VMAwareBenchmark::get_timestamp();
176176

177-
const bool result = VM::check(technique_enum, VM::NO_MEMO);
177+
VM::check(technique_enum, VM::NO_MEMO);
178178

179179
end = VMAwareBenchmark::get_timestamp();
180180
const double technique_time = VMAwareBenchmark::get_elapsed(start, end);

β€Ždocs/documentation.mdβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
492492
| `VM::ODD_CPU_THREADS` | Check for odd CPU threads, usually a sign of modification through VM setting because 99% of CPUs have even numbers of threads | 🐧πŸͺŸπŸ | 80% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L5115) |
493493
| `VM::INTEL_THREAD_MISMATCH` | Check for Intel CPU thread count database if it matches the system's thread count | 🐧πŸͺŸπŸ | 95% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L5215) |
494494
| `VM::XEON_THREAD_MISMATCH` | Same as above, but for Xeon Intel CPUs | 🐧πŸͺŸπŸ | 95% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L6217) |
495-
| `VM::NETTITUDE_VM_MEMORY` | Check for memory regions to detect VM-specific brands | πŸͺŸ | 100% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L6375) |
496495
| `VM::CUCKOO_DIR` | Check for cuckoo directory using crt and WIN API directory functions | πŸͺŸ | 30% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L6655) |
497496
| `VM::CUCKOO_PIPE` | Check for Cuckoo specific piping mechanism | πŸͺŸ | 30% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L6679) |
498497
| `VM::HYPERV_HOSTNAME` | Check for default Azure hostname format regex (Azure uses Hyper-V as their base VM brand) | 🐧πŸͺŸ | 30% | | | | | [link](https://github.com/kernelwernel/VMAware/blob/8cb2491b1c7d2cb7300d1d698b7c64c953b4ae75/src/vmaware.hpp#L6706) |

β€Žsrc/cli.cppβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@ bool is_unsupported(VM::enum_flags flag) {
441441
case VM::ODD_CPU_THREADS:
442442
case VM::INTEL_THREAD_MISMATCH:
443443
case VM::XEON_THREAD_MISMATCH:
444-
case VM::NETTITUDE_VM_MEMORY:
445444
case VM::CUCKOO_DIR:
446445
case VM::CUCKOO_PIPE:
447446
case VM::HYPERV_HOSTNAME:
@@ -926,7 +925,6 @@ void general() {
926925
checker(VM::ODD_CPU_THREADS, "odd thread count number");
927926
checker(VM::INTEL_THREAD_MISMATCH, "Intel thread count mismatch");
928927
checker(VM::XEON_THREAD_MISMATCH, "Intel Xeon thread count mismatch");
929-
checker(VM::NETTITUDE_VM_MEMORY, "VM memory regions");
930928
checker(VM::CUCKOO_DIR, "Cuckoo directory");
931929
checker(VM::CUCKOO_PIPE, "Cuckoo pipe");
932930
checker(VM::HYPERV_HOSTNAME, "Hyper-V Azure hostname");

0 commit comments

Comments
Β (0)