perf test: test_intel_pt.sh: Use a temp directory
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 12 Sep 2022 08:34:03 +0000 (11:34 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:23 +0000 (08:55 -0300)
commit170ac70f16e7993449ae20a5c5f23d965e3e171d
tree65d87b9f478cbdce905e66efb544d57ee0904eed
parent19af23df66b412106ce90f2e2258fefe6a256acd
perf test: test_intel_pt.sh: Use a temp directory

Create a directory for temporary files so that mktemp needs to be used
only once. It also enables more temp files to be added without having to
add them also to the cleanup.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220912083412.7058-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/test_intel_pt.sh