From owner-freebsd-dtrace@freebsd.org Fri Oct 16 05:53:02 2015 Return-Path: Delivered-To: freebsd-dtrace@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 38313A166D9 for ; Fri, 16 Oct 2015 05:53:02 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F28121837 for ; Fri, 16 Oct 2015 05:53:01 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: by yknn9 with SMTP id n9so25073517ykn.0 for ; Thu, 15 Oct 2015 22:53:01 -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=9+jjMUWZ0MrtDJtgbJn3T/RDwOZkiOzdCwAi6vegFUA=; b=Lkfh1dfA26IEYunXEAD2hGXfTcf7jgI9+wGNARAmq5QbPNo6nnG4xbQz3fOPAjRyWH ToTnVl+BxEteEj6N31Ds8eW73xJJ7P67ykVfzxirG0ajeDqPRyiTE6eWcdeMALYPqoEq LsQ76Ihl3E3ds5uzIPH/8JmHwoH1Xk2cj58IDQ+8IVRlcNsJVhcfzztG1tc4A2/3fqA3 C9i7a1JftVCX76PL0PWxI9OCVBoQihOQFdZSLDEi56XQ/Po2HpEpckds9/bhepOycQ5d vIL622MmFyyv2sWroh77rK0VYMzVlqIpjqzD1FFMykE77/Ks+uJ92Omrt0HrIGIJGJdh EePg== MIME-Version: 1.0 X-Received: by 10.129.35.6 with SMTP id j6mr9219506ywj.8.1444974780953; Thu, 15 Oct 2015 22:53:00 -0700 (PDT) Received: by 10.129.88.70 with HTTP; Thu, 15 Oct 2015 22:53:00 -0700 (PDT) Date: Thu, 15 Oct 2015 22:53:00 -0700 Message-ID: Subject: Running DTrace Userland probes at times terminates traced process From: Shrikanth Kamath To: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Fri, 16 Oct 2015 05:53:02 -0000 It maybe a non issue but wanted to check with the forum, I am running the following dtrace one liner on the login process root@bsdvm#dtrace -ln 'pid$target::*:entry' -p root@bsdvm:~ # ps PID TT STAT TIME COMMAND 1820 u0 Ss 0:00.02 login [pam] (login) ... root@bsdvm:~ # uname -a FreeBSD bsdvm 10.2-STABLE FreeBSD 10.2-STABLE #0 r286878: Tue Aug 18 22:14:16 UTC 2015 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 But before it can finish listing all the probes I issue a CTRL-C and thereby stopping dtrace. This results in terminating the login process. When I ran ktrace on dtrace I see it does a PT_ATTACH but since I do not allow to run it to completion and terminate early it fails to do a clean PT_DETACH thereby terminating the traced process. May not be an issue if we don't kill DTrace after it has done a PT_ATTACH... -- Shrikanth R K