lkml.org 
[lkml]   [2015]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 18/44] perf report: Add Instruction Tracing support
Em Thu, Apr 09, 2015 at 06:53:58PM +0300, Adrian Hunter escreveu:
> +++ b/tools/perf/Documentation/perf-report.txt
> @@ -323,6 +323,34 @@ OPTIONS
> --header-only::
> Show only perf.data header (forces --stdio).
>
> +-Z::
> +--itrace::
> + Options for decoding AUX area tracing data. The options are:

<SNIP>

> "how to display percentage of filtered entries", parse_filter_percentage),
> + OPT_CALLBACK_OPTARG('Z', "itrace", &itrace_synth_opts, NULL, "opts",
> + "Instruction Tracing options",
> + itrace_parse_synth_opts),

I am also making this be

+ OPT_CALLBACK_OPTARG(0, "itrace", &itrace_synth_opts, NULL, "opts",

I.e. single letter options should be used for something more
mainstrean/frequently used, and we can also shorten it, so far, to --it:

[acme@ssdandy linux]$ perf script --i
Error: Ambiguous option: i (could be --input or --itrace)

usage: perf script [<options>]
or: perf script [<options>] record <script> [<record-options>] <command>
or: perf script [<options>] report <script> [script-args]
or: perf script [<options>] <script> [<record-options>] <command>
or: perf script [<options>] <top-script> [script-args]

[acme@ssdandy linux]$ perf script --it
failed to open perf.data: Permission denied

- Arnaldo


\
 
 \ /
  Last update: 2015-04-23 16:41    [W:0.661 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site