perf tools: Introduce usage_with_options_msg()
authorNamhyung Kim <namhyung@kernel.org>
Sat, 24 Oct 2015 15:49:27 +0000 (00:49 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Oct 2015 12:28:44 +0000 (09:28 -0300)
commitc71183697250b356be6c7c1abc2e9a74073e1dca
tree704044c1c38f9f0da738712b807fb01f201d3e59
parent01b19455c08cc37d1c3ef174524278e84c92fec1
perf tools: Introduce usage_with_options_msg()

Now usage_with_options() setup a pager before printing message so normal
printf() or pr_err() will not be shown.  The usage_with_options_msg()
can be used to print some help message before usage strings.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445701767-12731-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-evlist.c
tools/perf/builtin-probe.c
tools/perf/builtin-record.c
tools/perf/builtin-sched.c
tools/perf/builtin-script.c
tools/perf/util/parse-options.c
tools/perf/util/parse-options.h
tools/perf/util/strbuf.c
tools/perf/util/strbuf.h