summaryrefslogtreecommitdiff
path: root/usr.bin/file/magdir
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-04-10 20:39:38 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-04-10 20:39:38 +0000
commita23d67445b5df6555fc4da33d769a3e3908dda34 (patch)
treeba0b32f3b219f9a806f6a47744a322071984ebc3 /usr.bin/file/magdir
parente9e89e5ae05bfd8e83cfd22c0ac34bd8eaf0f448 (diff)
Add a start record to the ktrace and use a special magic string "KTR"
to identify ktrace files. kdump(1) will now refuse to operate on trace data without the start record and as a bonus will print only PID, unless an -H flag is specified to print PID/TID pairs. Initial diff, input from and ok deraadt, guenther.
Diffstat (limited to 'usr.bin/file/magdir')
-rw-r--r--usr.bin/file/magdir/ktrace8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/file/magdir/ktrace b/usr.bin/file/magdir/ktrace
new file mode 100644
index 00000000000..c5578e4323c
--- /dev/null
+++ b/usr.bin/file/magdir/ktrace
@@ -0,0 +1,8 @@
+# $OpenBSD: ktrace,v 1.1 2012/04/10 20:39:37 mikeb Exp $
+
+#------------------------------------------------------------------------------
+# OpenBSD ktrace(1) output data
+#
+0 belong 0x4b545200
+>4 long 0xffffffff
+>8 long 0xffffffff OpenBSD kernel trace data