aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2016-10-24 03:00:03 +0000
committerArnaldo Carvalho de Melo <[email protected]>2016-10-25 13:24:48 +0000
commit77f02f44460ab1480af2ae6145a1a85b9fe0b8ac (patch)
tree89a0dfd42c1afd1475d5ea013e5e8cd99d2e4bc6 /tools/perf/util/trace-event-scripting.c
parenttools lib subcmd: Suppport cascading options (diff)
downloadkernel-77f02f44460ab1480af2ae6145a1a85b9fe0b8ac.tar.gz
kernel-77f02f44460ab1480af2ae6145a1a85b9fe0b8ac.zip
perf sched: Make common options cascading
The -i and -v options can be used in subcommands so enable cascading the sched_options. This fixes the following inconvenience in 'perf sched': $ perf sched -i perf.data.sched map ... (it works well) ... $ perf sched map -i perf.data.sched Error: unknown switch `i' Usage: perf sched map [<options>] --color-cpus <cpus> highlight given CPUs in map --color-pids <pids> highlight given pids in map --compact map output in compact mode --cpus <cpus> display given CPUs in map With this patch, the second command line works with the perf.data.sched data file. Signed-off-by: Namhyung Kim <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions