Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:44699 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751658AbcFUKS1 (ORCPT ); Tue, 21 Jun 2016 06:18:27 -0400 Subject: Re: [GIT PULL 00/10] perf/core improvements and fixes References: <1466461410-13778-1-git-send-email-acme@kernel.org> <20160621021820.GA14105@danjae.aot.lge.com> From: Paolo Bonzini Message-ID: <2c189c43-81e8-4052-c62c-3b548b3eb32a@redhat.com> Date: Tue, 21 Jun 2016 12:08:47 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Brendan Gregg , Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Alexei Starovoitov , Andi Kleen , David Ahern , Ekaterina Tumanova , He Kuang , Jean Delvare , Jiri Olsa , Josh Poimboeuf , Kan Liang , linux-kbuild@vger.kernel.org, Masami Hiramatsu , Michal Marek , Pekka Enberg , Peter Zijlstra , pi3orama@163.com, Stephane Eranian , Sukadev Bhattiprolu , Wang Nan , Zefan Li , Arnaldo Carvalho de Melo On 21/06/2016 05:11, Brendan Gregg wrote: >>> > > - Add stackcollapse.py script to help generating flame graphs (Paolo Bonzini) >> > >> > I think this is already done by '-g folded'. Please see: >> > >> > http://www.brendangregg.com/blog/2016-04-30/linux-perf-folded.html >> > > Pretty much. Two similar solutions were developed around the same > time. Although I have to use some awk to get "perf -g folded" in the > exact right format, and stackcollapse-perf.py does that directly. Yes, the idea for stackcollapse-perf.py was: - to do everything directly and emit "the right" format for the flamegraph tools. This however is a very minimal output, and it's not necessarily the best for perf in general. - to provide an example of visiting callgraphs from the scripting interface, since it's not really documented. From the commit message: "Add stackcollapse.py script as an example of parsing call chains, and also of using optparse to access command line options". Paolo