perf data: Adding error message if perf_data__create_dir() fails
authorAlexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Tue, 22 Feb 2022 09:14:17 +0000 (12:14 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Feb 2022 00:15:56 +0000 (21:15 -0300)
commit65e7c963267f128df155f496a50933cea7dfa5b8
tree4aad513312da1e3eb8b11bbabc92b2451892260c
parent859f7e45542aecaa77fde929232cbcf91b29e11d
perf data: Adding error message if perf_data__create_dir() fails

Add proper return codes for all cases of data directory creation failure
and add error message output based on these codes.

Signed-off-by: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Antonov <alexander.antonov@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Budankov <abudankov@huawei.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220222091417.11020-1-alexey.v.bayduraev@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/data.c