Debian Codegraph @

nfsometerlib/workloads/kernel.nfsometer

raw
1 #
2 # RUNDIR - a newly created directory on the nfs share.
3 # will exist only when running COMMAND.
4 #
5 # LOCALDIR - a directory on the local fs meant to serve as storage space for
6 # the fetch stage and setup() call
7 # will exist for setup, fetch stages and when COMMAND is run, but
8 # not durning check().
9 #
10
11 LINUX="linux-3.4"
12 TARBALL="$LOCALDIR/$LINUX.tar.bz2"
13
14 URL="http://www.kernel.org/pub/linux/kernel/v3.0/$LINUX.tar.bz2"
15 URL_OUT="$LINUX.tar.bz2"
16
17 #
18 # the command to run
19 #
20 COMMAND="tar jxvf $TARBALL && cd $LINUX && make defconfig && make -j4 all modules"
21
22 #
23 # command description
24 #
25 DESCRIPTION="A large compile: the linux kernel. Uses linux-3.1.1.tar.bz2 from kernel.org. Does a 'make defconfig' to generate .config, then 'make all modules'"
26
27 # workload_check()
28 # - no arguments
29 # - any output to stdout means the check failed
30 # - use need_* functions from workloads.sh
31 workload_check()
32 {
33 need_bin tar
34 need_bin make
35 }
36
37 # workload_setup()
38 # - no arguments
39 # - non-zero return indicates a problem
40 workload_setup()
41 {
42 return 0
43 }
44