Add lmbench signal protection test

This commit is contained in:
Yuke Peng 2024-08-16 12:43:44 +08:00 committed by Tate, Hongliang Tian
parent 21255655c0
commit 8ce86e4d98
4 changed files with 32 additions and 0 deletions

View File

@ -38,6 +38,7 @@ jobs:
# Signal-related benchmarks # Signal-related benchmarks
- lmbench-signal - lmbench-signal
- lmbench-signal-install - lmbench-signal-install
- lmbench-signal-prot
# File-related benchmarks # File-related benchmarks
- lmbench-file-rd-bandwidth - lmbench-file-rd-bandwidth
- lmbench-select-file - lmbench-select-file

View File

@ -0,0 +1,7 @@
{
"alert_threshold": "125%",
"alert_tool": "customSmallerIsBetter",
"search_pattern": "Protection fault:",
"result_index": "3",
"description": "The latency to catch a protection fault on a single processor."
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average protection fault latency on Linux",
"unit": "µs",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average protection fault latency on Asterinas",
"unit": "µs",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench protection fault latency test ***"
dd if=/dev/zero of=/ext2/test_file bs=1M count=256
/benchmark/bin/lmbench/lat_sig prot /ext2/test_file