From owner-freebsd-bugs@freebsd.org Mon Aug 15 05:49:55 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F8D1BBA9FD for ; Mon, 15 Aug 2016 05:49:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44DA61C60 for ; Mon, 15 Aug 2016 05:49:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7F5ntLF017671 for ; Mon, 15 Aug 2016 05:49:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 211821] dtrace: invalid probe specifier lockstat:::: "/usr/lib/dtrace/tcp.d", line 201: operator / requires operands of arithmetic type Date: Mon, 15 Aug 2016 05:49:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@g3os.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 05:49:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211821 --- Comment #3 from Damon Zwolinski --- I think this is relevant: 1) On my emac, it looks like `hz is a pointer to an int.=20=20 # dtrace -n 'BEGIN { printf("`hz: %d\n", `hz); exit(0); }' dtrace: invalid probe specifier BEGIN { printf("%d\n", `hz); exit(0); }: printf( ) argument #2 is incompatible with conversion #1 prototype: conversion: %d prototype: char, short, int, long, or long long argument: int (*)() # dtrace -qn 'BEGIN { printf("`hz: %p, (int) `hz: %d\n", `hz, (int) `hz); exit(0); }' dtrace: buffer size lowered to 2m `hz: 3e8, (int) `hz: 1000 2) On my amd64 system (running in virtualbox on a macbook), `hz is an int. # uname -a FreeBSD macbook.local 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar= 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr /obj/usr/src/sys/GENERIC amd64 # dtrace -qn 'BEGIN { printf("`hz: %d\n", `hz); exit(0); }' `hz: 1000 # dtrace -qn 'BEGIN { printf("&`hz: %p, `hz: %d\n", &`hz, `hz); exit(0); }' &`hz: ffffffff816a5d4c, `hz: 1000 3) I would bet they should be the same. Assuming sys/sys/kernel.h is the right file, hz is defined as an int there = so maybe it's not being brought into dtrace correctly on powerpc and/or on 32 = bit systems. Because I used trace(`hz), which tries to do the right thing (use= a cast if needed) above, it seemed like it worked. I'm also surprised the va= lue of hz is 1000 on my amd64 system. I thought it would be higher; I double checked to make sure I didn't copy the wrong text. I guess it doesn't mean what I thought it meant. --=20 You are receiving this mail because: You are the assignee for the bug.=