Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753525Ab2B0DXZ (ORCPT ); Sun, 26 Feb 2012 22:23:25 -0500 Received: from mail-pw0-f46.google.com ([209.85.160.46]:47815 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753322Ab2B0DXY (ORCPT ); Sun, 26 Feb 2012 22:23:24 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of dsahern@gmail.com designates 10.68.228.69 as permitted sender) smtp.mail=dsahern@gmail.com; dkim=pass header.i=dsahern@gmail.com Message-ID: <4F4AF727.2040105@gmail.com> Date: Sun, 26 Feb 2012 20:23:19 -0700 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Yuanfang Chen CC: linux-kernel@vger.kernel.org, Namhyung Kim Subject: Re: perf record: can I specify multiple events and use different sample-after value References: <4F4484AC.9050500@lge.com> <87ehtnhz9w.fsf@gmail.com> <4F45E9C5.4020900@lge.com> <4F468EBB.9000209@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 27 On 2/24/12 3:41 PM, Yuanfang Chen wrote: > 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? You lost me. You modified perf-script to print the period? Are you asking for the PMU counter value for 0x3c? What perf commands are you running? 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/