Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.17-rc4 21 lines 477 B view raw
1#!/bin/bash 2# perf trace record and replay 3# SPDX-License-Identifier: GPL-2.0 4 5# Check that perf trace works with record and replay 6 7# shellcheck source=lib/probe.sh 8. "$(dirname $0)"/lib/probe.sh 9 10skip_if_no_perf_trace || exit 2 11[ "$(id -u)" = 0 ] || exit 2 12 13file=$(mktemp /tmp/temporary_file.XXXXX) 14 15perf trace record -o ${file} sleep 1 || exit 1 16if ! perf trace -i ${file} 2>&1 | grep nanosleep; then 17 echo "Failed: cannot find *nanosleep syscall" 18 exit 1 19fi 20 21rm -f ${file}