Date: Sat, 23 Feb 2008 01:01:49 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_descrip.c kern_ktrace.c uipc_syscalls.c vfs_syscalls.c src/sys/sys ktrace.h src/usr.bin/kdump kdump.1 kdump.c mksubr src/usr.bin/ktrace ktrace.1 ktrace.h subr.c Message-ID: <200802230101.m1N11ndD091703@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2008-02-23 01:01:49 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c kern_ktrace.c uipc_syscalls.c vfs_syscalls.c sys/sys ktrace.h usr.bin/kdump kdump.1 kdump.c mksubr usr.bin/ktrace ktrace.1 ktrace.h subr.c Log: This patch adds a new ktrace(2) record type, KTR_STRUCT, whose payload consists of the null-terminated name and the contents of any structure you wish to record. A new ktrstruct() function constructs and emits a KTR_STRUCT record. It is accompanied by convenience macros for struct stat and struct sockaddr. In kdump(1), KTR_STRUCT records are handled by a dispatcher function that runs stringent sanity checks on its contents before handing it over to individual decoding funtions for each type of structure. Currently supported structures are struct stat and struct sockaddr for the AF_INET, AF_INET6 and AF_UNIX families; support for AF_APPLETALK and AF_IPX is present but disabled, as I am unable to test it properly. Since 's' was already taken, the letter 't' is used by ktrace(1) to enable KTR_STRUCT trace points, and in kdump(1) to enable their decoding. Derived from patches by Andrew Li <andrew2.li@citi.com>. PR: kern/117836 MFC after: 3 weeks Revision Changes Path 1.324 +8 -0 src/sys/kern/kern_descrip.c 1.126 +31 -1 src/sys/kern/kern_ktrace.c 1.268 +36 -0 src/sys/kern/uipc_syscalls.c 1.450 +12 -0 src/sys/kern/vfs_syscalls.c 1.34 +13 -0 src/sys/sys/ktrace.h 1.16 +7 -3 src/usr.bin/kdump/kdump.1 1.40 +239 -4 src/usr.bin/kdump/kdump.c 1.11 +1 -0 src/usr.bin/kdump/mksubr 1.19 +7 -5 src/usr.bin/ktrace/ktrace.1 1.5 +1 -1 src/usr.bin/ktrace/ktrace.h 1.14 +3 -0 src/usr.bin/ktrace/subr.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802230101.m1N11ndD091703>