diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-02-24 20:06:42 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-02-25 14:35:19 +0100 |
commit | 5021fc4e8c7c3be6f8735eff76fb2520485fcec4 (patch) | |
tree | f32c501ac9f3605027e17c8fe1a64103ab66eae2 /tools/perf/builtin-mem.c | |
parent | perf tools: Add rm_rf_perf_data function (diff) | |
download | linux-5021fc4e8c7c3be6f8735eff76fb2520485fcec4.tar.xz linux-5021fc4e8c7c3be6f8735eff76fb2520485fcec4.zip |
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>
Diffstat (limited to 'tools/perf/builtin-mem.c')
0 files changed, 0 insertions, 0 deletions