perf buildid-cache: Warn --purge-all failures
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 10 May 2018 04:36:51 +0000 (10:06 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 May 2018 13:32:16 +0000 (10:32 -0300)
commitd8ed87bc171946313b2e6d26e1fec494da9154bc
treebe9b413ebd713a1a5c92dffde30f0aaefb591d70
parentb3f58c8da64bc63bd0c0a06a4e2cf258a3d20be6
perf buildid-cache: Warn --purge-all failures

Warn perf buildid-cache --purge-all failures in non verbose mode.

Ex.:

  $ sudo chown root:root /home/ravi/.debug -R
  $ sudo chmod 700 /home/ravi/.debug/ -R
  $ ./perf buildid-cache -P
    Couldn't remove some caches. Error: Permission denied.

Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20180510043651.12189-1-ravi.bangoria@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-buildid-cache.c