From owner-freebsd-dtrace@FreeBSD.ORG Thu Apr 23 14:20:29 2015 Return-Path: Delivered-To: freebsd-dtrace@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78077815 for ; Thu, 23 Apr 2015 14:20:29 +0000 (UTC) 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 6245A1370 for ; Thu, 23 Apr 2015 14:20:29 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t3NEKTvQ040788 for ; Thu, 23 Apr 2015 14:20:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-dtrace@FreeBSD.org Subject: [Bug 195222] dtrace kernel sdt probes must always be anchored Date: Thu, 23 Apr 2015 14:20:29 +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: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-dtrace@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2015 14:20:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195222 --- Comment #2 from Andriy Gapon --- (In reply to Mark Johnston from comment #1) Mark, sorry for not getting back sooner. It so happened that when opened this bug report I also did some quick hacking along the same lines as your work: https://github.com/avg-I/freebsd/compare/master...avg-I:experiment/amd64-sdt-invop https://github.com/avg-I/freebsd/compare/master...avg-I:experiment/amd64-sdt-invop.diff This is also WIP. Some things that I considered which are not done: - remove function parameter from SDT probes, so that it is not set by a programmer but is determined automatically - #BP could be used instead of #UD to trigger an SDT probe Instead of sdtconvert like yours I used a shell script that generates an assembly file that defines a linker set pointing to all the interesting addresses. Unfortunately, I do not have much time to work at this now. I hope that eventually one of us would be able to converge the changes and commit the result. One last note, I cared only about amd64 in my changes. Obviously, all supported architectures have to be covered. Or perhaps we could support both ways of implementing SDT probes, so that architectures could be converted one by one. -- You are receiving this mail because: You are the assignee for the bug.