Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933084Ab1D0QHQ (ORCPT ); Wed, 27 Apr 2011 12:07:16 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:42266 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756165Ab1D0QHO (ORCPT ); Wed, 27 Apr 2011 12:07:14 -0400 Date: Wed, 27 Apr 2011 13:07:01 -0300 From: Arnaldo Carvalho de Melo To: Lin Ming Cc: Peter Zijlstra , Ingo Molnar , Tim Blechmann , David Ahern , linux-kernel Subject: Re: [PATCH RFC] Fix per-task profiling Re: [PATCH] perf: Allow set output buffer for tasks in the same thread group Message-ID: <20110427160701.GC7807@ghostprotocols.net> References: <1303657064.2239.25.camel@localhost> <1303664726.20212.1.camel@twins> <1303738838.2578.1.camel@localhost> <20110425152833.GB32069@ghostprotocols.net> <20110426204401.GB1746@ghostprotocols.net> <1303872046.23673.19.camel@minggr.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1303872046.23673.19.camel@minggr.sh.intel.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by canuck.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 22 Em Wed, Apr 27, 2011 at 10:40:46AM +0800, Lin Ming escreveu: > Tested and it works OK. Thanks! > But here is one thing make me confused. > I thought that "--pid" and "--cpu" parameters are not allowed to be used > at the same time. Otherwise, is it a task event or cpu event? > Or does it mean that the event is only monitored when the "task" is > running on the specified "cpu"? This is an excellent question, my expectation is that it works as you describe, but Documentation/perf/design.txt doesn't cover the case of cpu != -1 and pid != -1, reading code... - Arnaldo -- 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/