]> git.baikalelectronics.ru Git - kernel.git/commit
perf data: Make check_backup work over directories
authorJiri Olsa <jolsa@kernel.org>
Sun, 24 Feb 2019 19:06:42 +0000 (20:06 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Feb 2019 13:35:19 +0000 (10:35 -0300)
commit6e17d392ca8b17706bd9b2a5e88f16b0de09b2f3
treef32c501ac9f3605027e17c8fe1a64103ab66eae2
parenta074d7fbfa871c83a516fee0a8b88c96675f3148
perf data: Make check_backup work over directories

Change check_backup() to call rm_rf_perf_data() instead of unlink() to
work over directory paths.

Also move the call earlier in the code, before we fork for file/dir, so
it can backup also directory data.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20190224190656.30163-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/data.c