From owner-cvs-all Sun Mar 31 21:35:30 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7EE1537B41F; Sun, 31 Mar 2002 21:35:26 -0800 (PST) Received: (from jake@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g315ZQQ22659; Sun, 31 Mar 2002 21:35:26 -0800 (PST) (envelope-from jake) Message-Id: <200204010535.g315ZQQ22659@freefall.freebsd.org> From: Jake Burkholder Date: Sun, 31 Mar 2002 21:35:26 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf options src/sys/kern kern_ktr.c src/sys/sys ktr.h src/sys/sparc64/sparc64 genassym.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jake 2002/03/31 21:35:26 PST Modified files: sys/conf options sys/kern kern_ktr.c sys/sys ktr.h sys/sparc64/sparc64 genassym.c Log: ktr changes to improve performance and make writing a userland utility to dump the trace buffer feasible. - Remove KTR_EXTEND. This changes the format of the trace entries when activated, making writing a userland tool which is not tied to a specific kernel configuration difficult. - Use get_cyclecount() for timestamps. nanotime() is much too heavy weight and requires recursion protection due to ktr traces occuring as a result of ktr traces. KTR_VERBOSE may still require recursion protection, which is now conditional on it. - Allow KTR_CPU to be overridden by MD code. This is so that it is possible to trace early in startup before pcpu and/or curthread are setup. - Add a version number for the ktr interface. A userland tool can check this to detect mismatches. - Use an array for the parameters to make decoding in userland easier. - Add file and line recording to the non-extended traces now that the extended version is no more. These changes will break gdb macros to decode the extended version of the trace buffer which are floating around. Users of these macros should either use the show ktr command in ddb, or use the userland utility which can be run on a core dump. Approved by: jhb Tested on: i386, sparc64 Revision Changes Path 1.307 +0 -1 src/sys/conf/options 1.29 +47 -70 src/sys/kern/kern_ktr.c 1.30 +7 -6 src/sys/sparc64/sparc64/genassym.c 1.16 +16 -51 src/sys/sys/ktr.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message