From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760043AbZFXPuQ (ORCPT ); Wed, 24 Jun 2009 11:50:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751976AbZFXPuE (ORCPT ); Wed, 24 Jun 2009 11:50:04 -0400 Received: from www84.your-server.de ([213.133.104.84]:57756 "EHLO www84.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751301AbZFXPuD (ORCPT ); Wed, 24 Jun 2009 11:50:03 -0400 Subject: Re: [patch 2/2] procfs: provide stack information for threads V0.10 From: Stefani Seibold To: Ingo Molnar Cc: Andrew Morton , linux-kernel , "Eric W. Biederman" , Alexey Dobriyan , Peter Zijlstra In-Reply-To: <20090624152019.GD15037@elte.hu> References: <200906182243.n5IMhwuV003008@imap1.linux-foundation.org> <1245824444.22613.3.camel@wall-e> <20090623233247.7ed661b7.akpm@linux-foundation.org> <1245825903.23818.4.camel@wall-e> <20090624001302.18de9e21.akpm@linux-foundation.org> <1245854033.10579.4.camel@wall-e> <20090624152019.GD15037@elte.hu> Content-Type: text/plain Date: Wed, 24 Jun 2009 17:49:50 +0200 Message-Id: <1245858590.13531.2.camel@wall-e> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: stefani@seibold.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, den 24.06.2009, 17:20 +0200 schrieb Ingo Molnar: > * Stefani Seibold wrote: > > > Hi, > > > > this is the newest version of the formaly named "detailed stack info" > > patch which give you a better overview of the userland application stack > > usage, especially for embedded linux. > > > > Currently you are only able to dump the main process/thread stack usage > > which is showed in /proc/pid/status by the "VmStk" Value. But you get no > > information about the consumed stack memory of the the threads. > > > > There is an enhancement in the /proc//{task/*,}/*maps and which > > marks the vm mapping where the thread stack pointer reside with "[thread > > stack xxxxxxxx]". xxxxxxxx is the maximum size of stack. This is a > > value information, because libpthread doesn't set the start of the stack > > to the top of the mapped area, depending of the pthread usage. > > > > A sample output of /proc//task//maps looks like: > > > > 08048000-08049000 r-xp 00000000 03:00 8312 /opt/z > > 08049000-0804a000 rw-p 00001000 03:00 8312 /opt/z > > 0804a000-0806b000 rw-p 00000000 00:00 0 [heap] > > a7d12000-a7d13000 ---p 00000000 00:00 0 > > a7d13000-a7f13000 rw-p 00000000 00:00 0 [thread stack: 001ff4b4] > > I have the same question as before: have you checked the use of that > field in tools/perf/builtin-record.c, and how your change will > impact that? > Good question... i have another one: What is tools/perf/builtin-record.c and where can i find it? Then i could check it. > Ingo