From owner-p4-projects@FreeBSD.ORG Fri Feb 15 02:44:07 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 05A5516A41B; Fri, 15 Feb 2008 02:44:07 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85A5116A41A for ; Fri, 15 Feb 2008 02:44:06 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7989513C455 for ; Fri, 15 Feb 2008 02:44:06 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1F2i6XG082383 for ; Fri, 15 Feb 2008 02:44:06 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1F2i5VD082364 for perforce@freebsd.org; Fri, 15 Feb 2008 02:44:05 GMT (envelope-from jb@freebsd.org) Date: Fri, 15 Feb 2008 02:44:05 GMT Message-Id: <200802150244.m1F2i5VD082364@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 135421 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 02:44:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=135421 Change 135421 by jb@jb_freebsd1 on 2008/02/15 02:43:14 Add an option to allow CTF data to be loaded with the ELF file. The CTF data has type information and for functions, the list or arguments too. This list is useful for the DTrace Function Boundary Trace (fbt) provider so that it can set the types for the functions it probes. Without this information, the arguments are uintptr_t's and have to be cast to a usable type. The CTF data is probably useful for DDB too and it may be useful even if the DTrace hooks aren't in the kernel. Of course the CTF data needs to be present as an ELF section in the file and it it isn't there, well, umm, life still needs to go on. So DDB_CTF tells the kernel to load TF data if it is there. Affected files ... .. //depot/projects/dtrace/src/sys/conf/options#40 edit Differences ... ==== //depot/projects/dtrace/src/sys/conf/options#40 (text+ko) ==== @@ -50,6 +50,7 @@ DDB DDB_CAPTURE_DEFAULTBUFSIZE opt_ddb.h DDB_CAPTURE_MAXBUFSIZE opt_ddb.h +DDB_CTF opt_ddb.h DDB_NUMSYM opt_ddb.h GDB KDB opt_global.h