Commit 87cb88d3 authored by Ian Rogers's avatar Ian Rogers Committed by Arnaldo Carvalho de Melo

perf test: Remove unused argument

Remove unused argument from daemon_exit.
Signed-off-by: default avatarIan 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-1-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 6859bc0e
...@@ -115,8 +115,7 @@ daemon_start() ...@@ -115,8 +115,7 @@ daemon_start()
daemon_exit() daemon_exit()
{ {
local base=$1 local config=$1
local config=$2
local line=`perf daemon --config ${config} -x: | head -1` local line=`perf daemon --config ${config} -x: | head -1`
local pid=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $1 }'` local pid=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $1 }'`
...@@ -171,7 +170,7 @@ EOF ...@@ -171,7 +170,7 @@ EOF
${base}/session-time/ack "0" ${base}/session-time/ack "0"
# stop daemon # stop daemon
daemon_exit ${base} ${config} daemon_exit ${config}
rm -rf ${base} rm -rf ${base}
rm -f ${config} rm -f ${config}
...@@ -288,7 +287,7 @@ EOF ...@@ -288,7 +287,7 @@ EOF
done done
# stop daemon # stop daemon
daemon_exit ${base} ${config} daemon_exit ${config}
rm -rf ${base} rm -rf ${base}
rm -f ${config} rm -f ${config}
...@@ -333,7 +332,7 @@ EOF ...@@ -333,7 +332,7 @@ EOF
fi fi
# stop daemon # stop daemon
daemon_exit ${base} ${config} daemon_exit ${config}
# check that sessions are gone # check that sessions are gone
if [ -d "/proc/${pid_size}" ]; then if [ -d "/proc/${pid_size}" ]; then
...@@ -374,7 +373,7 @@ EOF ...@@ -374,7 +373,7 @@ EOF
perf daemon signal --config ${config} perf daemon signal --config ${config}
# stop daemon # stop daemon
daemon_exit ${base} ${config} daemon_exit ${config}
# count is 2 perf.data for signals and 1 for perf record finished # count is 2 perf.data for signals and 1 for perf record finished
count=`ls ${base}/session-test/ | grep perf.data | wc -l` count=`ls ${base}/session-test/ | grep perf.data | wc -l`
...@@ -420,7 +419,7 @@ EOF ...@@ -420,7 +419,7 @@ EOF
fi fi
# stop daemon # stop daemon
daemon_exit ${base} ${config} daemon_exit ${config}
rm -rf ${base} rm -rf ${base}
rm -f ${config} rm -f ${config}
...@@ -457,7 +456,7 @@ EOF ...@@ -457,7 +456,7 @@ EOF
fi fi
# stop daemon # stop daemon
daemon_exit ${base} ${config} daemon_exit ${config}
rm -rf ${base} rm -rf ${base}
rm -f ${config} rm -f ${config}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment