mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-16 17:45:01 -05:00
perf test: Simplify data symbol test
Now the workload will end after 1 second. Just run it with perf instead of waiting for the background process. Reviewed-by: Leo Yan <leo.yan@arm.com> Tested-by: Thomas Richter <tmricht@linux.ibm.com> Tested-by: Thomas Falcon <thomas.falcon@intel.com> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Leo Yan <leo.yan@arm.com> Link: https://lore.kernel.org/r/20250304022837.1877845-7-namhyung@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
# Leo Yan <leo.yan@linaro.org>, 2022
|
||||
|
||||
shelldir=$(dirname "$0")
|
||||
# shellcheck source=lib/waiting.sh
|
||||
. "${shelldir}"/lib/waiting.sh
|
||||
|
||||
# shellcheck source=lib/perf_has_symbol.sh
|
||||
. "${shelldir}"/lib/perf_has_symbol.sh
|
||||
@@ -60,19 +58,10 @@ echo "Recording workload..."
|
||||
# specific CPU and test in per-CPU mode.
|
||||
is_amd=$(grep -E -c 'vendor_id.*AuthenticAMD' /proc/cpuinfo)
|
||||
if (($is_amd >= 1)); then
|
||||
perf mem record -vvv -o ${PERF_DATA} -C 0 -- taskset -c 0 $TEST_PROGRAM 2>"${ERR_FILE}" &
|
||||
perf mem record -vvv -o ${PERF_DATA} -C 0 -- taskset -c 0 $TEST_PROGRAM 2>"${ERR_FILE}"
|
||||
else
|
||||
perf mem record -vvv --all-user -o ${PERF_DATA} -- $TEST_PROGRAM 2>"${ERR_FILE}" &
|
||||
perf mem record -vvv --all-user -o ${PERF_DATA} -- $TEST_PROGRAM 2>"${ERR_FILE}"
|
||||
fi
|
||||
|
||||
PERFPID=$!
|
||||
|
||||
wait_for_perf_to_start ${PERFPID} "${ERR_FILE}"
|
||||
|
||||
sleep 1
|
||||
|
||||
kill $PERFPID
|
||||
wait $PERFPID
|
||||
|
||||
check_result
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user