aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-28 13:05:26 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-28 13:05:26 +0200
commit9fd9afdfd59cf778e64da865361158278ebc6358 (patch)
treed4f12ebaa921289edbbd23355bbb659159a1a65d
parent5472b2adb1282ac056516744eeae97b6dba3be55 (diff)
downloadlinux-conf-perf-9fd9afdfd59cf778e64da865361158278ebc6358.tar.gz
linux-conf-perf-9fd9afdfd59cf778e64da865361158278ebc6358.tar.bz2
linux-conf-perf-9fd9afdfd59cf778e64da865361158278ebc6358.zip
Add boot phase
-rwxr-xr-xscripts/loop.py8
-rw-r--r--scripts/phase.py4
2 files changed, 11 insertions, 1 deletions
diff --git a/scripts/loop.py b/scripts/loop.py
index 1911fc2..83633ff 100755
--- a/scripts/loop.py
+++ b/scripts/loop.py
@@ -12,6 +12,7 @@ import solution
import kernel
from exceptions import MissingFile
import iteration
+import boot
def step():
phs = phase.get()
@@ -58,6 +59,13 @@ def step():
phase.set(10)
elif phs == 10:
phase.message(10)
+ phase.set(11)
+ elif phs == 11:
+ phase.message(11)
+ boot.boot()
+ phase.set(12)
+ elif phs == 12:
+ phase.message(12)
phase.set(2)
class mainThread(Thread):
diff --git a/scripts/phase.py b/scripts/phase.py
index 390087f..30e61c2 100644
--- a/scripts/phase.py
+++ b/scripts/phase.py
@@ -14,7 +14,9 @@ phases = ("Not Initialized", #0
"Kernel configuration", #7
"Kernel configured", #8
"Kernel build", #9
- "Kernel built" #10
+ "Kernel built", #10
+ "System boot", #11
+ "Benchmark successful" #12
)
def get():