1 /* Northwestern University */
2 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
4 #include <palacios/vmm_util.h>
6 #include <palacios/vmm.h>
8 extern struct vmm_os_hooks * os_hooks;
11 void PrintTraceHex(unsigned char x) {
20 void PrintTraceLL(ullong_t num) {
21 unsigned char * z = (unsigned char *)#
24 for (i = 7; i >= 0; i--) {
25 PrintTraceHex(*(z + i));
30 void PrintTraceMemDump(unsigned char *start, int n)
34 for (i = 0; i < n; i += 16) {
35 PrintTrace("%8x", (unsigned)(start + i));
36 for (j = i; (j < (i + 16)) && (j < n); j += 2) {
38 PrintTraceHex(*((unsigned char *)(start + j)));
40 PrintTraceHex(*((unsigned char *)(start + j + 1)));
44 for (j = i; (j < (i + 16)) && (j < n); j++) {
45 PrintTrace("%c", ((start[j] >= 32) && (start[j] <= 126)) ? start[j] : '.');