Add TODO file.
[virt-dmesg.git] / TODO
diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..57ec53e
--- /dev/null
+++ b/TODO
@@ -0,0 +1,26 @@
+Here are some ideas for enhancing virt-dmesg.  Note that we are trying
+to keep virt-dmesg focused and simple, and refer people who want to do
+the really complex stuff over to the 'crash' utility, 'kdump' etc.
+
+               -----
+
+There are other stats that are conveniently held in global variables
+that we could get access to.  For example:
+
+- loadavg
+
+Stored in a public global array:
+  unsigned long avenrun[3];
+See kernel/sched.c.
+
+- block devices etc.
+
+All sorts of global lists of interesting things such as all_bdevs
+(block devices), task_struct, network devices, skbs etc.  However it's
+very hard to write general purpose code for iterating over these
+structs and reading the contents, since the structs change greatly
+between kernel releases.
+
+Nirvana here would involve some sort of heuristic that can untangle
+arbitrary structs linked by pointers.  At this point in development,
+it is better to refer users to the 'crash' utility.