From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 3 01:35:26 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D478106564A for ; Sat, 3 Mar 2012 01:35:26 +0000 (UTC) (envelope-from gavin.mu@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1ED738FC16 for ; Sat, 3 Mar 2012 01:35:25 +0000 (UTC) Received: by obbwc7 with SMTP id wc7so3650986obb.13 for ; Fri, 02 Mar 2012 17:35:25 -0800 (PST) Received-SPF: pass (google.com: domain of gavin.mu@gmail.com designates 10.60.20.6 as permitted sender) client-ip=10.60.20.6; Authentication-Results: mr.google.com; spf=pass (google.com: domain of gavin.mu@gmail.com designates 10.60.20.6 as permitted sender) smtp.mail=gavin.mu@gmail.com; dkim=pass header.i=gavin.mu@gmail.com Received: from mr.google.com ([10.60.20.6]) by 10.60.20.6 with SMTP id j6mr4759508oee.17.1330738525734 (num_hops = 1); Fri, 02 Mar 2012 17:35:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oE0uvaSTvyUc0d+h2BUmuX1lUIarjV6tYFME3t4+aRw=; b=M+pNU7e43g87ivvqHrGpQDK8LinNFvvhXxfbit619ThUHlxm0/XWTQmiyRMxbDNJCC Dvc9mjnkvCcYBinADZIiLnMnCUj6rQ2Lcdj77UE5tOFTH7FjQrRungtoXES3GCvOsmgP WReMumC8E0PyMrC6eWP5injPIAe7b057jHIv307lOq+rO15fQf8p3cn/qO9nbkDMdJWJ GvapVTq83mV1jlj923WIJT5Dw98HeUCCEaFxli1zAV8Nbwz1SFqBlX7FpaniWhb1m6QH FuxyeaEN5bzClBkF0V3Ge5O0s/J3Q5+9cL9UW4zOJh2WUH41dKlJv0kBeCUHUc+EAPGA ovUw== MIME-Version: 1.0 Received: by 10.60.20.6 with SMTP id j6mr4088966oee.17.1330736866863; Fri, 02 Mar 2012 17:07:46 -0800 (PST) Received: by 10.60.67.161 with HTTP; Fri, 2 Mar 2012 17:07:46 -0800 (PST) In-Reply-To: <4F516AA7.8060606@rawbw.com> References: <4F516AA7.8060606@rawbw.com> Date: Sat, 3 Mar 2012 09:07:46 +0800 Message-ID: From: Gavin Mu To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Can I take a snapshot of the current stack for every thread in some process from outside? 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, 03 Mar 2012 01:35:26 -0000 ports/sysutils/pstack can do this if you use x86 machine. On Sat, Mar 3, 2012 at 8:49 AM, Yuri wrote: > I have the multithreaded process, each thread has some stack state at each > point of time. For example during the timer tick when processes are > switched? > Is there a way to take a snapshot without disrupting a process? > > I was thinking gdb, but it requires the process to exit the system call to > attach (?). > DTrace is only activated particular sensors are crossed. > > So is there such a tool/command? > > Yuri > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"