perf test: Cleanup daemon if test is interrupted.
authorIan Rogers <irogers@google.com>
Wed, 17 Mar 2021 00:55:04 +0000 (17:55 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Mar 2021 13:13:53 +0000 (10:13 -0300)
commit078cbb6f75f16a16fb843a431e83c2f92605bb75
tree4a3890d021728787abe2c662c5b930acb5df1faf
parent87cb88d3c00275d7dfd695b2002eb53411a53cfa
perf test: Cleanup daemon if test is interrupted.

Reorder daemon_start and daemon_exit as the trap handler is added in
daemon_start referencing daemon_exit.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210317005505.2794804-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/daemon.sh