From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753558Ab2BXFrv (ORCPT ); Fri, 24 Feb 2012 00:47:51 -0500 Received: from mail-qy0-f174.google.com ([209.85.216.174]:58318 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117Ab2BXFrs convert rfc822-to-8bit (ORCPT ); Fri, 24 Feb 2012 00:47:48 -0500 MIME-Version: 1.0 In-Reply-To: <201202231847.55733.vapier@gentoo.org> References: <20120222150010.c784b29b.akpm@linux-foundation.org> <1329969811-3997-1-git-send-email-siddhesh.poyarekar@gmail.com> <201202231847.55733.vapier@gentoo.org> Date: Fri, 24 Feb 2012 11:17:48 +0530 Message-ID: Subject: Re: [PATCH] Mark thread stack correctly in proc//maps From: Siddhesh Poyarekar To: Mike Frysinger Cc: Andrew Morton , KOSAKI Motohiro , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, Jamie Lokier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 24, 2012 at 5:17 AM, Mike Frysinger wrote: > i don't suppose we could have it say "[tid stack]" rather than "[stack]" ?  or > perhaps even "[stack tid:%u]" with replacing %u with the tid ? Why do we need to differentiate a thread stack from a process stack? If someone really wants to know, the main stack is the last one since it doesn't look like mmap allocates anything above the stack right now. I like the idea of marking all stack vmas with their task ids but it will most likely break procps. Besides, I think it could be done within procps with this change rather than having the kernel do it. -- Siddhesh Poyarekar http://siddhesh.in