From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Johnson Subject: Re: perf top -z not working? Date: Mon, 22 Oct 2012 12:04:18 -0400 Message-ID: <50856E82.8000903@cs.utoronto.ca> References: <507EA40D.60206@cs.utoronto.ca> <507EB776.9030304@core.kaist.ac.kr> <20121022014618.GA7924@ghostprotocols.net> <50853311.3040707@cs.utoronto.ca> <50854633.30206@gmail.com> <508553D1.8040603@cs.utoronto.ca> <20121022144552.GB8775@ghostprotocols.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from bureau60.ns.utoronto.ca ([128.100.132.147]:32808 "EHLO bureau60.ns.utoronto.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921Ab2JVQER (ORCPT ); Mon, 22 Oct 2012 12:04:17 -0400 In-Reply-To: <20121022144552.GB8775@ghostprotocols.net> Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Arnaldo Carvalho de Melo Cc: David Ahern , Chulmin Kim , linux-perf-users@vger.kernel.org On 22/10/2012 10:45 AM, Arnaldo Carvalho de Melo wrote: > Em Mon, Oct 22, 2012 at 10:10:25AM -0400, Ryan Johnson escreveu: >> On 22/10/2012 9:12 AM, David Ahern wrote: >>> The kernel has nothing to do with the feature. From builtin-top.c, >>> this part is either not happening or more likely not happening >>> correctly. >>> >>> if (top->zero) >>> symbol__annotate_zero_histogram(symbol, top->sym_evsel->idx); >>> else >>> symbol__annotate_decay_histogram(symbol, top->sym_evsel->idx); >>> >>> I recall it working recently - last year or so. Can you try >>> different versions -- say 3.0, 3.2, 3.4 and latest? If you have a >>> copy of Linus' tree or Arnaldo's git tree it should not take much >>> time. >> Chulmin says his 3.0 version works. My 3.2.18 doesn't. I don't have >> a copy of the git tree on that machine, but I'll try building 3.4.x >> and tip when I get a chance. I have never built perf-tools before, >> though, so I'd appreciate tips on what might be different for >> building perf-tools compared to the kernel, and how to avoid >> building the standard kernel along the way. Hopefully it's just >> configure-make-install? > To build just the tools, on a /usr/src/linux or wherever you have the > newer kernel sources: > > make -C tools/perf install > > Then make sure you use what is in your ~/bin/ before the standard path: > > export PATH=~/bin:$PATH > hash -r > > Then try perf top -z again. OK! That doesn't sound bad at all. Thanks, Ryan