From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 3 01:23:31 2012 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 430B4106564A for ; Sat, 3 Mar 2012 01:23:31 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA058FC08 for ; Sat, 3 Mar 2012 01:23:30 +0000 (UTC) Received: by daec6 with SMTP id c6so2785076dae.13 for ; Fri, 02 Mar 2012 17:23:30 -0800 (PST) Received-SPF: pass (google.com: domain of maksim.yevmenkin@gmail.com designates 10.68.223.161 as permitted sender) client-ip=10.68.223.161; Authentication-Results: mr.google.com; spf=pass (google.com: domain of maksim.yevmenkin@gmail.com designates 10.68.223.161 as permitted sender) smtp.mail=maksim.yevmenkin@gmail.com; dkim=pass header.i=maksim.yevmenkin@gmail.com Received: from mr.google.com ([10.68.223.161]) by 10.68.223.161 with SMTP id qv1mr22559483pbc.2.1330737810694 (num_hops = 1); Fri, 02 Mar 2012 17:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=XfXZWvkbyMprarQynKrOFT+3rJS7fwepQR6leuUoYu4=; b=UYnlJMTw2HHCQeATyLjs20PLwzzqCNJdMdUEl4IeTbbmsDQ9BwTrXSAmhx2MC4ZKnT c+NAGPwEbemyMZrx6lq/gsblCrTszjekZvh/oqnUgocFi6b0Mp2UHkVfmlLfoGnC8CZZ +7n2n77iEusr+sN2vWflLa5saZ9JO0KmDzWpXQo9yXnMrnx3q/vXlb5KU6X66cCNuud7 nr4gIKTK83TaAwHxG0HcpDpSYecBjcYZl7ZO5NW4luBm/i+kZrK5kMoYfl3OxYhvpLxX Dm0gbx1G57mdTEKbChfVtdOMXE0PoWmw+2LK3subZu03AcTen/3AHFWhEu2F6xipXt51 SK9Q== Received: by 10.68.223.161 with SMTP id qv1mr18727603pbc.2.1330736214209; Fri, 02 Mar 2012 16:56:54 -0800 (PST) Received: from [10.42.123.8] (mobile-166-205-136-112.mycingular.net. [166.205.136.112]) by mx.google.com with ESMTPS id y1sm6326311pbg.73.2012.03.02.16.56.52 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Mar 2012 16:56:53 -0800 (PST) References: <4F516AA7.8060606@rawbw.com> In-Reply-To: <4F516AA7.8060606@rawbw.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <0380ADFC-CD78-4D41-894C-591D24EF9B35@gmail.com> X-Mailer: iPhone Mail (9A405) From: maksim yevmenkin Date: Fri, 2 Mar 2012 16:56:45 -0800 To: Yuri 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:23:31 -0000 Gdb. Thread apply all bt.=20 Thanks, Max On Mar 2, 2012, at 4:49 PM, 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 switche= d? > Is there a way to take a snapshot without disrupting a process? >=20 > I was thinking gdb, but it requires the process to exit the system call to= attach (?). > DTrace is only activated particular sensors are crossed. >=20 > So is there such a tool/command? >=20 > 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"=