From f2ea010b8180b4160d85c92e312971d0cd8a34d4 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 17 Jan 2023 16:30:33 +0100 Subject: Fixup kvm-eviction and refactor kvm-step --- test/util.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/util.h (limited to 'test/util.h') diff --git a/test/util.h b/test/util.h new file mode 100644 index 0000000..dbeb4a8 --- /dev/null +++ b/test/util.h @@ -0,0 +1,17 @@ +#pragma once + +#include +#include +#include + +#define ARRLEN(x) (sizeof(x) / sizeof((x)[0])) +#define MIN(a,b) ((a) > (b) ? (b) : (a)) + +void hexdump(void *data, int len); + +bool pin_process(pid_t pid, int cpu, bool assert); + +int read_stat_core(pid_t pid); + +void print_counts(uint8_t *counts); +void print_counts_raw(uint8_t *counts); -- cgit v1.2.3-71-gd317