perf lock: Subcommands should include common options
authorChangbin Du <changbin.du@intel.com>
Fri, 17 Mar 2017 05:53:42 +0000 (13:53 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Mar 2017 14:49:07 +0000 (11:49 -0300)
commit249eed53152167c64c6dc66fa269a1d8b415a7b4
tree218b129c8cbda3f4cfd76ebfd67812f73030dc38
parent61f63e383784bd0ab6529cfc95ddc59c713afcc9
perf lock: Subcommands should include common options

When I use -i option for report subcommand, it doesn't accept it.  We
need add common options using OPT_PARENT macro.

perf lock report -i lock_perf.data
  Error: unknown switch `i'

  Usage: perf lock report [<options>]

    -f, --force           don't complain, do it
    -k, --key <acquired>  key for sorting ...

Signed-off-by: Changbin Du <changbin.du@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170317055342.8284-1-changbin.du@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-lock.c