1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
5 #include <palacios/vmm_util.h>
7 #include <palacios/vmm.h>
9 extern struct vmm_os_hooks * os_hooks;
12 void PrintTraceHex(unsigned char x) {
21 void PrintTraceLL(ullong_t num) {
22 unsigned char * z = (unsigned char *)#
25 for (i = 7; i >= 0; i--) {
26 PrintTraceHex(*(z + i));
31 void PrintTraceMemDump(unsigned char *start, int n)
35 for (i = 0; i < n; i += 16) {
36 PrintTrace("%8x", (unsigned)(start + i));
37 for (j = i; (j < (i + 16)) && (j < n); j += 2) {
39 PrintTraceHex(*((unsigned char *)(start + j)));
41 PrintTraceHex(*((unsigned char *)(start + j + 1)));
45 for (j = i; (j < (i + 16)) && (j < n); j++) {
46 PrintTrace("%c", ((start[j] >= 32) && (start[j] <= 126)) ? start[j] : '.');