perf timechart: Use OPT_PARENT for common options
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Mar 2017 14:23:21 +0000 (11:23 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Mar 2017 14:49:08 +0000 (11:49 -0300)
commitf371594a514a4d3bc8fca6913ce9b5d9e325095d
tree5c308e3444ac8ef4f1f003a2dd0b1efb2bfeae72
parentb40e36121e23031f1e8916a70110ffc841230670
perf timechart: Use OPT_PARENT for common options

Move -T/--tasks-only and -P/--power-only options to a separate options
array that then gets referenced via OPT_PARENT from the 'perf timechart'
and 'perf timechart record' option arrays.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Changbin Du <changbin.du@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-j80lol9wj1i6556ibh48iebe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-timechart.c