From da9326a66bd534de38ab07dac96e8af051e94923 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Thu, 2 Feb 2023 09:42:58 -0600 Subject: Add event batching and handling of instructions loads on page boundaries for CPC_TRACK_PAGES --- test/kvm-pagestep.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/kvm-pagestep.c') 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"); -- cgit v1.2.3-71-gd317