Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756492AbYKKOEP (ORCPT ); Tue, 11 Nov 2008 09:04:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755903AbYKKOD6 (ORCPT ); Tue, 11 Nov 2008 09:03:58 -0500 Received: from aun.it.uu.se ([130.238.12.36]:54924 "EHLO aun.it.uu.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755878AbYKKOD6 (ORCPT ); Tue, 11 Nov 2008 09:03:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18713.37039.130384.255448@harpo.it.uu.se> Date: Tue, 11 Nov 2008 15:03:27 +0100 From: Mikael Pettersson To: Ingo Molnar 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 In-Reply-To: <20081111132018.GI14989@elte.hu> References: <20081107003021.GA18666@google.com> <20081107004824.GA28780@x200.localdomain> <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> X-Mailer: VM 7.17 under Emacs 20.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 22 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. -- 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/