1 #include <palacios/vmm_util.h>
3 #include <palacios/vmm.h>
5 extern struct vmm_os_hooks * os_hooks;
8 void PrintTraceHex(unsigned char x) {
17 void PrintTraceLL(ullong_t num) {
18 unsigned char * z = (unsigned char *)#
21 for (i = 7; i >= 0; i--) {
22 PrintTraceHex(*(z + i));
27 void PrintTraceMemDump(unsigned char *start, int n)
31 for (i = 0; i < n; i += 16) {
32 PrintTrace("%8x", (unsigned)(start + i));
33 for (j = i; (j < (i + 16)) && (j < n); j += 2) {
35 PrintTraceHex(*((unsigned char *)(start + j)));
37 PrintTraceHex(*((unsigned char *)(start + j + 1)));
41 for (j = i; (j < (i + 16)) && (j < n); j++) {
42 PrintTrace("%c", ((start[j] >= 32) && (start[j] <= 126)) ? start[j] : '.');