From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 21:27:23 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5519B106566B; Sat, 4 Dec 2010 21:27:23 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B581E8FC17; Sat, 4 Dec 2010 21:27:22 +0000 (UTC) Received: by wyf19 with SMTP id 19so10841101wyf.13 for ; Sat, 04 Dec 2010 13:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9TF363+E7Lb7FG9fRqoZvbhpcaEfVWgJwEzb9YP+wEs=; b=GEigaw43SfcsMxcRtXGFJgcIRhUhZ05jV/pQtOYUeSSt/Dhsk30u5Rf5ewoiY2Vej2 kj9E3inS1ospIMxdIbdijgc9VM1/jybg5YTg0154r85LrSCh6ilv4L1EG6EXJx2LOfJs Qr6QfCULAe/xwPeMjpLdDnzYoIfYiaza9aotw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uumqjujIMSbLp3iGf9ShissW9UN0ezvUYUtL0Ut7PM2hhENEkBRBTQCNjFhxMfuYX6 1EFskoVoZ6HqZgB3w6Qg4IVoDigje+zOxuLavgJbiUj5loALQCqrIXhxS3JERYukCbeK xJbgRGTmFrmvCjdyqmRPsMk5E+nbCjqAU8H+U= MIME-Version: 1.0 Received: by 10.216.28.72 with SMTP id f50mr3017798wea.104.1291498041268; Sat, 04 Dec 2010 13:27:21 -0800 (PST) Received: by 10.216.12.80 with HTTP; Sat, 4 Dec 2010 13:27:21 -0800 (PST) In-Reply-To: <4CFAA579.1010701@freebsd.org> References: <4CFAA579.1010701@freebsd.org> Date: Sat, 4 Dec 2010 15:27:21 -0600 Message-ID: From: Brandon Gooch To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace: Sending ^C while running script produces no output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 21:27:23 -0000 On Sat, Dec 4, 2010 at 2:32 PM, Andriy Gapon wrote: > on 03/12/2010 07:20 Brandon Gooch said the following: >> I've been tinkering with DTrace a bit, and I've notice something >> peculiar on each system I've tried it on. >> >> Sending ^C from the keyboard in the terminal (console, XTerm, Konsole) >> produces no output [1]. > > Can you ktrace the dtrace process? > I wonder, could it be that SIGINT from ^C is somehow delivered twice?.. I'll give it a shot in just a bit. >> For example, while trying out a one-liner (from >> http://www.brendangregg.com/DTrace/dtrace_oneliners.txt): >> >> brandon@d820:~$ sudo dtrace -n 'syscall:::entry { @num[execname] =3D cou= nt(); }' >> dtrace: description 'syscall:::entry ' matched 514 probes >> ^C > > BTW, sudo might play a role here... =A0Just a thought. I could see that for sure. I can't believe I hadn't thought of that right off the bat, but then again I tested while logged in as root from the console -- I think :/ Human memory is unreliable y'know... -Brandon