Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754372AbZJTGAv (ORCPT ); Tue, 20 Oct 2009 02:00:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753447AbZJTGAu (ORCPT ); Tue, 20 Oct 2009 02:00:50 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:54525 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929AbZJTGAu (ORCPT ); Tue, 20 Oct 2009 02:00:50 -0400 Date: Tue, 20 Oct 2009 08:00:43 +0200 From: Ingo Molnar To: Peter Zijlstra , Arnaldo Carvalho de Melo , Mike Galbraith , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker Cc: Tim Blechmann , linux-kernel@vger.kernel.org Subject: Re: pref record question Message-ID: <20091020060043.GB8550@elte.hu> References: <4ADC9C2A.5020707@klingt.org> <1256012810.17774.17.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1256012810.17774.17.camel@laptop> User-Agent: Mutt/1.5.19 (2009-01-05) X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 25 * Peter Zijlstra wrote: > On Mon, 2009-10-19 at 19:04 +0200, Tim Blechmann wrote: > > > i am trying to do some profiling with perf (2.6.31.4). while > > thread-level profiling works fine, i haven't been able to record > > profiling data of a whole process (i.e. main thread + child > > threads). from my understanding, this should be enabled by running > > 'perf record -i' on the main thread. this does only collect the data > > from the main thread, though. > > > > is this an issue with perf or with my understanding of perf? > > -i will only inherit the counters on new fork()/clone() calls, so an > existing process/task tree will not automagically get the counters. Looks like something very much worth fixing. Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/