-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(TESTS lo2s_user_sampling) | ||
|
||
foreach(TEST ${TESTS}) | ||
|
||
add_test(NAME ${TEST} COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/cmake/tests/${TEST}.sh) | ||
set_tests_properties(${TEST} PROPERTIES SKIP_RETURN_CODE 100) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
set -euo pipefail | ||
|
||
paranoid=$(cat /proc/sys/kernel/perf_event_paranoid) | ||
|
||
echo "perf_event_paranoid is: $paranoid" | ||
if [ $paranoid -gt 2 ] | ||
then | ||
# skip | ||
exit 100 | ||
fi | ||
|
||
#!/bin/bash | ||
rm -rf test_trace | ||
./lo2s -c 1 --output-trace test_trace -- sleep 1 | ||
|
||
if otf2-print test_trace/traces.otf2 | grep "SAMPLE" | ||
then | ||
exit 0 | ||
else | ||
echo "Trace did not contain calling context samples!" | ||
exit 1 | ||
fi | ||
rm -rf test_trace | ||
|