Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932390Ab2BXWlH (ORCPT ); Fri, 24 Feb 2012 17:41:07 -0500 Received: from mail-qy0-f174.google.com ([209.85.216.174]:53749 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755583Ab2BXWlG convert rfc822-to-8bit (ORCPT ); Fri, 24 Feb 2012 17:41:06 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of cyfmxc@gmail.com designates 10.229.78.159 as permitted sender) smtp.mail=cyfmxc@gmail.com; dkim=pass header.i=cyfmxc@gmail.com MIME-Version: 1.0 In-Reply-To: <4F468EBB.9000209@gmail.com> References: <4F4484AC.9050500@lge.com> <87ehtnhz9w.fsf@gmail.com> <4F45E9C5.4020900@lge.com> <4F468EBB.9000209@gmail.com> Date: Fri, 24 Feb 2012 17:41:04 -0500 Message-ID: Subject: Re: perf record: can I specify multiple events and use different sample-after value From: Yuanfang Chen To: David Ahern Cc: linux-kernel@vger.kernel.org, Namhyung Kim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1331 Lines: 42 On Thu, Feb 23, 2012 at 2:08 PM, David Ahern wrote: > On 2/23/12 11:52 AM, Yuanfang Chen wrote: >>> >>> >>> say my application(not an existing process, so -p  does not >>> work.) run for 10 seconds. I want the r03c, r2d4 value during each >>> second.  So there will be two values for each event in one second. >> >> >> oops, forgot to forward. :-) > > > you are looking for something like this? > http://www.spinics.net/lists/linux-perf-users/msg00211.html Exactly !! I think I'll settle with perf record for now. Still, unlike trace event, sample count is not meaningful for PMU event. Output of "perf script" does not include period value. One line of code will do the work. lude 17342 750118.202915: raw 0x3c: 86754 ffffffff8115f6b9 __mem_cgroup_commit_char lude 17342 750118.203025: raw 0x3c: 1027634 ffffffff811344b9 __mem_cgroup_commit_char 86754, 1027634 is the period value. But I'm not sure which is the PMU value, is it just period value, or period x sample after. If so, what is the sample after value? thank you, yuanfang > > David > -- 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/