From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759665Ab3KMSaF (ORCPT ); Wed, 13 Nov 2013 13:30:05 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:59443 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757477Ab3KMS34 (ORCPT ); Wed, 13 Nov 2013 13:29:56 -0500 Date: Wed, 13 Nov 2013 19:29:53 +0100 From: Frederic Weisbecker To: Arnaldo Carvalho de Melo Cc: David Ahern , Namhyung Kim , Ingo Molnar , LKML Subject: Re: perf tip: fails to convert comm Message-ID: <20131113182951.GB28039@localhost.localdomain> References: <528306F5.8050307@gmail.com> <20131113180344.GA28039@localhost.localdomain> <20131113180746.GE14758@ghostprotocols.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131113180746.GE14758@ghostprotocols.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2013 at 03:07:46PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 13, 2013 at 07:03:47PM +0100, Frederic Weisbecker escreveu: > > On Tue, Nov 12, 2013 at 09:58:29PM -0700, David Ahern wrote: > > > Hi Namhyung and Frederic: > > > > > > If you recall I mentioned noting a problem with the callchain series > > > showing comm's. Well, it fails on acme's perf/core. git bisect > > > points to: > > > > > > $ git bisect bad > > > 4dfced359fbc719a35527416f1b4b3999647f68b is the first bad commit > > > commit 4dfced359fbc719a35527416f1b4b3999647f68b > > > Author: Namhyung Kim > > > Date: Fri Sep 13 16:28:57 2013 +0900 > > > > > > perf tools: Get current comm instead of last one > > > > > > At insert time, a hist entry should reference comm at the time > > > otherwise > > > it'll get the last comm anyway. > > > > > > > > > How to re-create: > > > > > > Start point is tools/perf directory for 3.12 (Linus tree): > > > $ perf sched record -o /tmp/perf.data -g -- make -j 16 > > > $ perf script -i /tmp/perf.data > /tmp/1 > > > > > > cd to Arnaldo's tree, make perf and use it to create /tmp/2: > > > $ perf script -i /tmp/perf.data > /tmp/1 > > > $ diff -U3 /tmp/1 /tmp/2 | less > > > > > > You'll see a number of comm's showing as : instead of make, etc. > > > > I see. I can reproduce, I'll check and see what happens. It would be nice if > > we could have an option to dump internal perf events like comm events as well > > in the perf script stream. > > 'perf record -D' not enough? No because it's not easy to correlate with perf script event output. Although it could be if we simply dump the time the same way in both.