File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ cleanup_files()
15
15
trap cleanup_files EXIT TERM INT
16
16
17
17
# Add a 1 second delay to skip samples that are not in the leaf() function
18
- perf record -o " $PERF_DATA " --call-graph fp -e cycles//u -D 1000 --user-callchains -- " $TEST_PROGRAM " 2> /dev/null &
18
+ # shellcheck disable=SC2086
19
+ perf record -o " $PERF_DATA " --call-graph fp -e cycles//u -D 1000 --user-callchains -- $TEST_PROGRAM 2> /dev/null &
19
20
PID=$!
20
21
21
22
echo " + Recording (PID=$PID )..."
@@ -33,8 +34,8 @@ wait $PID
33
34
# 76c leafloop
34
35
# ...
35
36
36
- perf script -i $PERF_DATA -F comm,ip,sym | head -n4
37
- perf script -i $PERF_DATA -F comm,ip,sym | head -n4 | \
37
+ perf script -i " $PERF_DATA " -F comm,ip,sym | head -n4
38
+ perf script -i " $PERF_DATA " -F comm,ip,sym | head -n4 | \
38
39
awk ' { if ($2 != "") sym[i++] = $2 } END { if (sym[0] != "leaf" ||
39
40
sym[1] != "parent" ||
40
41
sym[2] != "leafloop") exit 1 }'
You can’t perform that action at this time.
0 commit comments