Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Annotation weekly ponies delivery

Received: by 10.204.132.81 with SMTP id a17mr845926bkt.4.1336996803675;
        Mon, 14 May 2012 05:00:03 -0700 (PDT)
Path: e27ni865bkw.0!nntp.google.com!news2.google.com!goblin3!goblin.stu.neva.ru!news.nobody.at!newsfeed.datemas.de!newsfeed.x-privat.org!bofh.it!news.nic.it!robomod
From: Ingo Molnar <mi...@kernel.org>
Newsgroups: linux.kernel
Subject: Re: [GIT PULL 0/8] Annotation weekly ponies delivery
Date: Mon, 14 May 2012 14:00:02 +0200
Message-ID: <j126u-2Hr-5@gated-at.bofh.it>
References: <j0qDT-6xY-9@gated-at.bofh.it> <j0rqh-7T9-11@gated-at.bofh.it> <j11tM-1NI-15@gated-at.bofh.it>
X-Original-To: Peter Zijlstra <pet...@infradead.org>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=sender:date:from:to:cc:subject:message-id:references:mime-version
         :content-type:content-disposition:in-reply-to:user-agent;
        bh=+r6tzsRv4qvFzM7DpbHIC2R/JrsK3lW1LFhfMIwmhIo=;
        b=crQulaJgXUrqvv2sfauO1ycinxkXGotdwt1MRnResFcspp+qpi4NM5qYFsIIDcnD58
         0UOdMztYMMkVR9NyunLVHES9Q17kOhslTHEc5venc4BDneW4CnNjvVAuKO6M87nv3aLp
         k8FLZl+0SroBYFJVjSHlTSk8OWoCWCTGT6V+vqKMVP+CbH75cCpft1HQJIJ+oSGHb48v
         +VupRrna3zneVIGeBRr1u/LvzzlMDdPWH4DBtXFc1qX9kOoyKHLiWCze5MiAAy2VRSVz
         r0+KWwIfI6QHOHFF6wcUFa/SOpJPFpg4aFqj2eiunid9gElArHjWkz1KJLUVzNyqhLne
         s3GA==
MIME-Version: 1.0
User-Agent: Mutt/1.5.21 (2010-09-15)
Sender: robo...@news.nic.it
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org
Approved: robo...@news.nic.it
Lines: 56
Organization: linux.* mail to news gateway
X-Original-Cc: Linus Torvalds <torva...@linux-foundation.org>,
	Arnaldo Carvalho de Melo <a...@infradead.org>,
	linux-ker...@vger.kernel.org,
	Arjan van de Ven <ar...@infradead.org>,
	David Ahern <dsah...@gmail.com>,
	Frederic Weisbecker <fweis...@gmail.com>,
	Mike Galbraith <efa...@gmx.de>,
	Namhyung Kim <namhy...@gmail.com>,
	Paul Mackerras <pau...@samba.org>,
	Stephane Eranian <eran...@google.com>, arnaldo.m...@gmail.com,
	Arnaldo Carvalho de Melo <a...@redhat.com>
X-Original-Date: Mon, 14 May 2012 13:55:51 +0200
X-Original-Message-ID: <20120514115551.GA6...@gmail.com>
X-Original-References: <1336852387-16322-1-git-send-email-a...@infradead.org>
 <CA+55aFxeqrCj71fSe2r9kwzyO9q2BT9A89f7nLUgbrTG_uP...@mail.gmail.com>
 <1336994000.2443.24.camel@twins>
X-Original-Sender: linux-kernel-ow...@vger.kernel.org
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


* Peter Zijlstra <pet...@infradead.org> wrote:

> On Sat, 2012-05-12 at 13:40 -0700, Linus Torvalds wrote:
> > The whole "-e cycles:pp" doesn't work any more. I don't get any nice
> > PEBS information, I get the totally useless irq-based profiling.
> > 
> > The difference for a "make -j" profile is quite stunning:
> > 
> > Doing "perf record -f -e cycles:pp -F 20000 make -j"
> > 
> >  - my current git:
> > 
> >     [ perf record: Woken up 47 times to write data ]
> >     [ perf record: Captured and wrote 11.890 MB perf.data (~519462 samples) ]
> > 
> >  - with the above tree pulled into my current git tree (but compiling
> > the same old tree):
> > 
> >     [ perf record: Woken up 1 times to write data ]
> >     [ perf record: Captured and wrote 0.031 MB perf.data (~1375 samples) ] 
> 
> The output simply suggests we're not getting enough samples 
> not that PEBS isn't working, in fact I can could reproduce 
> without using PEBS.
> 
> This bisected to the below commit, the code has since been 
> changed again and all that evlist stuff gives me a head-ache. 
> Acme, Namhyung ?
> 
> 55261f46702cec96911a81aacfb3cba13434d304 is the first bad commit
> commit 55261f46702cec96911a81aacfb3cba13434d304
> Author: Namhyung Kim <namhyung....@lge.com>
> Date:   Mon May 7 14:08:59 2012 +0900
> 
>     perf evlist: Fix creation of cpu map

Another detail seems to be that the bug takes per-task-inherited 
profiling. Doing:

   perf record -a -e cycles:pp make -j64 bzImage

produces the expected number of events. Without the '-a' the bug 
Linus found triggers.

Similarly, 'perf top' does not trigger the bug - because it's 
using per CPU, not per task (inherited) profiling.

Thanks,

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/