]> git.baikalelectronics.ru Git - kernel.git/commit
perf pmu: Make pmu_formats_string to check return value of strbuf
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 10 May 2016 05:47:44 +0000 (14:47 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 May 2016 14:57:52 +0000 (11:57 -0300)
commitc08d63f339332041ec868a403403bc3df4157ac1
tree696636577cb3733f7ecbdc4c9bdba4de47f05df5
parent3bec5742ce0373d75a7a8f389710acd319f69b6f
perf pmu: Make pmu_formats_string to check return value of strbuf

Make pmu_formats_string() to check return value of strbuf APIs so that
it can detect errors in it.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160510054744.6158.37810.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c