From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753267AbaCGNUB (ORCPT ); Fri, 7 Mar 2014 08:20:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5115 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751818AbaCGNT5 (ORCPT ); Fri, 7 Mar 2014 08:19:57 -0500 Date: Fri, 7 Mar 2014 14:19:49 +0100 From: Jiri Olsa To: Andi Kleen Cc: acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, namhyung@kernel.org, Andi Kleen Subject: Re: [PATCH 2/8] perf, tools: Support handling complete branch stacks as histograms v4 Message-ID: <20140307131949.GC13974@krava.brq.redhat.com> References: <1393561352-23448-1-git-send-email-andi@firstfloor.org> <1393561352-23448-3-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1393561352-23448-3-git-send-email-andi@firstfloor.org> 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 Thu, Feb 27, 2014 at 08:22:26PM -0800, Andi Kleen wrote: > From: Andi Kleen SNIP > index 8ad97e9..be29bb8 100644 > --- a/tools/perf/util/callchain.h > +++ b/tools/perf/util/callchain.h > @@ -53,6 +53,7 @@ struct callchain_param { > sort_chain_func_t sort; > enum chain_order order; > enum chain_key key; > + bool branch_callstack; > }; > > struct callchain_list { > diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c > index ac37d78..6eff65e 100644 > --- a/tools/perf/util/machine.c > +++ b/tools/perf/util/machine.c > @@ -11,6 +11,7 @@ > #include > #include > #include "unwind.h" > +#include "linux/hash.h" > > int machine__init(struct machine *machine, const char *root_dir, pid_t pid) > { > @@ -1192,17 +1193,16 @@ static const u8 cpumodes[] = { > }; > #define NCPUMODES (sizeof(cpumodes)/sizeof(u8)) > > -static void ip__resolve_ams(struct machine *machine, struct thread *thread, > - struct addr_map_symbol *ams, > - u64 ip) > +static void resolve_branch_ams(struct machine *machine, struct thread *thread, > + u64 ip, > + struct addr_location *al) the function name is confusing.. there's no branch or ams being dealt with in here maybe something like resolve_ip_al or resolve_ip ? jirka