Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4665615imc; Mon, 25 Feb 2019 08:48:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IbUZwq5zRboCWL7QEVI0SGxbP1U62j97r0ryOsLq2Tpq7rrfK6LXeOqlqj9JPVBOgadhv2p X-Received: by 2002:a65:6241:: with SMTP id q1mr7810969pgv.340.1551113312670; Mon, 25 Feb 2019 08:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551113312; cv=none; d=google.com; s=arc-20160816; b=ZM8KVb6fuo/5o8fHudQCHGoFWHDleafgoovm6WKoLNaCTaiS/Jboz22xdVwpH2ZIWM gkrgP/yZFOyBu2sCIxx0JEe2gRTTAIgsKInk6/yYXcESlVl7Dkc69S5SvUYlRDR6iT+t 658Zy/RjrTxsaoWu6ubwcMklSh9z8D9bCyqZsrfzTB9qsIxd7ZmiRha30Nmg5iranJjo 2ZjgSEAvO7Npha8XO1aQ92sj8D9GMsrpKZLRIcmGV3QqkFNvwH6Hq48MYJbvsBbYhSCB PtcBxXbwKOluCtKepeiviHPcRFg9sAzVMawMZgPvRz/U4sA+B244kvfWX9oqoGBac4ye EaYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=2Unqo0HlICizdx/0bsCGZBXW9iWIHn9Yz90wy1RSEos=; b=KWfMPhLj77ubDd8xfuu91bAHAvgFB/7HlSI0NkKe0TY9jJDbW0dwcHzBleSip25+G8 ppUuNVpJPCL8vML/GU+WeMeMPcI9KN0afymACIYLCWn4JIt2eluChRzTdIAmCVqJ+aob n1gdp26Ep9MCzKGFo+s+YrhEBlN+Y9x6bHYq2cR6u4FWcqSsOkirC6luKxMuSsDVoWKq zHOwCvNrwpqCVGK/9x6xluojEo5J4Rsqke90w8acoHiDeDo25Y1rf5+dO6e2dOi+MVs7 bVcGNWaEP5Q28fmTfaXM8DwVa2CgxpwjhogiKG9n40AOt0mDkhg+xyXzZa2Nst+3JBi+ 7tiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s32si9754050pga.48.2019.02.25.08.48.17; Mon, 25 Feb 2019 08:48:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728594AbfBYQqL (ORCPT + 99 others); Mon, 25 Feb 2019 11:46:11 -0500 Received: from mail.gydle.com ([64.18.173.180]:50384 "EHLO mail.gydle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728564AbfBYQqK (ORCPT ); Mon, 25 Feb 2019 11:46:10 -0500 X-Greylist: delayed 324 seconds by postgrey-1.27 at vger.kernel.org; Mon, 25 Feb 2019 11:46:10 EST X-Received: from [192.168.1.136] (unknown [69.70.179.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sboisvert@gydle.com) by mail.gydle.com (Postfix) with ESMTPSA id C2911449B3; Mon, 25 Feb 2019 11:40:45 -0500 (EST) Subject: Re: [PATCH 03/11] perf tools report: Support nano seconds To: Andi Kleen , acme@kernel.org, linux-perf-users@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jolsa@kernel.org, namhyung@kernel.org, eranian@google.com, Andi Kleen References: <20190224153722.27020-1-andi@firstfloor.org> <20190224153722.27020-4-andi@firstfloor.org> From: Sebastien Boisvert Openpgp: preference=signencrypt Autocrypt: addr=sboisvert@gydle.com; keydata= xsFNBFi0QgMBEADLVQ63iQaeZj99I4+5AZe9ilJQ/fE7J49iS+NV3ChKgTfxMlxhagmq4a8E czme5AGkYeb9JAufWzcaGe4DGHJ0l26QdU/YQcpxGVGTobql+LUQ4VgEe9MxB6sMuO7QV5fZ aO27nCqk488ZS7e5g7Y10lMrY+4ZqzjOBIWVOXPpsDrqFY4zKuryLMtRDdINDCl+uahpIi4F P/c00/uGR04s+UmdZRgB1RroyZJjeSHgyR90THl8sDssR8zddaDEae2aO1/1dMI9KGamStYe 5wo9zS4ewPAgfNxRdhsdBvCNIrU2qnKFIE9Juc59NjGPmeRUjB/iHHS6zY4BSNruWrUG5KHs ykHpZhP/Gg5y2RL3Pmu9vIBo5C8sUb2/sRNeWXSD7Rh/0zHtYu5T3cx3/gz71WNRhiOncZuY pgZltzFRxCYc9kDuthITXbI8GoR3XGq8uo2hTDBW8b+VYqLZ7n4fggkvo8f1bgt0ACVKR0nq JViiVO9mYDr7UUWUfS8CABAJCjsbqjxRHMEDw+UNbCS54KJ5vxxkt4LNd0nkwaVwMfrOF3mA foEjSmeM2NLx5SOJuMPOSRyOKjfsOgYEbFsA9hZJ34r/zAPEIdwHf57dY+nSiV/avcE6WN5P ks0CfGMOTBNsxyqYXPov7kkwvCb09KYU9/J6F1nM9Wm83knzewARAQABzShTZWJhc3RpZW4g Qm9pc3ZlcnQgPHNib2lzdmVydEBneWRsZS5jb20+wsF9BBMBCAAnBQJYtEIDAhsjBQkJZgGA BQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEGsrrSebZ4/xsY4QAJHIgXH9+KBNt0rgccCt DN4ueDoRIEmYS7NK/gUKQ8yHUreRHNpJqRSxNKzUPmvVAnnLdaopf/abhS+Ado5QGAZhiNzp +szWcwT4Za8P1mat+/HJznz06TwgiBJNSuMwItZmlgkBpgt2GVtmTP8LOJ1LVSD0615FO84m xU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1XgTPNWgbcdU+OYVjHqVWvI ae7HXSITVgByZAK6Di7/byqqjl1hwkiZeIcajZqK8hws6h6bLLZBn7EcZAEj8VLSdfUjJqCt VOZyQGdo8sNYjJPeV69vNbBUbX7BcxhxRZEYXw1rCz/xaCbNyRqRsxT03haPLg+WVQARAQAB wsFlBBgBCAAPBQJYtEIDAhsMBQkJZgGAAAoJEGsrrSebZ4/x13oP/2gWO3D6zo2Ok13khz4u +blJz8rzV1PQ5TVJmrsU05pVDlKgoZdtfEUtHlfAkzvNUpoKhNRWVN5/3QLwF4z0jfXyFYuS 8CVMRA75h59jSABdCWvZrQLHKJV03t++IFBi3y2DUilHXrCHUxg0iJeUhbMorgxc43d6DJw2 o53r+hBTfexVvcCodOREHR253eaw55lnL1J4sn0KVfprd0tLUTtR6QtF6oMXTcRedrE5bbQB oH/mmorTeQcEO6uDqc9SgqzEaLpNUxsXOBEMp0HYsQBoTdGzsh6aZGrVHX47A3ZLFv9WbRB+ iluFb5KY2n673MOZgSuCFurTuNm+Ik4qfHz3KCVkEghN/swYZW/ONxqZC+2kIPO30WJOnvSL OptwSrxigmRMwJMCYI59NwaF9lyk/F8iL798mNXuhb9mWoiw2Qfjm5xAI+8u3ECDlF6RImKJ QW26frU/JgIUOPrTP+XkxBzCK+vKVekqjhASMH0vLMUBjY02EvqjYfR1egevXc63hMJDR513 uqyECDvmUMJulfMUR2BeaX/+6/alsvQLlvDF8sZ1wrP4PFdqTELwMPHvKsZgX4KhMnNUhPSD XxdTif6ZoOAt/ZdtmdSV6InuwAz/1C9VnBRGP459T4N2OYSql4P4rcGBokrQCFC4kP/ZdqDf vnOzfc5OOiR/D+lE Message-ID: Date: Mon, 25 Feb 2019 11:40:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190224153722.27020-4-andi@firstfloor.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-02-24 10:37 a.m., Andi Kleen wrote: > From: Andi Kleen > > Upcoming changes add timestamp output in perf report. Add a --ns > argument similar to perf script to support nanoseconds resolution > when needed. Is this a ISO-8601 date with nanoseconds ? > > Signed-off-by: Andi Kleen > --- > tools/perf/Documentation/perf-report.txt | 3 +++ > tools/perf/builtin-report.c | 1 + > tools/perf/builtin-script.c | 1 - > tools/perf/util/sort.c | 1 + > tools/perf/util/sort.h | 2 ++ > 5 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt > index 1a27bfe05039..51dbc519dbce 100644 > --- a/tools/perf/Documentation/perf-report.txt > +++ b/tools/perf/Documentation/perf-report.txt > @@ -477,6 +477,9 @@ include::itrace.txt[] > Please note that not all mmaps are stored, options affecting which ones > are include 'perf record --data', for instance. > > +--ns:: > + Show time stamps in nanoseconds. > + > --stats:: > Display overall events statistics without any further processing. > (like the one at the end of the perf report -D command) > diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c > index 2e8c74d6430c..bb8918a747ba 100644 > --- a/tools/perf/builtin-report.c > +++ b/tools/perf/builtin-report.c > @@ -1147,6 +1147,7 @@ int cmd_report(int argc, const char **argv) > OPT_CALLBACK(0, "percent-type", &report.annotation_opts, "local-period", > "Set percent type local/global-period/hits", > annotate_parse_percent_type), > + OPT_BOOLEAN(0, "ns", &nanosecs, "Show times in nanosecs"), > OPT_END() > }; > struct perf_data data = { > diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > index 261055302d08..628c04543974 100644 > --- a/tools/perf/builtin-script.c > +++ b/tools/perf/builtin-script.c > @@ -59,7 +59,6 @@ static bool no_callchain; > static bool latency_format; > static bool system_wide; > static bool print_flags; > -static bool nanosecs; > static const char *cpu_list; > static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS); > static struct perf_stat_config stat_config; > diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c > index 2b6c1ccb878c..d1010a966f9b 100644 > --- a/tools/perf/util/sort.c > +++ b/tools/perf/util/sort.c > @@ -31,6 +31,7 @@ const char *field_order; > regex_t ignore_callees_regex; > int have_ignore_callees = 0; > enum sort_mode sort__mode = SORT_MODE__NORMAL; > +bool nanosecs = false; > > /* > * Replaces all occurrences of a char used with the: > diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h > index 2fbee0b1011c..98223d952404 100644 > --- a/tools/perf/util/sort.h > +++ b/tools/perf/util/sort.h > @@ -278,6 +278,8 @@ struct sort_entry { > extern struct sort_entry sort_thread; > extern struct list_head hist_entry__sort_list; > > +extern bool nanosecs; > + > struct perf_evlist; > struct tep_handle; > int setup_sorting(struct perf_evlist *evlist); >