perf tools: Remove subcmd dependencies on strbuf
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 15 Dec 2015 15:39:36 +0000 (09:39 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Dec 2015 00:33:13 +0000 (21:33 -0300)
commit901421a5bdf605d24c278825cdd032cd6038bcb8
treee38d011aa6ff9c348a6ea7d3c9e664fef54b237f
parent096d35585b4fce7d3ee9b8b34314f39f49491ab1
perf tools: Remove subcmd dependencies on strbuf

Introduce and use new astrcat() and astrcatf() functions which replace
the strbuf functionality for subcmd.

For now they duplicate strbuf's die-on-allocation-error policy.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/957d207e1254406fa11fc2e405e75a7e405aad8f.1450193761.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/exec_cmd.c
tools/perf/util/help.c
tools/perf/util/parse-options.c
tools/perf/util/subcmd-util.h [new file with mode: 0644]