From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx189.postini.com [74.125.245.189]) by kanga.kvack.org (Postfix) with SMTP id 4581C6B0032 for ; Fri, 12 Jul 2013 04:21:56 -0400 (EDT) Received: by mail-pa0-f54.google.com with SMTP id kx10so8746152pab.13 for ; Fri, 12 Jul 2013 01:21:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130712081348.GM25631@dyad.programming.kicks-ass.net> References: <1373596462-27115-1-git-send-email-ccross@android.com> <1373596462-27115-2-git-send-email-ccross@android.com> <51DF9682.9040301@kernel.org> <20130712081348.GM25631@dyad.programming.kicks-ass.net> Date: Fri, 12 Jul 2013 11:21:55 +0300 Message-ID: Subject: Re: [PATCH 2/2] mm: add a field to store names for private anonymous memory From: Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Colin Cross , LKML , Kyungmin Park , Christoph Hellwig , John Stultz , "Eric W. Biederman" , Dave Hansen , Rob Landley , Andrew Morton , Cyrill Gorcunov , David Rientjes , Davidlohr Bueso , Kees Cook , Al Viro , Hugh Dickins , Mel Gorman , Michel Lespinasse , Rik van Riel , Konstantin Khlebnikov , "Paul E. McKenney" , David Howells , Arnd Bergmann , Dave Jones , "Rafael J. Wysocki" , Oleg Nesterov , Shaohua Li , Sasha Levin , KOSAKI Motohiro , Johannes Weiner , Ingo Molnar , "list@ebiederm.org:DOCUMENTATION , list@ebiederm.org:MEMORY MANAGEMENT ," "linux-mm@kvack.org" On Fri, Jul 12, 2013 at 11:13 AM, Peter Zijlstra wrote: > I also don't see it helping with the JIT stuff; you still need to write out a > file with symbol information, we still need to find the file. A less hacky > solution for the entire JIT thing is you writing a proper ELF-DSO and > mmap()'ing that :-) > > Storing a JIT specific userspace pointer in the VMA doesn't help with any of > that. I'm thinking about corner cases like 'perf top' here. I don't see how we can write out a ELF-DSO because the JIT compiler can generate new symbols at any given time. That's what made me think it'd be best for the _kernel_ to know about the symbols so that perf could take advantage of that as well. Pekka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org