From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753485AbbBYQra (ORCPT ); Wed, 25 Feb 2015 11:47:30 -0500 Received: from mail-ig0-f170.google.com ([209.85.213.170]:58969 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbbBYQr3 (ORCPT ); Wed, 25 Feb 2015 11:47:29 -0500 Message-ID: <54EDFC9F.8010605@gmail.com> Date: Wed, 25 Feb 2015 09:47:27 -0700 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Andi Kleen , acme@kernel.org CC: jolsa@redhat.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, Andi Kleen Subject: Re: [PATCH] perf, tools, record: Support recording running/enabled time References: <1424819620-16043-1-git-send-email-andi@firstfloor.org> In-Reply-To: <1424819620-16043-1-git-send-email-andi@firstfloor.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/24/15 4:13 PM, Andi Kleen wrote: > --- a/tools/perf/Documentation/perf-record.txt > +++ b/tools/perf/Documentation/perf-record.txt > @@ -241,6 +241,9 @@ Capture machine state (registers) at interrupt, i.e., on counter overflows for > each sample. List of captured registers depends on the architecture. This option > is off by default. > > +--running:: > +Record running and enabled time for read events (:S) > + > SEE ALSO > -------- > linkperf:perf-stat[1], linkperf:perf-list[1] > diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c > index d0d02a8..4fdad06 100644 > --- a/tools/perf/builtin-record.c > +++ b/tools/perf/builtin-record.c > @@ -839,6 +839,8 @@ struct option __record_options[] = { > "use per-thread mmaps"), > OPT_BOOLEAN('I', "intr-regs", &record.opts.sample_intr_regs, > "Sample machine registers on interrupt"), > + OPT_BOOLEAN(0, "running-time", &record.opts.running_time, > + "Record running/enabled time of read (:S) events"), > OPT_END() Documentation differs from option in the record command. David