From owner-freebsd-dtrace@FreeBSD.ORG Wed Apr 16 00:35:19 2014 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 95ED0912 for ; Wed, 16 Apr 2014 00:35:19 +0000 (UTC) Received: from mail-oa0-x22c.google.com (mail-oa0-x22c.google.com [IPv6:2607:f8b0:4003:c02::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62987118A for ; Wed, 16 Apr 2014 00:35:19 +0000 (UTC) Received: by mail-oa0-f44.google.com with SMTP id n16so11781194oag.31 for ; Tue, 15 Apr 2014 17:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=X/Wl68ASQXyye442pNMMh0zM6Fxz9fsekcAg5GAPK8A=; b=FRJo+wucRfnR4SYYOZfIkJDNUnjWqcMuZWzKp3UxAUuDdyynDWvC3x87HGOE1rHI4y nTOnSrEG6kxDIBbD1zXO8mCy4lFpeyA1zOugMezzQHLjbz9EI660m9AjIw3GSt6tpYIu NMWzmvBEmDcEPP5uN2YXtEV3s7IZk42HI6chHwJ904MKiq/7MaqaYs3Y+kVv1HxrZr2H asFHvCIZbCu6FqK0KGy28MYwvUHeGI7JpXHtHC+N6EUQzMjIBx26kwHVW6/s6Y8Vddhj AAySdjxXnWAV6YzF+ROgyxursEz/3Ls8+7N7nMxdvZzdqkEAwjdz7ofoFeUHGYFr49U0 VvPw== MIME-Version: 1.0 X-Received: by 10.182.105.1 with SMTP id gi1mr4073762obb.9.1397608518719; Tue, 15 Apr 2014 17:35:18 -0700 (PDT) Received: by 10.182.172.105 with HTTP; Tue, 15 Apr 2014 17:35:18 -0700 (PDT) Date: Tue, 15 Apr 2014 21:35:18 -0300 Message-ID: Subject: uaddr and friends From: carlos antonio neira bustos To: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 16 Apr 2014 00:35:19 -0000 Hi All, I was looking at Dtrace todo list from https://wiki.freebsd.org/DTraceTODO and started to work on : Get uaddr(), ufunc(), umod(), and usym() action funtions working. I have the data recording action (uaddr) working now, here is an example: root@bsd:/home/cneira # dtrace -n 'pid$target::main:{uaddr(uregs[R_PC])}' -c ./test dtrace: description 'pid$target::main:' matched 2 probes abCPU ID FUNCTION:NAME 0 56282 main:entry test`main+0x1 0 56281 main:return test`main+0x23 dtrace: pid 9687 has exited Here is the output of nm from the test binary I have used to check this change. U _init_tls@@FBSD_1.0 08048380 T _start 080483a0 t _start1 0804814c r abitag U atexit@@FBSD_1.0 08048164 r crt_noinit_tag 080485c0 T dosomething 08049764 B environ U exit@@FBSD_1.0 080484f0 t finalizer 08048560 t frame_dummy 08048590 T main U putchar@@FBSD_1.0 root@bsd:/home/cneira # dtrace -c ./test -n 'pid$target::main:entry{ uaddr(0x080485c0); }' dtrace: description 'pid$target::main:entry' matched 1 probe abCPU ID FUNCTION:NAME 0 56281 main:entry test`dosomething dtrace: pid 9736 has exited I'll continue working on the rest, how do I submit a patch with these changes ? Bests