Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753743Ab2BORaS (ORCPT ); Wed, 15 Feb 2012 12:30:18 -0500 Received: from mail-pw0-f46.google.com ([209.85.160.46]:40222 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737Ab2BORaQ (ORCPT ); Wed, 15 Feb 2012 12:30:16 -0500 Message-ID: <4F3BEB9F.2090502@gmail.com> Date: Wed, 15 Feb 2012 10:30:07 -0700 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: Luigi Semenzato CC: Peter Zijlstra , Alexander Viro , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Andrew Morton , Vasiliy Kulikov , Stephen Wilson , Oleg Nesterov , Tejun Heo , Paul Gortmaker , Andi Kleen , Lucas De Marchi , Greg Kroah-Hartman , "Eric W. Biederman" , "Rafael J. Wysocki" , Frederic Weisbecker , Namhyung Kim , Robert Richter , linux-kernel@vger.kernel.org, sonnyrao@chromium.org, olofj@chromium.org, eranian@google.com Subject: Re: [PATCH] Perf: bug fix: distinguish between rename and exec References: <1329195360-10699-1-git-send-email-semenzato@chromium.org> <1329310113.2293.72.camel@twins> <4F3BE3F9.2010002@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 32 On 2/15/12 10:22 AM, Luigi Semenzato wrote: > > Any process that makes a prctl(PR_SET_NAME) call loses its mappings, > no matter when makes the call. The perf records for that process look > like this: > > COMM (for the initial exec) > MMAP (the executable) > MMAP (1st dll) > MMAP (2nd dll) > ... > COMM (for the prctl) > > The second COMM flushes the old mappings, and all samples from then on > cannot be classified. This is easily reproducible with a small > program, which I would be happy to send. Ok, I see that now. Thanks, David > > I found this while trying to use perf with Chrome on Chrome OS. > Chrome forks and execs all the time, and calls prctl() in the thread > library. -- 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/