Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752586Ab1F3FTK (ORCPT ); Thu, 30 Jun 2011 01:19:10 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:48121 "EHLO mail7.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750958Ab1F3FTI (ORCPT ); Thu, 30 Jun 2011 01:19:08 -0400 X-AuditID: b753bd60-a14c4ba000003bac-3e-4e0c07498b7c X-AuditID: b753bd60-a14c4ba000003bac-3e-4e0c07498b7c Message-ID: <4E0C073F.5020901@hitachi.com> Date: Thu, 30 Jun 2011 14:18:55 +0900 From: Akihiro Nagai User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: David Ahern Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Frederic Weisbecker , linux-kernel@vger.kernel.org, Masami Hiramatsu , yrl.pp-manager.tt@hitachi.com Subject: Re: [PATCH -tip 0/4] perf script: add BTS analysis features References: <20110628074019.4269.32109.stgit@linux3> <4E09F173.2060508@gmail.com> In-Reply-To: <4E09F173.2060508@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1195 Lines: 32 (2011/06/29 0:21), David Ahern wrote: > On 06/28/2011 01:40 AM, Akihiro Nagai wrote: >> BTW, I couldn't run a script generated by 'perf script -g {pyton|perl}' >> with branch events. How do I make scripts analyzing branch events? >> >> # perf record -e branches:u -c 1 -d ls >> # perf script -g python >> # perf script -s perf-script.py >> in trace_begin >> Fatal: no event_list! >> # perf script -g perl >> # perf script -s perf-script.pl >> Fatal: no event_list! > > Generated scripts currently only work on trace events. At this point it > is arguable that perf-script should be focused on the python and perl > scripts and the code for dumping the events should be moved to a new > command (perf-dump?). I see. Thank you for your information. I'd like to try adding the function to deal with HW-events with perf-script. I like perf-dump idea. It makes easier to specialize output format based on each event type. Thank you. > > David -- 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/