From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751929AbaIEBma (ORCPT ); Thu, 4 Sep 2014 21:42:30 -0400 Received: from mail-oa0-f47.google.com ([209.85.219.47]:58688 "EHLO mail-oa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbaIEBm2 (ORCPT ); Thu, 4 Sep 2014 21:42:28 -0400 MIME-Version: 1.0 In-Reply-To: <20140905011804.GC30520@kernel.org> References: <1409035119-24357-1-git-send-email-namhyung@kernel.org> <20140904141845.GD2997@kernel.org> <87a96f9bci.fsf@sejong.aot.lge.com> <20140905011804.GC30520@kernel.org> From: Namhyung Kim Date: Fri, 5 Sep 2014 10:42:07 +0900 X-Google-Sender-Auth: FtRs5lV--ny2FDgfiQEVm3MYt9A Message-ID: Subject: Re: [PATCH] perf tools: Fix build-id matching on vmlinux To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , Paul Mackerras , Namhyung Kim , LKML , Jiri Olsa , David Ahern , Adrian Hunter , Andi Kleen , Stephane Eranian , stable@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 5, 2014 at 10:18 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 05, 2014 at 09:09:49AM +0900, Namhyung Kim escreveu: >> The perf report rebuilds machine states from the event records only. In >> this case, the kernel map was recorded in the name of [kernel.kallsyms] >> so it couldn't find the build-id from the table. > > Ok, but then we can special case this one, no? > > Somehow mark in the buildid table that that entry is the one for the > kernel and hook it up to the synthesized event that has the > [kernel.kallsyms].ref_reloc_sym entry. Maybe we can search vmlinux in machine->kernel_dsos first when processing kernel mmap event. And in this case do you want replace the name of mapping to a fullname of vmlinux? Thanks, Namhyung