debug - Add a basic Makefile
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 8 Nov 2012 15:17:32 +0000 (16:17 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 8 Nov 2012 15:18:55 +0000 (16:18 +0100)
- Sync wildcardinfo with current state of affairs.

test/debug/Makefile [new file with mode: 0644]
test/debug/wildcardinfo.c

diff --git a/test/debug/Makefile b/test/debug/Makefile
new file mode 100644 (file)
index 0000000..032e574
--- /dev/null
@@ -0,0 +1,59 @@
+# Debug programs Makefile
+
+TARGETS=  buserr revoke fdpassing posixlock seekbench umtx vmpageinfo wildcardinfo
+TARGETS+= kmapinfo kwrite kshowprocs mbufinfo ncptrace ttyinfo vnodeinfo zallocinfo
+
+CFLAGS= -O0 -g -I ../../sys
+
+all: ${TARGETS}
+
+buserr:
+       $(CC) $(CFLAGS) buserr.c -o ${.TARGET}
+
+fdpassing:
+       $(CC) $(CFLAGS) fdpassing.c -o ${.TARGET}
+
+kmapinfo:
+       $(CC) $(CFLAGS) kmapinfo.c -lkvm -o ${.TARGET}
+
+kshowprocs:
+       $(CC) $(CFLAGS) kshowprocs.c -lkvm -o ${.TARGET}
+
+kwrite:
+       $(CC) $(CFLAGS) kwrite.c -lkvm -o ${.TARGET}
+
+mbufinfo:
+       $(CC) $(CFLAGS) mbufinfo.c -lkvm -o ${.TARGET}
+
+ncptrace:
+       $(CC) $(CFLAGS) ncptrace.c -lkvm -o ${.TARGET}
+
+posixlock:
+       $(CC) $(CFLAGS) posixlock.c -o ${.TARGET}
+
+revoke:
+       $(CC) $(CFLAGS) revoke.c -o ${.TARGET}
+
+seekbench:
+       $(CC) $(CFLAGS) seekbench.c -o ${.TARGET}
+
+ttyinfo:
+       $(CC) $(CFLAGS) ttyinfo.c -lkvm -o ${.TARGET}
+
+umtx:
+       $(CC) $(CFLAGS) umtx.c -o ${.TARGET}
+
+vmpageinfo:
+       $(CC) $(CFLAGS) vmpageinfo.c -lkvm -o ${.TARGET}
+
+vnodeinfo:
+       $(CC) $(CFLAGS) vnodeinfo.c -lkvm -o ${.TARGET}
+
+wildcardinfo:
+       $(CC) $(CFLAGS) wildcardinfo.c -lkvm -o ${.TARGET}
+
+zallocinfo:
+       $(CC) $(CFLAGS) zallocinfo.c -lkvm -o ${.TARGET}
+
+clean:
+       rm -f $(TARGETS)
index 1728bbd..2f98990 100644 (file)
@@ -135,7 +135,7 @@ dumptcb(kvm_t *kd, intptr_t tcbaddr)
     printf("    lastport %d\n", (int)info.lastport);
     printf("    lastlow %d\n", (int)info.lastlow);
     printf("    lasthi %d\n", (int)info.lasthi);
-    printf("    ipi_zone %p\n", info.ipi_zone);
+    printf("    ipi_size %zu\n", info.ipi_size);
     printf("    ipi_count %d\n", (int)info.ipi_count);
     printf("    ipi_gencnt %lld\n", (long long)info.ipi_gencnt);
     printf("    cpu %d\n", info.cpu);