]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Add rm_rf_perf_data function
authorJiri Olsa <jolsa@kernel.org>
Sun, 24 Feb 2019 19:06:39 +0000 (20:06 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Feb 2019 13:33:51 +0000 (10:33 -0300)
commit25975989db1110e2aefb52f72c198fa26bdf7381
tree2ed05057fddaee776be2ce96ad69643a2cd06b9f
parentb9cf72d15519acf60dd84e515e725aabe259d36c
perf tools: Add rm_rf_perf_data function

To remove perf.data including the directory, with checking on expected
files and no other directories inside.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Suggested-by: Andi Kleen <ak@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@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-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/util.c
tools/perf/util/util.h