From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755346Ab3JHTZA (ORCPT ); Tue, 8 Oct 2013 15:25:00 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:38189 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753668Ab3JHTY4 (ORCPT ); Tue, 8 Oct 2013 15:24:56 -0400 Date: Tue, 8 Oct 2013 21:24:48 +0200 From: Ingo Molnar To: Arnaldo Carvalho de Melo Cc: David Ahern , Namhyung Kim , linux-kernel@vger.kernel.org, Frederic Weisbecker , Peter Zijlstra , Jiri Olsa , Namhyung Kim , Stephane Eranian Subject: Re: [PATCH 2/3] perf stat: Don't require a workload when using system wide or CPU options Message-ID: <20131008192448.GA5018@gmail.com> References: <1380400080-9211-1-git-send-email-dsahern@gmail.com> <1380400080-9211-3-git-send-email-dsahern@gmail.com> <87li2eofvd.fsf@sejong.aot.lge.com> <52497F3C.9070908@gmail.com> <20131008123928.GA4018@ghostprotocols.net> <20131008125113.GB3438@gmail.com> <20131008132720.GD4018@ghostprotocols.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131008132720.GD4018@ghostprotocols.net> 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 * Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 08, 2013 at 02:51:13PM +0200, Ingo Molnar escreveu: > > Btw., would anyone be interested in adding CPU and node binding options to > > perf stat? > > > > There's code to do something like that in tools/perf/bench/numa.c: > > > > /* Special option string parsing callbacks: */ > > OPT_CALLBACK('C', "cpus", NULL, "cpu[,cpu2,...cpuN]", > > "bind the first N tasks to these specific cpus (the rest is unbound)", > > parse_cpus_opt), > > OPT_CALLBACK('M', "memnodes", NULL, "node[,node2,...nodeN]", > > "bind the first N tasks to these specific memory nodes (the rest is unbound)", > > parse_nodes_opt), > > As a convenience to using: > > taskset -c cpu-list perf stat -C cpu-list workload > > ? Yeah, something like that would be handy I think. Ingo