blob: a872d26c3cbc7f316f2aaa8598a11235f58950a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
metadata:
name: NO_HZ_FULL
format: "Lava-Test-Shell Test Definition 1.0"
description: "Test CPU Isolation with NOHZ and CPUSETS on Linaro Ubuntu and OpenEmbedded builds.
The test can isolate upto (N-1) CPU's from list of N CPU's isolating it from other
background kernel activities and run user provided task (default 'stress') on the
isolated CPU(s) and figures out if CPU's are isolated or not by reading 'cat /proc/
interrupts' for all interrupts. ISOL_CPU, ITERATIONS and ISOL_MIN are set to 1, 5 and
10 respectively by default which can be changed via JSON file.
NOTE: Kernel configuration needed to run this test +CONFIG_NO_HZ_FULL=y
+CONFIG_NO_HZ_FULL_ALL=y +CONFIG_CGROUPS=y +CONFIG_CPUSETS=y"
maintainer:
- viresh.kumar@linaro.org
os:
- openembedded
- ubuntu
scope:
- functional
devices:
- arndale
- juno
params:
ISOL_CPU: 1
ITERATIONS: 5
ISOL_MIN: 10
run:
steps:
- "common/scripts/is-cpu-isolated.sh $ISOL_CPU $ITERATIONS $ISOL_MIN"
parse:
pattern: "^test_case_id:(?P<test_case_id>.+)\\s+result:(?P<result>\\w+)\\s+measurement:(?P<measurement>.+)\\s+units:(?P<units>.+)"
fixupdict:
PASS: pass
FAIL: fail
|