From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751789AbcFUKSd (ORCPT ); Tue, 21 Jun 2016 06:18:33 -0400 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 To: Brendan Gregg , Namhyung Kim References: <1466461410-13778-1-git-send-email-acme@kernel.org> <20160621021820.GA14105@danjae.aot.lge.com> 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 From: Paolo Bonzini Message-ID: <2c189c43-81e8-4052-c62c-3b548b3eb32a@redhat.com> Date: Tue, 21 Jun 2016 12:08:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 21 Jun 2016 10:08:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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