Squashed commit of the following:

commit 3007df0d153ade6d328321dad8f88d63869159c8
Merge: 7557851 cd14d68
Author: Carl Pearson <pearson@illinois.edu>
Date:   Wed Sep 25 09:59:54 2019 -0500

    Merge branch 'master' into feature/aslr

commit 7557851508f0e1c2d75244267c5f78fb3d1ca303
Author: Carl Pearson <pearson@illinois.edu>
Date:   Tue Sep 24 07:50:15 2019 -0500

    wish list

commit 0bbbac31f354c16ae1942dbfe4683a66ec260498
Author: Carl Pearson <pearson@illinois.edu>
Date:   Tue Sep 24 07:49:36 2019 -0500

    ASLR documentation

commit f1ae37e057792696a739e30ecdbd09e071b8a7d4
Author: Carl Pearson <pearson@illinois.edu>
Date:   Tue Sep 24 07:45:54 2019 -0500

    add ASLR interface
This commit is contained in:
Carl Pearson
2019-09-25 10:03:32 -05:00
parent cd14d68c47
commit 3a86aef546
5 changed files with 157 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ CPU/GPU Performance control library for benchmarking on Linux, x86, POWER, and N
- [x] Flush addresses from cache (amd64, POWER)
- [x] CUDA not required (GPU functions will not be compiled)
- [x] Flush file system caches (linux)
- [x] Disable ASLR (linux)
## Contributors
* [Carl Pearson](https://cwpearson.github.io)
@@ -85,6 +86,20 @@ See [examples/gpu_monitor.cu](examples/gpu_monitor.cu)
* `void Monitor::pause()`: pause the monitor thread
* `void Monitor::resume()`: resume the monitor thread
### Disable ASLR
`perfect` can disable ASLR
See [tools/no_aslr.cpp](tools/no_aslr.cpp)
```c++
#include "perfect/aslr.hpp"
```
* `Result disable_aslr()`: disable ASLR
* `Result get_aslr(AslrState &state)`: save the current ASLR state
* `Result set_aslr(const AslrState &state)`: set a previously-saved ASLR state
### Flush file system caches
`perfect` can drop various filesystem caches
@@ -192,7 +207,6 @@ See [examples/cpu_cache.cpp](examples/cpu_cache.cpp).
- [ ] only monitor certain GPUs
- [ ] hyperthreading interface
- [ ] ASLR interface
- [ ] process priority interface
- [ ] A wrapper utility
- [ ] disable hyperthreading