summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8d7123)
raw | patch | inline | side by side (parent: d8d7123)
author | Venkat Mandela <venkat.mandela@ti.com> | |
Thu, 10 Nov 2016 21:03:43 +0000 (21:03 +0000) | ||
committer | Karthik Ramanan <a0393906@ti.com> | |
Fri, 18 Nov 2016 09:30:18 +0000 (15:00 +0530) |
1. Fix shellcheck warnings.
2. Print benchmark numbers in the order
MLO,
Kernel,
Userspace
3. Print kernel decompression time and kernel execution time
Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com>
2. Print benchmark numbers in the order
MLO,
Kernel,
Userspace
3. Print kernel decompression time and kernel execution time
Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com>
cpuload-plugins/scripts/list-boot-times.sh | patch | blob | history |
diff --git a/cpuload-plugins/scripts/list-boot-times.sh b/cpuload-plugins/scripts/list-boot-times.sh
index c4bcfabebdefc176a8df1a31cedc3da05cdee3b5..a19383db9d353c1f8a74675bece698090d008c3f 100755 (executable)
#! /bin/bash
-cd /tmp
-FILE_NAMES=$(ls -1 [kmu]-*)
-for FILE in $FILE_NAMES; do
- FILE_CONTENT=$(cat $FILE)
- echo $FILE,$FILE_CONTENT
+cd /tmp || exit
+DISPORDER="m k u"
+for DISP in $DISPORDER; do
+ FILE_NAMES=$(ls -1 "$DISP"-*)
+ for FILE in $FILE_NAMES; do
+ FILE_CONTENT=$(cat "$FILE")
+ echo "$FILE","$FILE_CONTENT"
+ done
+ echo
done
+KERNEL_START=$(cat /tmp/m-kernelstart-time)
+KERNEL_MAIN=$(cat /tmp/k-start-time)
+echo "Kernel Decompression time",$(( KERNEL_MAIN - KERNEL_START))
+
+USER_ENTRY=$(cat /tmp/k-user-space-entry-time)
+echo "Kernel Exec time",$(( USER_ENTRY - KERNEL_START))