diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-02-02 09:42:58 -0600 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-02-02 09:42:58 -0600 |
| commit | da9326a66bd534de38ab07dac96e8af051e94923 (patch) | |
| tree | 4fce93e7632176805f626c20ae926c2e914918b7 /test/kvm-pagestep.c | |
| parent | df90539b9e7ee75c206d5b77d4f1b94882d090c7 (diff) | |
| download | cachepc-da9326a66bd534de38ab07dac96e8af051e94923.tar.gz cachepc-da9326a66bd534de38ab07dac96e8af051e94923.zip | |
Add event batching and handling of instructions loads on page boundaries for CPC_TRACK_PAGES
Diffstat (limited to 'test/kvm-pagestep.c')
| -rw-r--r-- | test/kvm-pagestep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/kvm-pagestep.c b/test/kvm-pagestep.c index be313e2..320da68 100644 --- a/test/kvm-pagestep.c +++ b/test/kvm-pagestep.c @@ -41,6 +41,13 @@ monitor(struct kvm *kvm, bool baseline) return 1; } +void +kill_child(void) +{ + printf("Killing vm..\n"); + kill(child, SIGKILL); +} + int main(int argc, const char **argv) { @@ -96,6 +103,8 @@ main(int argc, const char **argv) } else { pin_process(0, SECONDARY_CORE, true); + atexit(kill_child); + ipc_wait_child(ipc); printf("Monitor start\n"); |
