From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753880AbcFPHtc (ORCPT ); Thu, 16 Jun 2016 03:49:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58706 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753830AbcFPHtb (ORCPT ); Thu, 16 Jun 2016 03:49:31 -0400 Date: Thu, 16 Jun 2016 09:49:28 +0200 From: Jiri Olsa To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Arnaldo Carvalho de Melo , Brendan Gregg Subject: Re: [PATCH] perf script: Add stackcollapse.py script Message-ID: <20160616074928.GA20646@krava> References: <1460467573-22989-1-git-send-email-pbonzini@redhat.com> <69b9bcd9-4d51-3bbf-73e2-db462ca0c1d9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69b9bcd9-4d51-3bbf-73e2-db462ca0c1d9@redhat.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 16 Jun 2016 07:49:31 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 16, 2016 at 09:22:59AM +0200, Paolo Bonzini wrote: > On 12/04/2016 15:26, Paolo Bonzini wrote: > > Add stackcollapse.py script as an example of parsing call chains, and > > also of using optparse to access command line options. > > > > The flame graph tools include a set of scripts that parse output from > > various tools (including "perf script"), remove the offsets in the > > function and collapse each stack to a single line. The website also says > > "perf report could have a report style [...] that output folded stacks > > directly, obviating the need for stackcollapse-perf.pl", so here it is. > > > > This script is a Python rewrite of stackcollapse-perf.pl, using the perf > > scripting interface to access the perf data directly from Python. > > > > Cc: Jiri Olsa > > Cc: Arnaldo Carvalho de Melo > > Cc: Brendan Gregg > > Signed-off-by: Paolo Bonzini > > --- > > tools/perf/scripts/python/bin/stackcollapse-record | 8 ++ > > tools/perf/scripts/python/bin/stackcollapse-report | 3 + > > tools/perf/scripts/python/stackcollapse.py | 127 +++++++++++++++++++++ > > 3 files changed, 138 insertions(+) > > create mode 100755 tools/perf/scripts/python/bin/stackcollapse-record > > create mode 100755 tools/perf/scripts/python/bin/stackcollapse-report > > create mode 100755 tools/perf/scripts/python/stackcollapse.py > > Ping^2? sorry for delay.. I just answered the other email jirka