Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756315Ab1FPPO7 (ORCPT ); Thu, 16 Jun 2011 11:14:59 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]:19855 "HELO mail1.slb.deg.dub.stisp.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755448Ab1FPPO5 (ORCPT ); Thu, 16 Jun 2011 11:14:57 -0400 Message-ID: <4DFA1D07.1050705@draigBrady.com> Date: Thu, 16 Jun 2011 16:11:03 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Frederic Weisbecker CC: "Theodore Ts'o" , linux-kernel@vger.kernel.org Subject: Re: scheduler / perf stat question about CPU-migrations References: <20110616150347.GB23624@somewhere.redhat.com> In-Reply-To: <20110616150347.GB23624@somewhere.redhat.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 836 Lines: 28 On 16/06/11 16:03, Frederic Weisbecker wrote: > On Thu, Jun 16, 2011 at 10:46:26AM -0400, Theodore Ts'o wrote: >> Can someone tell me how I'm being confused? >> >> I ran the following command as root: >> >> perf stat schedtool -a 1 -e e2fsck -ft /dev/funarg/kbuild > > A theory is that schedtool does: > > if (!fork()) { > set affinity there > launch e2fsck > } Well `taskset` and `chrt` from util-linux don't fork at least, so you could try those instead. I also suggest protecting the command with -- in case perf is not stopping at the first unrecognized option. cheers, P?draig. -- 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/