File tree Expand file tree Collapse file tree 4 files changed +57
-26
lines changed Expand file tree Collapse file tree 4 files changed +57
-26
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ unixbench:
38
38
- hanoi
39
39
- grep
40
40
- sysexec
41
+
42
+ ---
43
+ # execl uses a lot of mmap syscall which will cause perf to record
44
+ # a huge amounts of those events. perf record then will not be able
45
+ # to finish processing the captured perf.data before the test is done.
46
+ perf-profile :
47
+ duration : 2
48
+
49
+ unixbench :
50
+ test : execl
51
+
52
+ ---
53
+ need_x : true
54
+
55
+ unixbench :
56
+ test :
41
57
- 2d-rects
42
58
- 2d-lines
43
59
- 2d-circle
@@ -49,13 +65,3 @@ unixbench:
49
65
- 2d-blit
50
66
- 2d-window
51
67
- ubgears
52
-
53
- ---
54
- # execl uses a lot of mmap syscall which will cause perf to record
55
- # a huge amounts of those events. perf record then will not be able
56
- # to finish processing the captured perf.data before the test is done.
57
- perf-profile :
58
- duration : 2
59
-
60
- unixbench :
61
- test : execl
Original file line number Diff line number Diff line change 8
8
libx11-6
9
9
freeglut3
10
10
libgl1-mesa-dri
11
+ xinit
12
+ xorg
Original file line number Diff line number Diff line change 8
8
# # of a Unix-like system; hence, multiple tests are used to test
9
9
# # various aspects of the system's performance.
10
10
11
- . $LKP_SRC /lib/reproduce-log.sh
12
- . $LKP_SRC /lib/upload.sh
11
+ . $LKP_SRC /lib/debug.sh
13
12
14
13
cd $BENCHMARK_ROOT /unixbench || die " no $BENCHMARK_ROOT /unixbench"
15
14
16
- export LANG=C
15
+ if [ " $need_x " = true ]; then
16
+ mkdir -p /tmp/.X11-unix
17
+ chmod 1777 /tmp/.X11-unix
18
+ chown root:root /tmp/.X11-unix
17
19
18
- [ -n " $runtime " ] || runtime=300
19
-
20
- # Each iteration in UnixBench is about 10 seconds
21
- iteration=$(( runtime / 10 ))
22
-
23
- [ $test = " shell8" ] && iteration=1
24
-
25
- [ -n " $nr_task " ] && other_params=" -c $nr_task "
26
-
27
- cd UnixBench || exit
28
- log_cmd ./Run $test $other_params -i $iteration || exit
29
-
30
- upload_files -t results $BENCHMARK_ROOT /unixbench/UnixBench/results/*
20
+ xinit $LKP_SRC /programs/unixbench/xinitrc
21
+ else
22
+ $LKP_SRC /programs/unixbench/xinitrc
23
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # - runtime
3
+ # - test
4
+ # - nr_task
5
+
6
+ # # UnixBench is the original BYTE UNIX benchmark suite. The purpose
7
+ # # of UnixBench is to provide a basic indicator of the performance
8
+ # # of a Unix-like system; hence, multiple tests are used to test
9
+ # # various aspects of the system's performance.
10
+
11
+ . $LKP_SRC /lib/reproduce-log.sh
12
+ . $LKP_SRC /lib/upload.sh
13
+
14
+ cd $BENCHMARK_ROOT /unixbench || die " no $BENCHMARK_ROOT /unixbench"
15
+
16
+ export LANG=C
17
+
18
+ [ -n " $runtime " ] || runtime=300
19
+
20
+ # Each iteration in UnixBench is about 10 seconds
21
+ iteration=$(( runtime / 10 ))
22
+
23
+ [ $test = " shell8" ] && iteration=1
24
+
25
+ [ -n " $nr_task " ] && other_params=" -c $nr_task "
26
+
27
+ cd UnixBench || exit
28
+ log_cmd ./Run $test $other_params -i $iteration || exit
29
+
30
+ upload_files -t results $BENCHMARK_ROOT /unixbench/UnixBench/results/*
You can’t perform that action at this time.
0 commit comments