Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756668AbYKKOUD (ORCPT ); Tue, 11 Nov 2008 09:20:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755691AbYKKOTx (ORCPT ); Tue, 11 Nov 2008 09:19:53 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:49132 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753612AbYKKOTw (ORCPT ); Tue, 11 Nov 2008 09:19:52 -0500 Date: Tue, 11 Nov 2008 15:19:42 +0100 From: Ingo Molnar To: Mikael Pettersson Cc: Marcin Slusarz , Alexey Dobriyan , Andrew Morton , Ken Chen , linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [patch] add /proc/pid/stack to dump task's stack trace Message-ID: <20081111141942.GA7079@elte.hu> References: <20081107074147.GA26607@elte.hu> <20081107075925.GA1825@elte.hu> <20081107082003.GA15800@x200.localdomain> <20081107083249.GD4435@elte.hu> <20081107084943.GA16147@x200.localdomain> <20081107085352.GA27245@elte.hu> <20081107090304.GA30540@elte.hu> <20081111122531.GA5836@joi> <20081111132018.GI14989@elte.hu> <18713.37039.130384.255448@harpo.it.uu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18713.37039.130384.255448@harpo.it.uu.se> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00,DNS_FROM_SECURITYSAGE autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 DNS_FROM_SECURITYSAGE RBL: Envelope sender in blackholes.securitysage.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1221 Lines: 30 * Mikael Pettersson wrote: > Ingo Molnar writes: > > > > # cat /proc/18579/stack > > > > [] 0xffffffffffffffff > > > > > > so this file provides view of _kernel_ stack only? > > > shouldn't it be named kernel-stack then? > > > > it prints the kernel stack right now, but i'd not restrict it to > > the kernel stack conceptually: i think we could eventually expand > > it to print the user-space portion of the stack as well. (in the > > case when user-space is built with frame pointers) We've got code > > for that in the kernel already. It would be an easy one-stop-shop > > for full-range. > > That would be quite fragile given the fact that user-space only has > to follow standard ABIs at specific points like calls to standard > library functions. In between, anything can, and does, happen. it's not fragile to robustly walk the userspace stack. The result might not always be meaningful of course. Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/