From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 26 04:20:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CFCE1065672 for ; Mon, 26 Jan 2009 04:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 65EBB8FC16 for ; Mon, 26 Jan 2009 04:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0Q4K1UG076081 for ; Mon, 26 Jan 2009 04:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0Q4K13U076080; Mon, 26 Jan 2009 04:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 26 Jan 2009 04:20:01 GMT Resent-Message-Id: <200901260420.n0Q4K13U076080@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Masayuki FUKUI Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72D801065670 for ; Mon, 26 Jan 2009 04:19:06 +0000 (UTC) (envelope-from fukui@fanet.net) Received: from mail.fanet.net (home.fanet.net [202.229.191.26]) by mx1.freebsd.org (Postfix) with ESMTP id 016EB8FC0A for ; Mon, 26 Jan 2009 04:19:05 +0000 (UTC) (envelope-from fukui@fanet.net) Received: from home.fanet.net by mail.fanet.net (8.14.3+3.5Wbeta/8.14.3) with ESMTP id n0Q47pEA041866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Jan 2009 13:07:51 +0900 (JST) (envelope-from fukui@fanet.net) Received: (from fukui@localhost) by home.fanet.net (8.14.3+3.5Wbeta/8.14.3/Submit) id n0Q47p1n041863; Mon, 26 Jan 2009 13:07:51 +0900 (JST) (envelope-from fukui) Message-Id: <200901260407.n0Q47p1n041863@home.fanet.net> Date: Mon, 26 Jan 2009 13:07:51 +0900 (JST) From: Masayuki FUKUI To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/130998: DTrace stops tracing because of struct thread X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Masayuki FUKUI List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 04:20:01 -0000 >Number: 130998 >Category: kern >Synopsis: DTrace stops tracing because of struct thread >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 26 04:20:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 7.1-RELEASE-p2 amd64 >Organization: >Environment: System: FreeBSD base.fanet.net 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Sun Jan 25 09:15:13 JST 2009 root@base.fanet.net:/usr/src/sys/amd64/compile/GENERIC amd64 >Description: DTrace support was enabled referring to http://www.freebsd.org/doc/en/books/handbook/book.html#DTRACE However, various DTraceToolkit applications stop tracing as follows. # dtrace -l | wc -l 17271 # ./hotkernel Sampling... Hit Ctrl-C to end. dtrace: invalid probe specifier #pragma D option quiet profile:::profile-1001hz /arg0/ { @pc[arg0] = count(); } dtrace:::END { printa("%a %@d\n", @pc); } : "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name FUNCTION COUNT PCNT # ./procsystime -n csh dtrace: invalid probe specifier #pragma D option quiet (...snip...) /* * Syscall count report */ dtrace:::END /OPT_counts/ { printf("\nSyscall Counts for "); OPT_pid ? printf("PID %d,\n\n",PID) : 1; OPT_name ? printf("processes %s,\n\n",NAME) : 1; OPT_command ? printf("command %s,\n\n",COMMAND) : 1; (! OPT_filter) ? printf("all processes,\n\n") : 1; printf("%16s %18s\n","SYSCALL","COUNT"); OPT_counts ? printa("%16s %@18d\n",@Counts) : 1; } : "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name # ./dapptrace /bin/pwd /var/tmp/DTraceToolkit-0.99/Bin dtrace: invalid probe specifier #pragma D option quiet (...snip...) /* print counts */ dtrace:::END { OPT_counts ? printf("\n%-49s %16s\n","CALL","COUNT") : 1; OPT_counts && OPT_liball ? printa("%-16s %-32s %@16d\n",@Counts) : 1; OPT_counts && ! OPT_liball ? printa("%-49s %@16d\n",@Counts) : 1; } : "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name >How-To-Repeat: See http://www.freebsd.org/doc/en/books/handbook/book.html#DTRACE and run DTraceToolkit applications on FreeBSD 7.1-RELEASE. >Fix: >Release-Note: >Audit-Trail: >Unformatted: