From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756152Ab1H3TLI (ORCPT ); Tue, 30 Aug 2011 15:11:08 -0400 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:48919 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756138Ab1H3TLF (ORCPT ); Tue, 30 Aug 2011 15:11:05 -0400 Subject: Re: [PATCH] perf symbols: Synthesize anonymous mmap events From: Pekka Enberg To: Anton Blanchard Cc: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , emunson@mgebm.net, linux-kernel@vger.kernel.org In-Reply-To: <20110830091506.60b51fe8@kryten> References: <20110830091506.60b51fe8@kryten> Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 30 Aug 2011 22:11:02 +0300 Message-ID: <1314731462.9659.3.camel@jaguar> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-08-30 at 09:15 +1000, Anton Blanchard wrote: > perf_event__synthesize_mmap_events does not create anonymous mmap > events even though the kernel does. As a result an already running > application with dynamically created code will not get profiled - > all samples end up in the unknown bucket. > > This patch skips any entries with '[' in the name to avoid adding > events for special regions (eg the vsyscall page). All other > executable mmaps are assumed to be anonymous and an event is > synthesized. > > Signed-off-by: Anton Blanchard Acked-by: Pekka Enberg