Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754190AbbHaTKv (ORCPT ); Mon, 31 Aug 2015 15:10:51 -0400 Received: from mga01.intel.com ([192.55.52.88]:44671 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753926AbbHaTKu convert rfc822-to-8bit (ORCPT ); Mon, 31 Aug 2015 15:10:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,443,1437462000"; d="scan'208";a="795150099" From: "Liang, Kan" To: Jiri Olsa CC: "acme@kernel.org" , "jolsa@kernel.org" , "a.p.zijlstra@chello.nl" , "luto@kernel.org" , "mingo@redhat.com" , "eranian@google.com" , "ak@linux.intel.com" , "mark.rutland@arm.com" , "Hunter, Adrian" , "namhyung@kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH V7 6/8] perf,tools: Dump per-sample freq/CPU%/CORE_BUSY% in report -D Thread-Topic: [PATCH V7 6/8] perf,tools: Dump per-sample freq/CPU%/CORE_BUSY% in report -D Thread-Index: AQHQ4bOG0FTQ64K5WE6QU1OsKaKOYp4ldDYAgAEI19A= Date: Mon, 31 Aug 2015 19:10:44 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077018F54E1@SHSMSX103.ccr.corp.intel.com> References: <1440755289-30939-1-git-send-email-kan.liang@intel.com> <1440755289-30939-7-git-send-email-kan.liang@intel.com> <20150831111912.GH22039@krava.brq.redhat.com> In-Reply-To: <20150831111912.GH22039@krava.brq.redhat.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 34 > On Fri, Aug 28, 2015 at 05:48:07AM -0400, Kan Liang wrote: > > From: Kan Liang > > > > The group read results from cycles/ref-cycles/TSC/ASTATE/MSTATE > event > > can be used to calculate the frequency, CPU Utilization and percent > > performance during each sampling period. > > This patch shows them in report -D. > > > > Here is an example: > > > > $ perf record -e > > '{cycles,ref-cycles,msr/tsc/,msr/mperf/,msr/aperf/}:S' ~/tchain_edit > > so this perf cord set of events is set when you want to get the freq > data/ratios.. I think we should not force user to specify this on command > line and provide short option for that like > > $ perf record --freq ~/tchain_edit > > we already do this in perf stat for transactions.. you can also check the > existence of particular events and warn user appropriatelly if any is missing > Yes, we can do that, but should be in separate patch. Thanks, Kan -- 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/