You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(6) |
Jun
(12) |
Jul
(46) |
Aug
(8) |
Sep
(27) |
Oct
(73) |
Nov
(56) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(36) |
Feb
(33) |
Mar
(50) |
Apr
(66) |
May
(76) |
Jun
(63) |
Jul
(63) |
Aug
(26) |
Sep
(35) |
Oct
(34) |
Nov
(82) |
Dec
(99) |
2003 |
Jan
(152) |
Feb
(76) |
Mar
(146) |
Apr
(156) |
May
(71) |
Jun
(46) |
Jul
(42) |
Aug
(34) |
Sep
(32) |
Oct
(49) |
Nov
(66) |
Dec
(78) |
2004 |
Jan
(76) |
Feb
(48) |
Mar
(25) |
Apr
(78) |
May
(76) |
Jun
(71) |
Jul
(39) |
Aug
(53) |
Sep
(27) |
Oct
(26) |
Nov
(23) |
Dec
(29) |
2005 |
Jan
(53) |
Feb
(41) |
Mar
(48) |
Apr
(36) |
May
(29) |
Jun
(71) |
Jul
(61) |
Aug
(77) |
Sep
(49) |
Oct
(32) |
Nov
(27) |
Dec
(40) |
2006 |
Jan
(23) |
Feb
(48) |
Mar
(24) |
Apr
(31) |
May
(50) |
Jun
(42) |
Jul
(24) |
Aug
(140) |
Sep
(55) |
Oct
(43) |
Nov
(11) |
Dec
(18) |
2007 |
Jan
(15) |
Feb
(20) |
Mar
(99) |
Apr
(110) |
May
(140) |
Jun
(98) |
Jul
(90) |
Aug
(58) |
Sep
(86) |
Oct
(79) |
Nov
(137) |
Dec
(129) |
2008 |
Jan
(277) |
Feb
(321) |
Mar
(285) |
Apr
(373) |
May
(415) |
Jun
(328) |
Jul
(288) |
Aug
(469) |
Sep
(334) |
Oct
(570) |
Nov
(368) |
Dec
(376) |
2009 |
Jan
(401) |
Feb
(317) |
Mar
(373) |
Apr
(309) |
May
(280) |
Jun
(371) |
Jul
(504) |
Aug
(465) |
Sep
(231) |
Oct
(295) |
Nov
(271) |
Dec
(222) |
2010 |
Jan
(313) |
Feb
(231) |
Mar
(251) |
Apr
(166) |
May
(124) |
Jun
(83) |
Jul
(141) |
Aug
(195) |
Sep
(160) |
Oct
(204) |
Nov
(295) |
Dec
(206) |
2011 |
Jan
(262) |
Feb
(176) |
Mar
(168) |
Apr
(217) |
May
(70) |
Jun
(65) |
Jul
(89) |
Aug
(169) |
Sep
(125) |
Oct
(64) |
Nov
(116) |
Dec
(148) |
2012 |
Jan
(343) |
Feb
(352) |
Mar
(205) |
Apr
(151) |
May
(140) |
Jun
(103) |
Jul
(156) |
Aug
(221) |
Sep
(55) |
Oct
(150) |
Nov
(79) |
Dec
(77) |
2013 |
Jan
(95) |
Feb
(78) |
Mar
(157) |
Apr
(213) |
May
(220) |
Jun
(227) |
Jul
(275) |
Aug
(224) |
Sep
(156) |
Oct
(248) |
Nov
(338) |
Dec
(181) |
2014 |
Jan
(165) |
Feb
(299) |
Mar
(338) |
Apr
(315) |
May
(277) |
Jun
(186) |
Jul
(204) |
Aug
(212) |
Sep
(231) |
Oct
(152) |
Nov
(107) |
Dec
(167) |
2015 |
Jan
(197) |
Feb
(182) |
Mar
(135) |
Apr
(167) |
May
(192) |
Jun
(326) |
Jul
(311) |
Aug
(198) |
Sep
(84) |
Oct
(11) |
Nov
(3) |
Dec
(4) |
2016 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(5) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Cyril H. <ch...@su...> - 2015-09-08 11:48:47
|
Hi! > I try to build LTP with POSIX testsuite and run "make clean". As a result "testcases/open_posix_testsuite" is no cleaned properly. It happens because that directory is filtered by "make" here: > https://github.com/linux-test-project/ltp/blob/master/testcases/Makefile#L33 > > And it's filtered because WITH_OPEN_POSIX_TESTSUITE symbol is not defined when you run "make clean". And it's not defined because "config.mk" and "features.mk" are not included for "clean" target: > https://github.com/linux-test-project/ltp/blob/master/include/mk/env_pre.mk#L98 > > So I've decided to include these configuration files for "clean" target too. I've supposed that "clean" target may be invoked even if those files don't exist so I've used error suppression mechanism. Ah, right, now I understand what this fixes. I will have a look at the patch. -- Cyril Hrubis ch...@su... |
From: Cyril H. <ch...@su...> - 2015-09-08 11:33:55
|
Hi! > +CASETYPE=$1 > +CASECMD="" > +cnt=1 > +for arg; do > + if [ $cnt -gt 1 ]; then > + CASECMD+=" " > + CASECMD+=$arg > fi > + cnt=$(( $cnt + 1 )) > done There is no need to do this. Just use the $@ instead of $CASECMD below. > +case $CASETYPE in > +"function" ) > + : $(( CASENO1 += 1 )) > + export CASENO1=$CASENO1 > + $TESTROOT/cgroup_fj_function.sh $CASECMD > + ;; > +"function2" ) > + : $(( CASENO1 += 1 )) > + export CASENO1=$CASENO1 > + $TESTROOT/cgroup_fj_function2.sh $CASECMD > + ;; > +"stress" ) > + : $(( CASENO2 += 1 )) > + export CASENO2=$CASENO2 > + $TESTROOT/cgroup_fj_stress.sh $CASECMD > + ;; > +esac > + > +ret=$? > +if [ $ret -eq 0 ]; then > + tst_resm TPASS "case$i($CASETYPE$CASECMD) PASS" > +elif [ $ret -ne 9 ]; then > + tst_resm TFAIL "case$i($CASETYPE$CASECMD) FAIL" > +fi The rest looks good to me. -- Cyril Hrubis ch...@su... |
From: Cui B. <cui...@hu...> - 2015-09-08 10:45:01
|
On 2015/9/8 17:38, Cyril Hrubis wrote: > Hi! >>> Delete linux_syscall_numbers.h in LTP otherwise it will not be >>> compiled when do 'make': >>> make: Nothing to be done for `all'. >> >> Looks like the reason why the file was added to git in the first place >> is that the script is relatively slow (takes seconds on new enough >> machine). Does that still concern anybody? > > And since Jan pushed a patch that speeds up the script that generates > the header significantly we can drop it from git now. > > I've applied this patch and added a .gitignore record for the header as > well, thanks. > It's look good and thanks. Cui Bixuan |
From: Cedric H. <ch...@su...> - 2015-09-08 10:35:16
|
Signed-off-by: Cedric Hnyda <ch...@su...> --- .../controllers/cgroup_fj/cgroup_fj_function.sh | 45 ++- .../controllers/cgroup_fj/cgroup_fj_stress.sh | 83 ++--- .../controllers/cgroup_fj/cgroup_fj_testcases.sh | 362 ++++++++++----------- .../controllers/cgroup_fj/cgroup_fj_utility.sh | 58 ++-- 4 files changed, 258 insertions(+), 290 deletions(-) diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh index 9bfaeb7..673a942 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh @@ -32,7 +32,6 @@ remove_operation=$7 notify_on_release=$8 release_agent_echo=$9 -subsystem_str=""; remount_use_str=""; noprefix_use_str=""; release_agent_para_str=""; @@ -55,24 +54,24 @@ usage() echo " -subgroup_exist -attach_operation -remove_operation" echo " -notify_on_release -release_agent_echo" echo " subsystem's usable number" - echo " 1: debug" - echo " 2: cpuset" - echo " 3: ns" - echo " 4: cpu" - echo " 5: cpuacct" - echo " 6: memory" - echo " 7: all" - echo " 8: (none)" - echo " 9: debug,debug" - echo " 10: (nonexistent subsystem), e.g. abc" - echo " 11: freezer" - echo " 12: devices" + echo " debug" + echo " cpuset" + echo " ns" + echo " cpu" + echo " cpuacct" + echo " memory" + echo " all" + echo " none: (none)" + echo " debug,debug: debug,debug" + echo " nonexistent: (nonexistent subsystem), e.g. abc" + echo " freezer: freezer" + echo " devices: devices" echo " remount_use's usable number" - echo " 1: do not use remount in "-o"'s parameter" - echo " 2: use it" + echo " yes: do not use remount in "-o"'s parameter" + echo " no: use it" echo " noprefix_use's usable number" - echo " 1: do not use noprefix in "-o"'s parameter" - echo " 2: use it. only cpuset available" + echo " yes: do not use noprefix in "-o"'s parameter" + echo " no: use it. only cpuset available" echo " release_agent_para's usable number" echo " 1: don't use release_agent_para= in "-o"'s parameter" echo " 2: empty after "="" @@ -83,8 +82,8 @@ usage() echo " 7: nonexistent command" echo " 8: no-permission command" echo " subgroup_exist's usable number" - echo " 1: subgroup will been created" - echo " 2: subgroup will not been created" + echo " yes: subgroup will been created" + echo " no: subgroup will not been created" echo " attach_operation's usable number" echo " 1: attach nothing" echo " 2: attach one process by echo" @@ -114,7 +113,7 @@ usage() echo " 5: command in other directory" echo " 6: nonexistent command" echo " 7: no-permission command" - echo "example: ./cgroup_fj_function.sh 1 1 1 1 1 1 1 1 1" + echo "example: ./cgroup_fj_function.sh debug yes yes 1 yes 1 1 1 1" echo " will use "debug" to test, will not use option "remount","noprefix","release_agent"" echo " in in "-o"'s parameter, will create some subgroup, will not attach/remove any process" echo " will echo 0 to notify_on_release and will not echo anything to release_agent" @@ -157,10 +156,10 @@ mkdir_subgroup; # cpuset.cpus and cpuset.mems should be specified with suitable value # before attaching operation if subsystem is cpuset -if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] || [ $subsystem -eq 8 ] ; then +if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] || [ $subsystem == "none" ] ; then exist=`grep -w cpuset /proc/cgroups | cut -f1`; if [ "$exist" != "" ]; then - if [ $noprefix_use -eq 2 ]; then + if [ "$noprefix_use" == "no" ]; then do_echo 1 1 `cat /dev/cgroup/cpus` /dev/cgroup/subgroup_1/cpus; do_echo 1 1 `cat /dev/cgroup/mems` /dev/cgroup/subgroup_1/mems; else @@ -234,7 +233,7 @@ sleep 1 # pid could not be echoed from subgroup if subsystem is ( or include ) ns, # so we kill them here -if [ $subsystem -eq 3 ] || [ $subsystem -eq 7 ] || [ $subsystem -eq 8 ] ; then +if [ "$subsystem" == "ns" ] || [ "$subsystem" == "all" ] || [ $subsystem == "none" ] ; then do_kill 1 1 9 $pid do_kill 1 1 9 $pid2 # removing operation diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh index fcca228..972a717 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh @@ -46,29 +46,29 @@ usage() echo "usage of cgroup_fj_stress.sh: " echo " ./cgroup_fj_stress.sh -subsystem -mount_times -subgroup_num -subgroup_hiers -attach_operation" echo " subsystem's usable number" - echo " 1: debug" - echo " 2: cpuset" - echo " 3: ns" - echo " 4: cpu" - echo " 5: cpuacct" - echo " 6: memory" - echo " 7: all" + echo " debug" + echo " cpuset" + echo " ns" + echo " cpu" + echo " cpuacct" + echo " memory" + echo " all" echo " mount_times's usable number" echo " 1: execute once" - echo " 2: execute 100 times" + echo " 100: execute 100 times" echo " subgroup_num's usable number" echo " (subgroup number in the same hierarchy)" - echo " 1: 1" - echo " 2: 100" + echo " 1" + echo " 100" echo " subgroup_hiers's usable number" echo " (number of subgroup's hierarchy)" - echo " 1: 1" - echo " 2: 100" + echo " 1" + echo " 100" echo " attach_operation's usable number" echo " 1: attach one process to every subcgroup" echo " 2: attach all processes in root group to one subcgroup" echo " 3: attach all processes in root group to every subcgroup" - echo "example: ./cgroup_fj_stress.sh 1 1 1 1 1" + echo "example: ./cgroup_fj_stress.sh debug 1 1 1 1" echo " will use "debug" to test, will mount once, will create one subgroup in same hierarchy," echo " will create one hierarchy, will attach one process to every subcgroup" } @@ -91,8 +91,7 @@ export TMPFILE=$TESTROOT/tmp_tasks pid=0; release_agent_para=1; release_agent_echo=1; -subsystem_str="debug"; -get_subsystem; +subsystem_str=$subsystem; if [ "$?" -ne "0" ] || [ "$#" -ne "5" ]; then usage; exit_parameter; @@ -130,42 +129,24 @@ get_subgroup_path2() } case $mount_times in -"1" ) - mount_times=1 - ;; -"2" ) - mount_times=100 - ;; -* ) - usage; - exit_parameter; - ;; +''|*[!0-9]*) + usage + exit_parameter;; + *) ;; esac case $subgroup_num in -"1" ) - subgroup_num=1 - ;; -"2" ) - subgroup_num=100 - ;; -* ) - usage; - exit_parameter; - ;; +''|*[!0-9]*) + usage + exit_parameter;; + *) ;; esac case $subgroup_hiers in -"1" ) - subgroup_hiers=1 - ;; -"2" ) - subgroup_hiers=100 - ;; -* ) - usage; - exit_parameter; - ;; +''|*[!0-9]*) + usage + exit_parameter;; + *) ;; esac ########################## main ####################### @@ -186,7 +167,7 @@ cpus=0 mems=0 exist_cpuset=0 exist_cpuset=`grep -w cpuset /proc/cgroups | cut -f1`; -if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then +if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then cpus=`cat /dev/cgroup/cpuset.cpus` mems=`cat /dev/cgroup/cpuset.mems` @@ -197,7 +178,7 @@ mkdir_subgroup; # cpuset.cpus and cpuset.mems should be specified with suitable value # before attachint operation if subsystem is cpuset -if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then +if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" /dev/cgroup/subgroup_1/cpuset.cpus; do_echo 1 1 "$mems" /dev/cgroup/subgroup_1/cpuset.mems; @@ -209,7 +190,7 @@ if [ $mount_times -ne 1 ]; then for i in `seq 1 $mount_times` do do_echo 1 1 $pid /dev/cgroup/subgroup_1/tasks - if [ $subsystem -eq 3 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "ns" ] || [ "$subsystem" == "all" ] ; then do_kill 1 1 9 $pid $TESTROOT/cgroup_fj_proc & pid=$! @@ -221,7 +202,7 @@ if [ $mount_times -ne 1 ]; then pid=$! mount_cgroup; mkdir_subgroup; - if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" /dev/cgroup/subgroup_1/cpuset.cpus; do_echo 1 1 "$mems" /dev/cgroup/subgroup_1/cpuset.mems; @@ -239,7 +220,7 @@ else do get_subgroup_path1 $i do_mkdir 1 1 $cur_subgroup_path1 - if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" "$cur_subgroup_path1""cpuset.cpus"; do_echo 1 1 "$mems" "$cur_subgroup_path1""cpuset.mems"; @@ -251,7 +232,7 @@ else do get_subgroup_path2 $j do_mkdir 1 1 "$cur_subgroup_path1""$cur_subgroup_path2" 1 - if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" "$cur_subgroup_path1""$cur_subgroup_path2""cpuset.cpus"; do_echo 1 1 "$mems" "$cur_subgroup_path1""$cur_subgroup_path2""cpuset.mems"; diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh index d9af22a..a03918a 100644 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh @@ -1,137 +1,137 @@ -function 1 1 1 1 1 2 3 2 1 -function 1 2 1 1 1 2 3 2 1 -function 1 1 1 2 1 2 3 2 1 -function 1 1 1 3 1 2 3 2 1 -function 1 1 1 4 1 2 3 2 1 -function 1 1 1 5 1 2 3 2 1 -function 1 1 1 6 1 2 3 2 1 -function 1 1 1 7 1 2 3 2 1 -function 1 1 1 8 1 2 3 2 1 -function 2 1 1 1 1 2 3 2 1 -function 2 2 1 1 1 2 3 2 1 -function 2 1 2 1 1 2 3 2 1 -function 2 1 1 2 1 2 3 2 1 -function 2 1 1 3 1 2 3 2 1 -function 2 1 1 4 1 2 3 2 1 -function 2 1 1 5 1 2 3 2 1 -function 2 1 1 6 1 2 3 2 1 -function 2 1 1 7 1 2 3 2 1 -function 2 1 1 8 1 2 3 2 1 -function 3 1 1 1 1 2 3 2 1 -function 3 2 1 1 1 2 3 2 1 -function 3 1 1 2 1 2 3 2 1 -function 3 1 1 3 1 2 3 2 1 -function 3 1 1 4 1 2 3 2 1 -function 3 1 1 5 1 2 3 2 1 -function 3 1 1 6 1 2 3 2 1 -function 3 1 1 7 1 2 3 2 1 -function 3 1 1 8 1 2 3 2 1 -function 4 1 1 1 1 2 3 2 1 -function 4 2 1 1 1 2 3 2 1 -function 4 1 1 2 1 2 3 2 1 -function 4 1 1 3 1 2 3 2 1 -function 4 1 1 4 1 2 3 2 1 -function 4 1 1 5 1 2 3 2 1 -function 4 1 1 6 1 2 3 2 1 -function 4 1 1 7 1 2 3 2 1 -function 4 1 1 8 1 2 3 2 1 -function 5 1 1 1 1 2 3 2 1 -function 5 2 1 1 1 2 3 2 1 -function 5 1 1 2 1 2 3 2 1 -function 5 1 1 3 1 2 3 2 1 -function 5 1 1 4 1 2 3 2 1 -function 5 1 1 5 1 2 3 2 1 -function 5 1 1 6 1 2 3 2 1 -function 5 1 1 7 1 2 3 2 1 -function 5 1 1 8 1 2 3 2 1 -function 6 1 1 1 1 2 3 2 1 -function 6 2 1 1 1 2 3 2 1 -function 6 1 1 2 1 2 3 2 1 -function 6 1 1 3 1 2 3 2 1 -function 6 1 1 4 1 2 3 2 1 -function 6 1 1 5 1 2 3 2 1 -function 6 1 1 6 1 2 3 2 1 -function 6 1 1 7 1 2 3 2 1 -function 6 1 1 8 1 2 3 2 1 -function 7 1 1 1 1 2 3 2 1 -function 7 2 1 1 1 2 3 2 1 -function 7 1 1 2 1 2 3 2 1 -function 7 1 1 3 1 2 3 2 1 -function 7 1 1 4 1 2 3 2 1 -function 7 1 1 5 1 2 3 2 1 -function 7 1 1 6 1 2 3 2 1 -function 7 1 1 7 1 2 3 2 1 -function 7 1 1 8 1 2 3 2 1 -function 8 1 1 1 1 2 3 2 1 -function 9 1 1 1 1 2 3 2 1 -function 9 2 1 1 1 2 3 2 1 -function 9 1 1 2 1 2 3 2 1 -function 9 1 1 3 1 2 3 2 1 -function 9 1 1 4 1 2 3 2 1 -function 9 1 1 5 1 2 3 2 1 -function 9 1 1 6 1 2 3 2 1 -function 9 1 1 7 1 2 3 2 1 -function 9 1 1 8 1 2 3 2 1 -function 10 1 1 1 1 2 3 2 1 -function 11 1 1 1 1 2 3 2 1 -function 11 2 1 1 1 2 3 2 1 -function 11 1 1 2 1 2 3 2 1 -function 11 1 1 3 1 2 3 2 1 -function 11 1 1 4 1 2 3 2 1 -function 11 1 1 5 1 2 3 2 1 -function 11 1 1 6 1 2 3 2 1 -function 11 1 1 7 1 2 3 2 1 -function 11 1 1 8 1 2 3 2 1 -function 12 1 1 1 1 2 3 2 1 -function 12 2 1 1 1 2 3 2 1 -function 12 1 1 2 1 2 3 2 1 -function 12 1 1 3 1 2 3 2 1 -function 12 1 1 4 1 2 3 2 1 -function 12 1 1 5 1 2 3 2 1 -function 12 1 1 6 1 2 3 2 1 -function 12 1 1 7 1 2 3 2 1 -function 12 1 1 8 1 2 3 2 1 -function 1 1 1 1 1 1 2 1 1 -function 1 1 1 1 1 2 2 1 1 -function 1 1 1 1 1 2 3 1 1 -function 1 1 1 1 1 2 5 1 1 -function 1 1 1 1 1 3 1 1 1 -function 1 1 1 1 1 3 2 1 1 -function 1 1 1 1 1 3 4 1 1 -function 1 1 1 1 1 4 3 1 1 -function 1 1 1 1 1 4 5 1 1 -function 1 1 1 1 2 1 1 1 1 -function 1 1 1 1 1 1 1 1 1 -function 1 1 1 1 1 1 3 2 1 -function 1 1 1 1 1 2 3 2 2 -function 1 1 1 1 1 2 3 2 3 -function 1 1 1 1 1 2 3 2 4 -function 1 1 1 1 1 2 3 2 5 -function 1 1 1 1 1 2 3 2 6 -function 1 1 1 1 1 2 3 2 7 -function 1 1 1 1 1 2 3 3 2 -function 1 1 1 1 1 2 3 4 2 -function 1 1 1 1 1 2 3 5 2 -function 1 1 1 1 1 2 3 6 2 -function 1 1 1 1 1 2 3 7 2 -function 1 1 1 2 1 2 3 2 2 -function 1 1 1 3 1 2 3 1 1 -function 1 1 1 3 1 2 3 1 2 -function 1 1 1 3 1 2 3 1 3 -function 1 1 1 3 1 2 3 2 1 -function 1 1 1 3 1 2 3 2 2 -function 1 1 1 3 1 2 3 2 3 -function 1 1 1 3 1 2 3 2 4 -function 1 1 1 3 1 2 3 2 5 -function 1 1 1 3 1 2 3 2 6 -function 1 1 1 3 1 2 3 2 7 -function 1 1 1 3 1 2 3 3 1 -function 1 1 1 3 1 2 3 3 2 -function 1 1 1 3 1 2 3 3 3 -function 1 1 1 3 1 2 3 4 2 -function 1 1 1 3 1 2 3 5 2 -function 1 1 1 3 1 2 3 6 2 -function 1 1 1 3 1 2 3 7 2 +function debug yes yes 1 yes 2 3 2 1 +function debug no yes 1 yes 2 3 2 1 +function debug yes yes 2 yes 2 3 2 1 +function debug yes yes 3 yes 2 3 2 1 +function debug yes yes 4 yes 2 3 2 1 +function debug yes yes 5 yes 2 3 2 1 +function debug yes yes 6 yes 2 3 2 1 +function debug yes yes 7 yes 2 3 2 1 +function debug yes yes 8 yes 2 3 2 1 +function cpuset yes yes 1 yes 2 3 2 1 +function cpuset no yes 1 yes 2 3 2 1 +function cpuset yes no 1 yes 2 3 2 1 +function cpuset yes yes 2 yes 2 3 2 1 +function cpuset yes yes 3 yes 2 3 2 1 +function cpuset yes yes 4 yes 2 3 2 1 +function cpuset yes yes 5 yes 2 3 2 1 +function cpuset yes yes 6 yes 2 3 2 1 +function cpuset yes yes 7 yes 2 3 2 1 +function cpuset yes yes 8 yes 2 3 2 1 +function ns yes yes 1 yes 2 3 2 1 +function ns no yes 1 yes 2 3 2 1 +function ns yes yes 2 yes 2 3 2 1 +function ns yes yes 3 yes 2 3 2 1 +function ns yes yes 4 yes 2 3 2 1 +function ns yes yes 5 yes 2 3 2 1 +function ns yes yes 6 yes 2 3 2 1 +function ns yes yes 7 yes 2 3 2 1 +function ns yes yes 8 yes 2 3 2 1 +function cpu yes yes 1 yes 2 3 2 1 +function cpu no yes 1 yes 2 3 2 1 +function cpu yes yes 2 yes 2 3 2 1 +function cpu yes yes 3 yes 2 3 2 1 +function cpu yes yes 4 yes 2 3 2 1 +function cpu yes yes 5 yes 2 3 2 1 +function cpu yes yes 6 yes 2 3 2 1 +function cpu yes yes 7 yes 2 3 2 1 +function cpu yes yes 8 yes 2 3 2 1 +function cpuacct yes yes 1 yes 2 3 2 1 +function cpuacct no yes 1 yes 2 3 2 1 +function cpuacct yes yes 2 yes 2 3 2 1 +function cpuacct yes yes 3 yes 2 3 2 1 +function cpuacct yes yes 4 yes 2 3 2 1 +function cpuacct yes yes 5 yes 2 3 2 1 +function cpuacct yes yes 6 yes 2 3 2 1 +function cpuacct yes yes 7 yes 2 3 2 1 +function cpuacct yes yes 8 yes 2 3 2 1 +function memory yes yes 1 yes 2 3 2 1 +function memory no yes 1 yes 2 3 2 1 +function memory yes yes 2 yes 2 3 2 1 +function memory yes yes 3 yes 2 3 2 1 +function memory yes yes 4 yes 2 3 2 1 +function memory yes yes 5 yes 2 3 2 1 +function memory yes yes 6 yes 2 3 2 1 +function memory yes yes 7 yes 2 3 2 1 +function memory yes yes 8 yes 2 3 2 1 +function all yes yes 1 yes 2 3 2 1 +function all no yes 1 yes 2 3 2 1 +function all yes yes 2 yes 2 3 2 1 +function all yes yes 3 yes 2 3 2 1 +function all yes yes 4 yes 2 3 2 1 +function all yes yes 5 yes 2 3 2 1 +function all yes yes 6 yes 2 3 2 1 +function all yes yes 7 yes 2 3 2 1 +function all yes yes 8 yes 2 3 2 1 +function none yes yes 1 yes 2 3 2 1 +function debug,debug yes yes 1 yes 2 3 2 1 +function debug,debug no yes 1 yes 2 3 2 1 +function debug,debug yes yes 2 yes 2 3 2 1 +function debug,debug yes yes 3 yes 2 3 2 1 +function debug,debug yes yes 4 yes 2 3 2 1 +function debug,debug yes yes 5 yes 2 3 2 1 +function debug,debug yes yes 6 yes 2 3 2 1 +function debug,debug yes yes 7 yes 2 3 2 1 +function debug,debug yes yes 8 yes 2 3 2 1 +function nonexistent yes yes 1 yes 2 3 2 1 +function freezer yes yes 1 yes 2 3 2 1 +function freezer no yes 1 yes 2 3 2 1 +function freezer yes yes 2 yes 2 3 2 1 +function freezer yes yes 3 yes 2 3 2 1 +function freezer yes yes 4 yes 2 3 2 1 +function freezer yes yes 5 yes 2 3 2 1 +function freezer yes yes 6 yes 2 3 2 1 +function freezer yes yes 7 yes 2 3 2 1 +function freezer yes yes 8 yes 2 3 2 1 +function devices yes yes 1 yes 2 3 2 1 +function devices no yes 1 yes 2 3 2 1 +function devices yes yes 2 yes 2 3 2 1 +function devices yes yes 3 yes 2 3 2 1 +function devices yes yes 4 yes 2 3 2 1 +function devices yes yes 5 yes 2 3 2 1 +function devices yes yes 6 yes 2 3 2 1 +function devices yes yes 7 yes 2 3 2 1 +function devices yes yes 8 yes 2 3 2 1 +function debug yes yes 1 yes 1 2 1 1 +function debug yes yes 1 yes 2 2 1 1 +function debug yes yes 1 yes 2 3 1 1 +function debug yes yes 1 yes 2 5 1 1 +function debug yes yes 1 yes 3 1 1 1 +function debug yes yes 1 yes 3 2 1 1 +function debug yes yes 1 yes 3 4 1 1 +function debug yes yes 1 yes 4 3 1 1 +function debug yes yes 1 yes 4 5 1 1 +function debug yes yes 1 no 1 1 1 1 +function debug yes yes 1 yes 1 1 1 1 +function debug yes yes 1 yes 1 3 2 1 +function debug yes yes 1 yes 2 3 2 2 +function debug yes yes 1 yes 2 3 2 3 +function debug yes yes 1 yes 2 3 2 4 +function debug yes yes 1 yes 2 3 2 5 +function debug yes yes 1 yes 2 3 2 6 +function debug yes yes 1 yes 2 3 2 7 +function debug yes yes 1 yes 2 3 3 2 +function debug yes yes 1 yes 2 3 4 2 +function debug yes yes 1 yes 2 3 5 2 +function debug yes yes 1 yes 2 3 6 2 +function debug yes yes 1 yes 2 3 7 2 +function debug yes yes 2 yes 2 3 2 2 +function debug yes yes 3 yes 2 3 1 1 +function debug yes yes 3 yes 2 3 1 2 +function debug yes yes 3 yes 2 3 1 3 +function debug yes yes 3 yes 2 3 2 1 +function debug yes yes 3 yes 2 3 2 2 +function debug yes yes 3 yes 2 3 2 3 +function debug yes yes 3 yes 2 3 2 4 +function debug yes yes 3 yes 2 3 2 5 +function debug yes yes 3 yes 2 3 2 6 +function debug yes yes 3 yes 2 3 2 7 +function debug yes yes 3 yes 2 3 3 1 +function debug yes yes 3 yes 2 3 3 2 +function debug yes yes 3 yes 2 3 3 3 +function debug yes yes 3 yes 2 3 4 2 +function debug yes yes 3 yes 2 3 5 2 +function debug yes yes 3 yes 2 3 6 2 +function debug yes yes 3 yes 2 3 7 2 function2 1 function2 2 function2 3 @@ -145,50 +145,50 @@ function2 10 function2 11 function2 12 function2 13 -stress 1 2 1 1 1 -stress 2 2 1 1 1 -stress 3 2 1 1 1 -stress 4 2 1 1 1 -stress 5 2 1 1 1 -stress 6 2 1 1 1 -stress 7 2 1 1 1 -stress 1 1 1 1 2 -stress 1 1 1 2 1 -stress 1 1 1 2 2 -stress 1 1 1 2 3 -stress 1 1 2 1 1 -stress 1 1 2 1 2 -stress 1 1 2 1 3 -stress 1 1 2 2 1 -stress 1 1 2 2 2 -stress 2 1 1 1 2 -stress 2 1 1 2 1 -stress 2 1 1 2 2 -stress 2 1 1 2 3 -stress 2 1 2 1 1 -stress 2 1 2 1 2 -stress 2 1 2 1 3 -stress 2 1 2 2 1 -stress 2 1 2 2 2 -stress 4 1 1 1 2 -stress 4 1 2 1 1 -stress 4 1 2 1 2 -stress 4 1 2 1 3 -stress 5 1 1 1 2 -stress 5 1 1 2 1 -stress 5 1 1 2 2 -stress 5 1 1 2 3 -stress 5 1 2 1 1 -stress 5 1 2 1 2 -stress 5 1 2 1 3 -stress 5 1 2 2 1 -stress 5 1 2 2 2 -stress 6 1 1 1 2 -stress 6 1 1 2 1 -stress 6 1 1 2 2 -stress 6 1 1 2 3 -stress 6 1 2 1 1 -stress 6 1 2 1 2 -stress 6 1 2 1 3 -stress 6 1 2 2 1 -stress 6 1 2 2 2 +stress debug 100 1 1 1 +stress cpuset 100 1 1 1 +stress ns 100 1 1 1 +stress cpu 100 1 1 1 +stress cpuacct 100 1 1 1 +stress memory 100 1 1 1 +stress all 100 1 1 1 +stress debug 1 1 1 2 +stress debug 1 1 100 1 +stress debug 1 1 100 2 +stress debug 1 1 100 3 +stress debug 1 100 1 1 +stress debug 1 100 1 2 +stress debug 1 100 1 3 +stress debug 1 100 100 1 +stress debug 1 100 100 2 +stress cpuset 1 1 1 2 +stress cpuset 1 1 100 1 +stress cpuset 1 1 100 2 +stress cpuset 1 1 100 3 +stress cpuset 1 100 1 1 +stress cpuset 1 100 1 2 +stress cpuset 1 100 1 3 +stress cpuset 1 100 100 1 +stress cpuset 1 100 100 2 +stress cpu 1 1 1 2 +stress cpu 1 100 1 1 +stress cpu 1 100 1 2 +stress cpu 1 100 1 3 +stress cpuacct 1 1 1 2 +stress cpuacct 1 1 100 1 +stress cpuacct 1 1 100 2 +stress cpuacct 1 1 100 3 +stress cpuacct 1 100 1 1 +stress cpuacct 1 100 1 2 +stress cpuacct 1 100 1 3 +stress cpuacct 1 100 100 1 +stress cpuacct 1 100 100 2 +stress memory 1 1 1 2 +stress memory 1 1 100 1 +stress memory 1 1 100 2 +stress memory 1 1 100 3 +stress memory 1 100 1 1 +stress memory 1 100 1 2 +stress memory 1 100 1 3 +stress memory 1 100 100 1 +stress memory 1 100 100 2 \ No newline at end of file diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh index 9b49725..1e2e521 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh @@ -22,14 +22,12 @@ ## ## ################################################################################ -subsystem_str="" - exist_subsystem() { checksubsystem="" case "$#" in "0" ) - checksubsystem=$subsystem_str + checksubsystem=$subsystem ;; "1" ) checksubsystem=$1 @@ -54,49 +52,39 @@ exist_subsystem() get_subsystem() { case $subsystem in - "1" ) - subsystem_str="debug"; + "debug" ) exist_subsystem; ;; - "2" ) - subsystem_str="cpuset"; + "cpuset" ) exist_subsystem; ;; - "3" ) - subsystem_str="ns"; + "ns" ) exist_subsystem; ;; - "4" ) - subsystem_str="cpu" + "cpu" ) exist_subsystem; ;; - "5" ) - subsystem_str="cpuacct"; + "cpuacct" ) exist_subsystem; ;; - "6" ) - subsystem_str="memory"; + "memory" ) exist_subsystem; ;; - "7" ) - subsystem_str="all"; + "all" ) ;; - "8" ) - subsystem_str="" + "none" ) + subsystem="" ;; - "9" ) - subsystem_str="debug,debug"; + "debug,debug" ) exist_subsystem "debug"; ;; - "10" ) - subsystem_str="abc"; + "nonexistent" ) + subsystem="abc"; ;; - "11" ) - subsystem_str="freezer"; + "freezer" ) exist_subsystem; ;; - "12" ) - subsystem_str="devices"; + "devices" ) exist_subsystem; ;; * ) @@ -108,10 +96,10 @@ get_subsystem() get_remount_use() { case $remount_use in - "1" ) + "yes" ) remount_use_str=""; ;; - "2" ) + "no" ) remount_use_str="remount"; ;; * ) @@ -123,11 +111,11 @@ get_remount_use() get_noprefix_use() { case $noprefix_use in - "1" ) + "yes" ) noprefix_use_str=""; ;; - "2" ) - if [ $subsystem -ne 2 ]; then + "no" ) + if [ $subsystem != "cpuset" ]; then return -1 fi noprefix_use_str="noprefix"; @@ -570,11 +558,11 @@ mount_cgroup () { expectted=1 PARAMETER_O=""; - if [ $subsystem -eq 10 ]; then + if [ "$subsystem" == "abc" ]; then expectted=0 fi - if [ "$subsystem_str" != "" ]; then - PARAMETER_O="$subsystem_str" + if [ "$subsystem" != "" ]; then + PARAMETER_O="$subsystem" fi if [ "$noprefix_use_str" != "" ]; then if [ "$PARAMETER_O" != "" ]; then -- 2.1.4 |
From: Cedric H. <ch...@su...> - 2015-09-08 10:19:46
|
Signed-off-by: Cedric Hnyda <ch...@su...> --- runtest/controllers | 197 ++++++++++++++++++++- .../controllers/cgroup_fj/cgroup_fj_testcases.sh | 194 -------------------- .../controllers/cgroup_fj/run_cgroup_test_fj.sh | 80 +++++---- 3 files changed, 240 insertions(+), 231 deletions(-) delete mode 100644 testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh diff --git a/runtest/controllers b/runtest/controllers index 7ec8ab2..6a819a1 100644 --- a/runtest/controllers +++ b/runtest/controllers @@ -10,7 +10,202 @@ memcg_use_hierarchy memcg_use_hierarchy_test.sh memcg_usage_in_bytes memcg_usage_in_bytes_test.sh memcg_stress memcg_stress_test.sh memcg_control PAGESIZE=$(mem_process -p);memcg_control_test.sh $PAGESIZE $PAGESIZE $((PAGESIZE * 2)) -cgroup_fj run_cgroup_test_fj.sh + +function_debug_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 1 +function_debug_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function debug no yes 1 yes 2 3 2 1 +function_debug_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 2 yes 2 3 2 1 +function_debug_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 1 +function_debug_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 4 yes 2 3 2 1 +function_debug_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 5 yes 2 3 2 1 +function_debug_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 6 yes 2 3 2 1 +function_debug_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 7 yes 2 3 2 1 +function_debug_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 8 yes 2 3 2 1 +function_cpuset_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 1 yes 2 3 2 1 +function_cpuset_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset no yes 1 yes 2 3 2 1 +function_cpuset_yes_no_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes no 1 yes 2 3 2 1 +function_cpuset_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 2 yes 2 3 2 1 +function_cpuset_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 3 yes 2 3 2 1 +function_cpuset_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 4 yes 2 3 2 1 +function_cpuset_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 5 yes 2 3 2 1 +function_cpuset_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 6 yes 2 3 2 1 +function_cpuset_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 7 yes 2 3 2 1 +function_cpuset_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuset yes yes 8 yes 2 3 2 1 +function_ns_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 1 yes 2 3 2 1 +function_ns_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function ns no yes 1 yes 2 3 2 1 +function_ns_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 2 yes 2 3 2 1 +function_ns_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 3 yes 2 3 2 1 +function_ns_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 4 yes 2 3 2 1 +function_ns_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 5 yes 2 3 2 1 +function_ns_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 6 yes 2 3 2 1 +function_ns_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 7 yes 2 3 2 1 +function_ns_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function ns yes yes 8 yes 2 3 2 1 +function_cpu_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 1 yes 2 3 2 1 +function_cpu_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu no yes 1 yes 2 3 2 1 +function_cpu_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 2 yes 2 3 2 1 +function_cpu_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 3 yes 2 3 2 1 +function_cpu_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 4 yes 2 3 2 1 +function_cpu_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 5 yes 2 3 2 1 +function_cpu_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 6 yes 2 3 2 1 +function_cpu_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 7 yes 2 3 2 1 +function_cpu_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function cpu yes yes 8 yes 2 3 2 1 +function_cpuacct_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 1 yes 2 3 2 1 +function_cpuacct_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct no yes 1 yes 2 3 2 1 +function_cpuacct_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 2 yes 2 3 2 1 +function_cpuacct_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 3 yes 2 3 2 1 +function_cpuacct_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 4 yes 2 3 2 1 +function_cpuacct_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 5 yes 2 3 2 1 +function_cpuacct_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 6 yes 2 3 2 1 +function_cpuacct_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 7 yes 2 3 2 1 +function_cpuacct_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function cpuacct yes yes 8 yes 2 3 2 1 +function_memory_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 1 yes 2 3 2 1 +function_memory_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function memory no yes 1 yes 2 3 2 1 +function_memory_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 2 yes 2 3 2 1 +function_memory_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 3 yes 2 3 2 1 +function_memory_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 4 yes 2 3 2 1 +function_memory_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 5 yes 2 3 2 1 +function_memory_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 6 yes 2 3 2 1 +function_memory_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 7 yes 2 3 2 1 +function_memory_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function memory yes yes 8 yes 2 3 2 1 +function_all_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 1 yes 2 3 2 1 +function_all_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function all no yes 1 yes 2 3 2 1 +function_all_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 2 yes 2 3 2 1 +function_all_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 3 yes 2 3 2 1 +function_all_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 4 yes 2 3 2 1 +function_all_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 5 yes 2 3 2 1 +function_all_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 6 yes 2 3 2 1 +function_all_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 7 yes 2 3 2 1 +function_all_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function all yes yes 8 yes 2 3 2 1 +function_none_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function none yes yes 1 yes 2 3 2 1 +function_debug,debug_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 1 yes 2 3 2 1 +function_debug,debug_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug no yes 1 yes 2 3 2 1 +function_debug,debug_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 2 yes 2 3 2 1 +function_debug,debug_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 3 yes 2 3 2 1 +function_debug,debug_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 4 yes 2 3 2 1 +function_debug,debug_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 5 yes 2 3 2 1 +function_debug,debug_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 6 yes 2 3 2 1 +function_debug,debug_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 7 yes 2 3 2 1 +function_debug,debug_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function debug,debug yes yes 8 yes 2 3 2 1 +function_nonexistent_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function nonexistent yes yes 1 yes 2 3 2 1 +function_freezer_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 1 yes 2 3 2 1 +function_freezer_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer no yes 1 yes 2 3 2 1 +function_freezer_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 2 yes 2 3 2 1 +function_freezer_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 3 yes 2 3 2 1 +function_freezer_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 4 yes 2 3 2 1 +function_freezer_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 5 yes 2 3 2 1 +function_freezer_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 6 yes 2 3 2 1 +function_freezer_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 7 yes 2 3 2 1 +function_freezer_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function freezer yes yes 8 yes 2 3 2 1 +function_devices_yes_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 1 yes 2 3 2 1 +function_devices_no_yes_1_yes_2_3_2_1 run_cgroup_test_fj.sh function devices no yes 1 yes 2 3 2 1 +function_devices_yes_yes_2_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 2 yes 2 3 2 1 +function_devices_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 3 yes 2 3 2 1 +function_devices_yes_yes_4_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 4 yes 2 3 2 1 +function_devices_yes_yes_5_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 5 yes 2 3 2 1 +function_devices_yes_yes_6_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 6 yes 2 3 2 1 +function_devices_yes_yes_7_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 7 yes 2 3 2 1 +function_devices_yes_yes_8_yes_2_3_2_1 run_cgroup_test_fj.sh function devices yes yes 8 yes 2 3 2 1 +function_debug_yes_yes_1_yes_1_2_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 1 2 1 1 +function_debug_yes_yes_1_yes_2_2_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 2 1 1 +function_debug_yes_yes_1_yes_2_3_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 1 1 +function_debug_yes_yes_1_yes_2_5_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 5 1 1 +function_debug_yes_yes_1_yes_3_1_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 3 1 1 1 +function_debug_yes_yes_1_yes_3_2_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 3 2 1 1 +function_debug_yes_yes_1_yes_3_4_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 3 4 1 1 +function_debug_yes_yes_1_yes_4_3_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 4 3 1 1 +function_debug_yes_yes_1_yes_4_5_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 4 5 1 1 +function_debug_yes_yes_1_no_1_1_1_1 run_cgroup_test_fj.sh function debug yes yes 1 no 1 1 1 1 +function_debug_yes_yes_1_yes_1_1_1_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 1 1 1 1 +function_debug_yes_yes_1_yes_1_3_2_1 run_cgroup_test_fj.sh function debug yes yes 1 yes 1 3 2 1 +function_debug_yes_yes_1_yes_2_3_2_2 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 2 +function_debug_yes_yes_1_yes_2_3_2_3 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 3 +function_debug_yes_yes_1_yes_2_3_2_4 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 4 +function_debug_yes_yes_1_yes_2_3_2_5 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 5 +function_debug_yes_yes_1_yes_2_3_2_6 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 6 +function_debug_yes_yes_1_yes_2_3_2_7 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 2 7 +function_debug_yes_yes_1_yes_2_3_3_2 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 3 2 +function_debug_yes_yes_1_yes_2_3_4_2 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 4 2 +function_debug_yes_yes_1_yes_2_3_5_2 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 5 2 +function_debug_yes_yes_1_yes_2_3_6_2 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 6 2 +function_debug_yes_yes_1_yes_2_3_7_2 run_cgroup_test_fj.sh function debug yes yes 1 yes 2 3 7 2 +function_debug_yes_yes_2_yes_2_3_2_2 run_cgroup_test_fj.sh function debug yes yes 2 yes 2 3 2 2 +function_debug_yes_yes_3_yes_2_3_1_1 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 1 1 +function_debug_yes_yes_3_yes_2_3_1_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 1 2 +function_debug_yes_yes_3_yes_2_3_1_3 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 1 3 +function_debug_yes_yes_3_yes_2_3_2_1 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 1 +function_debug_yes_yes_3_yes_2_3_2_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 2 +function_debug_yes_yes_3_yes_2_3_2_3 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 3 +function_debug_yes_yes_3_yes_2_3_2_4 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 4 +function_debug_yes_yes_3_yes_2_3_2_5 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 5 +function_debug_yes_yes_3_yes_2_3_2_6 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 6 +function_debug_yes_yes_3_yes_2_3_2_7 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 2 7 +function_debug_yes_yes_3_yes_2_3_3_1 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 3 1 +function_debug_yes_yes_3_yes_2_3_3_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 3 2 +function_debug_yes_yes_3_yes_2_3_3_3 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 3 3 +function_debug_yes_yes_3_yes_2_3_4_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 4 2 +function_debug_yes_yes_3_yes_2_3_5_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 5 2 +function_debug_yes_yes_3_yes_2_3_6_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 6 2 +function_debug_yes_yes_3_yes_2_3_7_2 run_cgroup_test_fj.sh function debug yes yes 3 yes 2 3 7 2 +function2_1 run_cgroup_test_fj.sh function2 1 +function2_2 run_cgroup_test_fj.sh function2 2 +function2_3 run_cgroup_test_fj.sh function2 3 +function2_4 run_cgroup_test_fj.sh function2 4 +function2_5 run_cgroup_test_fj.sh function2 5 +function2_6 run_cgroup_test_fj.sh function2 6 +function2_7 run_cgroup_test_fj.sh function2 7 +function2_8 run_cgroup_test_fj.sh function2 8 +function2_9 run_cgroup_test_fj.sh function2 9 +function2_10 run_cgroup_test_fj.sh function2 10 +function2_11 run_cgroup_test_fj.sh function2 11 +function2_12 run_cgroup_test_fj.sh function2 12 +function2_13 run_cgroup_test_fj.sh function2 13 +stress_debug_100_1_1_1 run_cgroup_test_fj.sh stress debug 100 1 1 1 +stress_cpuset_100_1_1_1 run_cgroup_test_fj.sh stress cpuset 100 1 1 1 +stress_ns_100_1_1_1 run_cgroup_test_fj.sh stress ns 100 1 1 1 +stress_cpu_100_1_1_1 run_cgroup_test_fj.sh stress cpu 100 1 1 1 +stress_cpuacct_100_1_1_1 run_cgroup_test_fj.sh stress cpuacct 100 1 1 1 +stress_memory_100_1_1_1 run_cgroup_test_fj.sh stress memory 100 1 1 1 +stress_all_100_1_1_1 run_cgroup_test_fj.sh stress all 100 1 1 1 +stress_debug_1_1_1_2 run_cgroup_test_fj.sh stress debug 1 1 1 2 +stress_debug_1_1_100_1 run_cgroup_test_fj.sh stress debug 1 1 100 1 +stress_debug_1_1_100_2 run_cgroup_test_fj.sh stress debug 1 1 100 2 +stress_debug_1_1_100_3 run_cgroup_test_fj.sh stress debug 1 1 100 3 +stress_debug_1_100_1_1 run_cgroup_test_fj.sh stress debug 1 100 1 1 +stress_debug_1_100_1_2 run_cgroup_test_fj.sh stress debug 1 100 1 2 +stress_debug_1_100_1_3 run_cgroup_test_fj.sh stress debug 1 100 1 3 +stress_debug_1_100_100_1 run_cgroup_test_fj.sh stress debug 1 100 100 1 +stress_debug_1_100_100_2 run_cgroup_test_fj.sh stress debug 1 100 100 2 +stress_cpuset_1_1_1_2 run_cgroup_test_fj.sh stress cpuset 1 1 1 2 +stress_cpuset_1_1_100_1 run_cgroup_test_fj.sh stress cpuset 1 1 100 1 +stress_cpuset_1_1_100_2 run_cgroup_test_fj.sh stress cpuset 1 1 100 2 +stress_cpuset_1_1_100_3 run_cgroup_test_fj.sh stress cpuset 1 1 100 3 +stress_cpuset_1_100_1_1 run_cgroup_test_fj.sh stress cpuset 1 100 1 1 +stress_cpuset_1_100_1_2 run_cgroup_test_fj.sh stress cpuset 1 100 1 2 +stress_cpuset_1_100_1_3 run_cgroup_test_fj.sh stress cpuset 1 100 1 3 +stress_cpuset_1_100_100_1 run_cgroup_test_fj.sh stress cpuset 1 100 100 1 +stress_cpuset_1_100_100_2 run_cgroup_test_fj.sh stress cpuset 1 100 100 2 +stress_cpu_1_1_1_2 run_cgroup_test_fj.sh stress cpu 1 1 1 2 +stress_cpu_1_100_1_1 run_cgroup_test_fj.sh stress cpu 1 100 1 1 +stress_cpu_1_100_1_2 run_cgroup_test_fj.sh stress cpu 1 100 1 2 +stress_cpu_1_100_1_3 run_cgroup_test_fj.sh stress cpu 1 100 1 3 +stress_cpuacct_1_1_1_2 run_cgroup_test_fj.sh stress cpuacct 1 1 1 2 +stress_cpuacct_1_1_100_1 run_cgroup_test_fj.sh stress cpuacct 1 1 100 1 +stress_cpuacct_1_1_100_2 run_cgroup_test_fj.sh stress cpuacct 1 1 100 2 +stress_cpuacct_1_1_100_3 run_cgroup_test_fj.sh stress cpuacct 1 1 100 3 +stress_cpuacct_1_100_1_1 run_cgroup_test_fj.sh stress cpuacct 1 100 1 1 +stress_cpuacct_1_100_1_2 run_cgroup_test_fj.sh stress cpuacct 1 100 1 2 +stress_cpuacct_1_100_1_3 run_cgroup_test_fj.sh stress cpuacct 1 100 1 3 +stress_cpuacct_1_100_100_1 run_cgroup_test_fj.sh stress cpuacct 1 100 100 1 +stress_cpuacct_1_100_100_2 run_cgroup_test_fj.sh stress cpuacct 1 100 100 2 +stress_memory_1_1_1_2 run_cgroup_test_fj.sh stress memory 1 1 1 2 +stress_memory_1_1_100_1 run_cgroup_test_fj.sh stress memory 1 1 100 1 +stress_memory_1_1_100_2 run_cgroup_test_fj.sh stress memory 1 1 100 2 +stress_memory_1_1_100_3 run_cgroup_test_fj.sh stress memory 1 1 100 3 +stress_memory_1_100_1_1 run_cgroup_test_fj.sh stress memory 1 100 1 1 +stress_memory_1_100_1_2 run_cgroup_test_fj.sh stress memory 1 100 1 2 +stress_memory_1_100_1_3 run_cgroup_test_fj.sh stress memory 1 100 1 3 +stress_memory_1_100_100_1 run_cgroup_test_fj.sh stress memory 1 100 100 1 +stress_memory_1_100_100_2 run_cgroup_test_fj.sh stress memory 1 100 100 2 + controllers test_controllers.sh cpuset_base_ops cpuset_base_ops_testset.sh diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh deleted file mode 100644 index a03918a..0000000 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh +++ /dev/null @@ -1,194 +0,0 @@ -function debug yes yes 1 yes 2 3 2 1 -function debug no yes 1 yes 2 3 2 1 -function debug yes yes 2 yes 2 3 2 1 -function debug yes yes 3 yes 2 3 2 1 -function debug yes yes 4 yes 2 3 2 1 -function debug yes yes 5 yes 2 3 2 1 -function debug yes yes 6 yes 2 3 2 1 -function debug yes yes 7 yes 2 3 2 1 -function debug yes yes 8 yes 2 3 2 1 -function cpuset yes yes 1 yes 2 3 2 1 -function cpuset no yes 1 yes 2 3 2 1 -function cpuset yes no 1 yes 2 3 2 1 -function cpuset yes yes 2 yes 2 3 2 1 -function cpuset yes yes 3 yes 2 3 2 1 -function cpuset yes yes 4 yes 2 3 2 1 -function cpuset yes yes 5 yes 2 3 2 1 -function cpuset yes yes 6 yes 2 3 2 1 -function cpuset yes yes 7 yes 2 3 2 1 -function cpuset yes yes 8 yes 2 3 2 1 -function ns yes yes 1 yes 2 3 2 1 -function ns no yes 1 yes 2 3 2 1 -function ns yes yes 2 yes 2 3 2 1 -function ns yes yes 3 yes 2 3 2 1 -function ns yes yes 4 yes 2 3 2 1 -function ns yes yes 5 yes 2 3 2 1 -function ns yes yes 6 yes 2 3 2 1 -function ns yes yes 7 yes 2 3 2 1 -function ns yes yes 8 yes 2 3 2 1 -function cpu yes yes 1 yes 2 3 2 1 -function cpu no yes 1 yes 2 3 2 1 -function cpu yes yes 2 yes 2 3 2 1 -function cpu yes yes 3 yes 2 3 2 1 -function cpu yes yes 4 yes 2 3 2 1 -function cpu yes yes 5 yes 2 3 2 1 -function cpu yes yes 6 yes 2 3 2 1 -function cpu yes yes 7 yes 2 3 2 1 -function cpu yes yes 8 yes 2 3 2 1 -function cpuacct yes yes 1 yes 2 3 2 1 -function cpuacct no yes 1 yes 2 3 2 1 -function cpuacct yes yes 2 yes 2 3 2 1 -function cpuacct yes yes 3 yes 2 3 2 1 -function cpuacct yes yes 4 yes 2 3 2 1 -function cpuacct yes yes 5 yes 2 3 2 1 -function cpuacct yes yes 6 yes 2 3 2 1 -function cpuacct yes yes 7 yes 2 3 2 1 -function cpuacct yes yes 8 yes 2 3 2 1 -function memory yes yes 1 yes 2 3 2 1 -function memory no yes 1 yes 2 3 2 1 -function memory yes yes 2 yes 2 3 2 1 -function memory yes yes 3 yes 2 3 2 1 -function memory yes yes 4 yes 2 3 2 1 -function memory yes yes 5 yes 2 3 2 1 -function memory yes yes 6 yes 2 3 2 1 -function memory yes yes 7 yes 2 3 2 1 -function memory yes yes 8 yes 2 3 2 1 -function all yes yes 1 yes 2 3 2 1 -function all no yes 1 yes 2 3 2 1 -function all yes yes 2 yes 2 3 2 1 -function all yes yes 3 yes 2 3 2 1 -function all yes yes 4 yes 2 3 2 1 -function all yes yes 5 yes 2 3 2 1 -function all yes yes 6 yes 2 3 2 1 -function all yes yes 7 yes 2 3 2 1 -function all yes yes 8 yes 2 3 2 1 -function none yes yes 1 yes 2 3 2 1 -function debug,debug yes yes 1 yes 2 3 2 1 -function debug,debug no yes 1 yes 2 3 2 1 -function debug,debug yes yes 2 yes 2 3 2 1 -function debug,debug yes yes 3 yes 2 3 2 1 -function debug,debug yes yes 4 yes 2 3 2 1 -function debug,debug yes yes 5 yes 2 3 2 1 -function debug,debug yes yes 6 yes 2 3 2 1 -function debug,debug yes yes 7 yes 2 3 2 1 -function debug,debug yes yes 8 yes 2 3 2 1 -function nonexistent yes yes 1 yes 2 3 2 1 -function freezer yes yes 1 yes 2 3 2 1 -function freezer no yes 1 yes 2 3 2 1 -function freezer yes yes 2 yes 2 3 2 1 -function freezer yes yes 3 yes 2 3 2 1 -function freezer yes yes 4 yes 2 3 2 1 -function freezer yes yes 5 yes 2 3 2 1 -function freezer yes yes 6 yes 2 3 2 1 -function freezer yes yes 7 yes 2 3 2 1 -function freezer yes yes 8 yes 2 3 2 1 -function devices yes yes 1 yes 2 3 2 1 -function devices no yes 1 yes 2 3 2 1 -function devices yes yes 2 yes 2 3 2 1 -function devices yes yes 3 yes 2 3 2 1 -function devices yes yes 4 yes 2 3 2 1 -function devices yes yes 5 yes 2 3 2 1 -function devices yes yes 6 yes 2 3 2 1 -function devices yes yes 7 yes 2 3 2 1 -function devices yes yes 8 yes 2 3 2 1 -function debug yes yes 1 yes 1 2 1 1 -function debug yes yes 1 yes 2 2 1 1 -function debug yes yes 1 yes 2 3 1 1 -function debug yes yes 1 yes 2 5 1 1 -function debug yes yes 1 yes 3 1 1 1 -function debug yes yes 1 yes 3 2 1 1 -function debug yes yes 1 yes 3 4 1 1 -function debug yes yes 1 yes 4 3 1 1 -function debug yes yes 1 yes 4 5 1 1 -function debug yes yes 1 no 1 1 1 1 -function debug yes yes 1 yes 1 1 1 1 -function debug yes yes 1 yes 1 3 2 1 -function debug yes yes 1 yes 2 3 2 2 -function debug yes yes 1 yes 2 3 2 3 -function debug yes yes 1 yes 2 3 2 4 -function debug yes yes 1 yes 2 3 2 5 -function debug yes yes 1 yes 2 3 2 6 -function debug yes yes 1 yes 2 3 2 7 -function debug yes yes 1 yes 2 3 3 2 -function debug yes yes 1 yes 2 3 4 2 -function debug yes yes 1 yes 2 3 5 2 -function debug yes yes 1 yes 2 3 6 2 -function debug yes yes 1 yes 2 3 7 2 -function debug yes yes 2 yes 2 3 2 2 -function debug yes yes 3 yes 2 3 1 1 -function debug yes yes 3 yes 2 3 1 2 -function debug yes yes 3 yes 2 3 1 3 -function debug yes yes 3 yes 2 3 2 1 -function debug yes yes 3 yes 2 3 2 2 -function debug yes yes 3 yes 2 3 2 3 -function debug yes yes 3 yes 2 3 2 4 -function debug yes yes 3 yes 2 3 2 5 -function debug yes yes 3 yes 2 3 2 6 -function debug yes yes 3 yes 2 3 2 7 -function debug yes yes 3 yes 2 3 3 1 -function debug yes yes 3 yes 2 3 3 2 -function debug yes yes 3 yes 2 3 3 3 -function debug yes yes 3 yes 2 3 4 2 -function debug yes yes 3 yes 2 3 5 2 -function debug yes yes 3 yes 2 3 6 2 -function debug yes yes 3 yes 2 3 7 2 -function2 1 -function2 2 -function2 3 -function2 4 -function2 5 -function2 6 -function2 7 -function2 8 -function2 9 -function2 10 -function2 11 -function2 12 -function2 13 -stress debug 100 1 1 1 -stress cpuset 100 1 1 1 -stress ns 100 1 1 1 -stress cpu 100 1 1 1 -stress cpuacct 100 1 1 1 -stress memory 100 1 1 1 -stress all 100 1 1 1 -stress debug 1 1 1 2 -stress debug 1 1 100 1 -stress debug 1 1 100 2 -stress debug 1 1 100 3 -stress debug 1 100 1 1 -stress debug 1 100 1 2 -stress debug 1 100 1 3 -stress debug 1 100 100 1 -stress debug 1 100 100 2 -stress cpuset 1 1 1 2 -stress cpuset 1 1 100 1 -stress cpuset 1 1 100 2 -stress cpuset 1 1 100 3 -stress cpuset 1 100 1 1 -stress cpuset 1 100 1 2 -stress cpuset 1 100 1 3 -stress cpuset 1 100 100 1 -stress cpuset 1 100 100 2 -stress cpu 1 1 1 2 -stress cpu 1 100 1 1 -stress cpu 1 100 1 2 -stress cpu 1 100 1 3 -stress cpuacct 1 1 1 2 -stress cpuacct 1 1 100 1 -stress cpuacct 1 1 100 2 -stress cpuacct 1 1 100 3 -stress cpuacct 1 100 1 1 -stress cpuacct 1 100 1 2 -stress cpuacct 1 100 1 3 -stress cpuacct 1 100 100 1 -stress cpuacct 1 100 100 2 -stress memory 1 1 1 2 -stress memory 1 1 100 1 -stress memory 1 1 100 2 -stress memory 1 1 100 3 -stress memory 1 100 1 1 -stress memory 1 100 1 2 -stress memory 1 100 1 3 -stress memory 1 100 100 1 -stress memory 1 100 100 2 \ No newline at end of file diff --git a/testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh b/testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh index f0b43b8..ed21dc0 100755 --- a/testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh +++ b/testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh @@ -23,8 +23,18 @@ ################################################################################ cd $LTPROOT/testcases/bin -export TCID="cgroup_test_fj" -export TST_TOTAL=194 + +cnt=1 +for arg; do + if [ $cnt -gt 1 ]; then + NAME+="_" + NAME+=$arg + fi + cnt=$(( $cnt + 1 )) +done + +export TCID=$1$NAME +export TST_TOTAL=1 export TST_COUNT=1 export TESTROOT=`pwd` @@ -86,47 +96,45 @@ if [ "$SYBSYSCOMPILED" = "" ];then # Warning and exit if all cgroup subsystem ar exit -2; fi -echo "Now, we start the test for cgroup..."; - rm -f $LOGFILE 2>/dev/null echo `date` > $LOGFILE echo `uname -a` >> $LOGFILE echo "" >> $LOGFILE -echo "Now, we start the test for basic function of cgroup..." >> $LOGFILE - -nlines=`cat cgroup_fj_testcases.sh | wc -l` -for i in `seq 1 $nlines` -do - CASETYPE=`sed -n "$i""p" cgroup_fj_testcases.sh | cut -f1` - CASECMD=`sed -n "$i""p" cgroup_fj_testcases.sh | cut -f2` - echo $CASETYPE | grep "#" - if [ $? -ne 0 ]; then - case $CASETYPE in - "function" ) - : $(( CASENO1 += 1 )) - export CASENO1=$CASENO1 - $TESTROOT/cgroup_fj_function.sh $CASECMD - ;; - "function2" ) - : $(( CASENO1 += 1 )) - export CASENO1=$CASENO1 - $TESTROOT/cgroup_fj_function2.sh $CASECMD - ;; - "stress" ) - : $(( CASENO2 += 1 )) - export CASENO2=$CASENO2 - $TESTROOT/cgroup_fj_stress.sh $CASECMD - ;; - esac - ret=$? - if [ $ret -eq 0 ]; then - tst_resm TPASS "case$i(`sed -n "$i""p" cgroup_fj_testcases.sh`) PASS" - elif [ $ret -ne 9 ]; then - tst_resm TFAIL "case$i(`sed -n "$i""p" cgroup_fj_testcases.sh`) FAIL" - fi +CASETYPE=$1 +CASECMD="" +cnt=1 +for arg; do + if [ $cnt -gt 1 ]; then + CASECMD+=" " + CASECMD+=$arg fi + cnt=$(( $cnt + 1 )) done +case $CASETYPE in +"function" ) + : $(( CASENO1 += 1 )) + export CASENO1=$CASENO1 + $TESTROOT/cgroup_fj_function.sh $CASECMD + ;; +"function2" ) + : $(( CASENO1 += 1 )) + export CASENO1=$CASENO1 + $TESTROOT/cgroup_fj_function2.sh $CASECMD + ;; +"stress" ) + : $(( CASENO2 += 1 )) + export CASENO2=$CASENO2 + $TESTROOT/cgroup_fj_stress.sh $CASECMD + ;; +esac + +ret=$? +if [ $ret -eq 0 ]; then + tst_resm TPASS "case$i($CASETYPE$CASECMD) PASS" +elif [ $ret -ne 9 ]; then + tst_resm TFAIL "case$i($CASETYPE$CASECMD) FAIL" +fi exit $ret; -- 2.1.4 |
From: Cyril H. <ch...@su...> - 2015-09-08 09:39:39
|
Hi! > > Delete linux_syscall_numbers.h in LTP otherwise it will not be > > compiled when do 'make': > > make: Nothing to be done for `all'. > > Looks like the reason why the file was added to git in the first place > is that the script is relatively slow (takes seconds on new enough > machine). Does that still concern anybody? And since Jan pushed a patch that speeds up the script that generates the header significantly we can drop it from git now. I've applied this patch and added a .gitignore record for the header as well, thanks. -- Cyril Hrubis ch...@su... |
From: Yuan S. <sun...@hu...> - 2015-09-08 09:34:50
|
Thank you, Jan. On 2015/9/8 15:48, Jan Stancek wrote: > > ----- Original Message ----- >> From: "Yuan Sun" <sun...@hu...> >> To: jst...@re... >> Cc: ltp...@li... >> Sent: Thursday, 20 August, 2015 9:20:53 AM >> Subject: [PATCH] containers: new testcase userns07 >> >> Signed-off-by: Yuan Sun <sun...@hu...> > Hi, > > pushed with couple small changes (see comments below). > > Regards, > Jan > >> --- >> runtest/containers | 1 + >> testcases/kernel/containers/.gitignore | 1 + >> testcases/kernel/containers/userns/userns07.c | 133 >> ++++++++++++++++++++++++++ >> 3 files changed, 135 insertions(+) >> create mode 100644 testcases/kernel/containers/userns/userns07.c >> >> diff --git a/runtest/containers b/runtest/containers >> index ac37ab2..80de20e 100644 >> --- a/runtest/containers >> +++ b/runtest/containers >> @@ -75,3 +75,4 @@ userns03 userns03 >> userns04 userns04 >> userns05 userns05 >> userns06 userns06 >> +userns07 userns07 >> diff --git a/testcases/kernel/containers/.gitignore >> b/testcases/kernel/containers/.gitignore >> index 3f96f42..7dc2608 100644 >> --- a/testcases/kernel/containers/.gitignore >> +++ b/testcases/kernel/containers/.gitignore >> @@ -10,3 +10,4 @@ userns/userns04 >> userns/userns05 >> userns/userns06_capcheck >> userns/userns06 >> +userns/userns07 >> diff --git a/testcases/kernel/containers/userns/userns07.c >> b/testcases/kernel/containers/userns/userns07.c >> new file mode 100644 >> index 0000000..decabc8 >> --- /dev/null >> +++ b/testcases/kernel/containers/userns/userns07.c >> @@ -0,0 +1,133 @@ >> +/* >> + * Copyright (c) Huawei Technologies Co., Ltd., 2015 >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the Free Software Foundation; either version 2 of the License, or >> + * (at your option) any later version. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See >> + * the GNU General Public License for more details. >> + */ >> + >> +/* >> + * Verify that: >> + * The kernel imposes a limit of 32 nested levels of user namespaces. >> + */ > Changed to ".. of at least 32 nested levels ...". > >> + >> +#define _GNU_SOURCE >> +#include <sys/wait.h> >> +#include <assert.h> >> +#include <stdio.h> >> +#include <stdlib.h> >> +#include <unistd.h> >> +#include <string.h> >> +#include <errno.h> >> +#include "test.h" >> +#include "userns_helper.h" >> + >> +#define MAXNEST 32 >> + >> +char *TCID = "userns07"; >> +int TST_TOTAL = 1; >> + >> +static void setup(void) >> +{ >> + check_newuser(); >> + tst_tmpdir(); >> + TST_CHECKPOINT_INIT(NULL); >> +} >> + >> +static void cleanup(void) >> +{ >> + tst_rmdir(); >> +} >> + >> +static int child_fn1(void *arg) >> +{ >> + pid_t cpid1; >> + long level = (long)arg; >> + int status; >> + int parentuid; >> + int parentgid; >> + >> + TST_SAFE_CHECKPOINT_WAIT(NULL, 0); >> + >> + if (level == MAXNEST) >> + return 0; >> + cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, >> + (void *)child_fn1, (void *)(level + 1)); >> + if (cpid1 < 0) { >> + printf("level %ld:unexpected error: (%d) %s\n", >> + level, errno, strerror(errno)); >> + return 1; >> + } >> + >> + parentuid = geteuid(); >> + parentgid = getegid(); >> + >> + updatemap(cpid1, UID_MAP, 0, parentuid, cleanup); >> + updatemap(cpid1, GID_MAP, 0, parentgid, cleanup); > updatemap in child process shouldn't call cleanup. > >> + >> + TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); >> + >> + if (waitpid(cpid1, &status, 0) == -1) >> + return 1; >> + >> + if (WIFEXITED(status) && WEXITSTATUS(status) != 0) { >> + printf("child exited abnormally\n"); >> + return 1; >> + } else if (WIFSIGNALED(status)) { >> + printf("child was killed with signal = %d", WTERMSIG(status)); >> + return 1; >> + } >> + return 0; >> +} >> + >> +static void test_max_nest(void) >> +{ >> + pid_t cpid1; >> + int parentuid; >> + int parentgid; >> + int fd; >> + char path[BUFSIZ]; >> + >> + cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, >> + (void *)child_fn1, (void *)0); >> + if (cpid1 < 0) >> + tst_brkm(TBROK | TERRNO, cleanup, "clone failed"); >> + >> + parentuid = geteuid(); >> + parentgid = getegid(); >> + >> + if (access("/proc/self/setgroups", F_OK) == 0) { >> + sprintf(path, "/proc/%d/setgroups", cpid1); >> + fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); >> + SAFE_WRITE(cleanup, 1, fd, "deny", 4); >> + SAFE_CLOSE(cleanup, fd); >> + } >> + >> + updatemap(cpid1, UID_MAP, 0, parentuid, cleanup); >> + updatemap(cpid1, GID_MAP, 0, parentgid, cleanup); >> + >> + TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); >> + tst_record_childstatus(cleanup, cpid1); >> +} >> + >> +int main(int argc, char *argv[]) >> +{ >> + int lc; >> + >> + setup(); >> + tst_parse_opts(argc, argv, NULL, NULL); >> + >> + for (lc = 0; TEST_LOOPING(lc); lc++) { >> + tst_count = 0; >> + test_max_nest(); >> + } >> + >> + cleanup(); >> + tst_exit(); >> +} >> + >> -- >> 1.9.1 >> >> > . > |
From: Guangwen F. <fen...@cn...> - 2015-09-08 09:34:20
|
In shell, function's return value can not exceed 255, if we run the test on machines which have more than 255 cpus, the result will be incorrect, so fix this. Signed-off-by: Guangwen Feng <fen...@cn...> --- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh | 3 +-- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh | 3 +-- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh | 3 +-- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh | 6 ++---- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh | 3 +-- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh | 3 +-- testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh | 3 +-- testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh | 4 ++-- 8 files changed, 10 insertions(+), 18 deletions(-) diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh index 8ae1379..97d6f0a 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh @@ -111,8 +111,7 @@ LOOP_COUNT=1 tst_check_cmds perl -get_present_cpus_num -if [ $? -lt 2 ]; then +if [ $(get_present_cpus_num) -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh index c42cc1b..792f8cd 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh @@ -54,8 +54,7 @@ done LOOP_COUNT=1 -get_present_cpus_num -if [ $? -lt 2 ]; then +if [ $(get_present_cpus_num) -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh index 3469b10..14ccf85 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh @@ -63,8 +63,7 @@ done LOOP_COUNT=1 -get_present_cpus_num -cpus_num=$? +cpus_num=$(get_present_cpus_num) if [ $cpus_num -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh index 58a822e..fa4e247 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh @@ -48,14 +48,12 @@ done LOOP_COUNT=1 -get_present_cpus_num -cpus_num=$? +cpus_num=$(get_present_cpus_num) if [ $cpus_num -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi -get_hotplug_cpus_num -if [ $? -lt 1 ]; then +if [ $(get_hotplug_cpus_num) -lt 1 ]; then tst_brkm TCONF "system doesn't have at least one hotpluggable CPU" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh index 60382c8..4be2123 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh @@ -55,8 +55,7 @@ LOOP_COUNT=1 tst_check_cmds sar -get_present_cpus_num -if [ $? -lt 2 ]; then +if [ $(get_present_cpus_num) -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh index 6710fad..18a1119 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh @@ -49,8 +49,7 @@ done LOOP_COUNT=1 -get_present_cpus_num -if [ $? -lt 2 ]; then +if [ $(get_present_cpus_num) -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh index 7edb3a9..2783046 100755 --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh @@ -55,8 +55,7 @@ done LOOP_COUNT=1 -get_present_cpus_num -if [ $? -lt 2 ]; then +if [ $(get_present_cpus_num) -lt 2 ]; then tst_brkm TCONF "system doesn't have required CPU hotplug support" fi diff --git a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh index 6920393..48bd814 100644 --- a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh +++ b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh @@ -169,7 +169,7 @@ get_present_cpus() # get_present_cpus_num() { - return $(get_present_cpus | wc -w) + echo $(get_present_cpus | wc -w) } # get_hotplug_cpus() @@ -196,7 +196,7 @@ get_hotplug_cpus() # get_hotplug_cpus_num() { - return $(get_hotplug_cpus | wc -w) + echo $(get_hotplug_cpus | wc -w) } # get_all_cpu_states() -- 1.8.4.2 |
From: Jan S. <jst...@re...> - 2015-09-08 09:05:18
|
----- Original Message ----- > From: "Cyril Hrubis" <ch...@su...> > To: "Jan Stancek" <jst...@re...> > Cc: ltp...@li... > Sent: Tuesday, 8 September, 2015 10:54:18 AM > Subject: Re: [LTP] [PATCH] linux_syscall_numbers: speed up generation > > Hi! > > Replace cat with echo, which should be a builtin function > > for most shells. Avoiding to spawn 'cat' for every syscall > > entry can save time when generating linux_syscall_numbers.h: > > Nice catch, acked. Pushed. Regards, Jan > > -- > Cyril Hrubis > ch...@su... > |
From: Guangwen F. <fen...@cn...> - 2015-09-08 08:56:11
|
Hi! Thanks for your reply! I will rewrite the codes according to your suggestion. On 2015/09/08 01:19, Cyril Hrubis wrote: > Hi! >> diff --git a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh >> index 6920393..be8bce2 100644 >> --- a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh >> +++ b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh >> @@ -165,11 +165,11 @@ get_present_cpus() >> >> # get_present_cpus_num() >> # >> -# Prints the number of present CPUs >> +# Gets the number of present CPUs >> # >> get_present_cpus_num() >> { >> - return $(get_present_cpus | wc -w) >> + PRESENT_CPUS_NUM=`get_present_cpus | wc -w` >> } > > Passing the value by global variable is ugly. Why don't we echo the > value here as: > > echo $(get_present_cpus |wc -w), or even just call 'get_presnt_cpus |wc -w' > > and do: > > if [ $(get_present_cpus_num) -lt 2 ]; then > ... > fi > > in the testcases? > |
From: Cyril H. <ch...@su...> - 2015-09-08 08:55:04
|
Hi! > Replace cat with echo, which should be a builtin function > for most shells. Avoiding to spawn 'cat' for every syscall > entry can save time when generating linux_syscall_numbers.h: Nice catch, acked. -- Cyril Hrubis ch...@su... |
From: Jan S. <jst...@re...> - 2015-09-08 08:02:52
|
Replace cat with echo, which should be a builtin function for most shells. Avoiding to spawn 'cat' for every syscall entry can save time when generating linux_syscall_numbers.h: $ time ./regen.sh Before: real 0m24.642s user 0m1.263s sys 0m7.135s After: real 0m0.130s user 0m0.241s sys 0m0.056s Signed-off-by: Jan Stancek <jst...@re...> --- testcases/kernel/include/regen.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/testcases/kernel/include/regen.sh b/testcases/kernel/include/regen.sh index eebac0f67308..9efc4f17cf88 100755 --- a/testcases/kernel/include/regen.sh +++ b/testcases/kernel/include/regen.sh @@ -71,11 +71,9 @@ for arch in $(cat "${srcdir}/order") ; do if [ $# -eq 0 ] ; then err "invalid line found: $line" fi - cat <<-EOF - # ifndef ${nr} - # define ${nr} $* - # endif - EOF + echo "# ifndef ${nr}" + echo "# define ${nr} $*" + echo "# endif" done < "${srcdir}/${arch}.in" echo "#endif" echo @@ -97,11 +95,9 @@ echo "/* Common stubs */" echo "#define __LTP__NR_INVALID_SYSCALL -1" >> "${output_pid}" for nr in $(awk '{print $1}' "${srcdir}/"*.in | sort -u) ; do nr="__NR_${nr}" - cat <<-EOF - # ifndef ${nr} - # define ${nr} __LTP__NR_INVALID_SYSCALL - # endif - EOF + echo "# ifndef ${nr}" + echo "# define ${nr} __LTP__NR_INVALID_SYSCALL" + echo "# endif" done echo "#endif" ) >> "${output_pid}._footer" -- 1.8.3.1 |
From: Jan S. <jst...@re...> - 2015-09-08 07:48:19
|
----- Original Message ----- > From: "Yuan Sun" <sun...@hu...> > To: jst...@re... > Cc: ltp...@li... > Sent: Thursday, 20 August, 2015 9:20:53 AM > Subject: [PATCH] containers: new testcase userns07 > > Signed-off-by: Yuan Sun <sun...@hu...> Hi, pushed with couple small changes (see comments below). Regards, Jan > --- > runtest/containers | 1 + > testcases/kernel/containers/.gitignore | 1 + > testcases/kernel/containers/userns/userns07.c | 133 > ++++++++++++++++++++++++++ > 3 files changed, 135 insertions(+) > create mode 100644 testcases/kernel/containers/userns/userns07.c > > diff --git a/runtest/containers b/runtest/containers > index ac37ab2..80de20e 100644 > --- a/runtest/containers > +++ b/runtest/containers > @@ -75,3 +75,4 @@ userns03 userns03 > userns04 userns04 > userns05 userns05 > userns06 userns06 > +userns07 userns07 > diff --git a/testcases/kernel/containers/.gitignore > b/testcases/kernel/containers/.gitignore > index 3f96f42..7dc2608 100644 > --- a/testcases/kernel/containers/.gitignore > +++ b/testcases/kernel/containers/.gitignore > @@ -10,3 +10,4 @@ userns/userns04 > userns/userns05 > userns/userns06_capcheck > userns/userns06 > +userns/userns07 > diff --git a/testcases/kernel/containers/userns/userns07.c > b/testcases/kernel/containers/userns/userns07.c > new file mode 100644 > index 0000000..decabc8 > --- /dev/null > +++ b/testcases/kernel/containers/userns/userns07.c > @@ -0,0 +1,133 @@ > +/* > + * Copyright (c) Huawei Technologies Co., Ltd., 2015 > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See > + * the GNU General Public License for more details. > + */ > + > +/* > + * Verify that: > + * The kernel imposes a limit of 32 nested levels of user namespaces. > + */ Changed to ".. of at least 32 nested levels ...". > + > +#define _GNU_SOURCE > +#include <sys/wait.h> > +#include <assert.h> > +#include <stdio.h> > +#include <stdlib.h> > +#include <unistd.h> > +#include <string.h> > +#include <errno.h> > +#include "test.h" > +#include "userns_helper.h" > + > +#define MAXNEST 32 > + > +char *TCID = "userns07"; > +int TST_TOTAL = 1; > + > +static void setup(void) > +{ > + check_newuser(); > + tst_tmpdir(); > + TST_CHECKPOINT_INIT(NULL); > +} > + > +static void cleanup(void) > +{ > + tst_rmdir(); > +} > + > +static int child_fn1(void *arg) > +{ > + pid_t cpid1; > + long level = (long)arg; > + int status; > + int parentuid; > + int parentgid; > + > + TST_SAFE_CHECKPOINT_WAIT(NULL, 0); > + > + if (level == MAXNEST) > + return 0; > + cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, > + (void *)child_fn1, (void *)(level + 1)); > + if (cpid1 < 0) { > + printf("level %ld:unexpected error: (%d) %s\n", > + level, errno, strerror(errno)); > + return 1; > + } > + > + parentuid = geteuid(); > + parentgid = getegid(); > + > + updatemap(cpid1, UID_MAP, 0, parentuid, cleanup); > + updatemap(cpid1, GID_MAP, 0, parentgid, cleanup); updatemap in child process shouldn't call cleanup. > + > + TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); > + > + if (waitpid(cpid1, &status, 0) == -1) > + return 1; > + > + if (WIFEXITED(status) && WEXITSTATUS(status) != 0) { > + printf("child exited abnormally\n"); > + return 1; > + } else if (WIFSIGNALED(status)) { > + printf("child was killed with signal = %d", WTERMSIG(status)); > + return 1; > + } > + return 0; > +} > + > +static void test_max_nest(void) > +{ > + pid_t cpid1; > + int parentuid; > + int parentgid; > + int fd; > + char path[BUFSIZ]; > + > + cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, > + (void *)child_fn1, (void *)0); > + if (cpid1 < 0) > + tst_brkm(TBROK | TERRNO, cleanup, "clone failed"); > + > + parentuid = geteuid(); > + parentgid = getegid(); > + > + if (access("/proc/self/setgroups", F_OK) == 0) { > + sprintf(path, "/proc/%d/setgroups", cpid1); > + fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); > + SAFE_WRITE(cleanup, 1, fd, "deny", 4); > + SAFE_CLOSE(cleanup, fd); > + } > + > + updatemap(cpid1, UID_MAP, 0, parentuid, cleanup); > + updatemap(cpid1, GID_MAP, 0, parentgid, cleanup); > + > + TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); > + tst_record_childstatus(cleanup, cpid1); > +} > + > +int main(int argc, char *argv[]) > +{ > + int lc; > + > + setup(); > + tst_parse_opts(argc, argv, NULL, NULL); > + > + for (lc = 0; TEST_LOOPING(lc); lc++) { > + tst_count = 0; > + test_max_nest(); > + } > + > + cleanup(); > + tst_exit(); > +} > + > -- > 1.9.1 > > |
From: Cyril H. <ch...@su...> - 2015-09-07 17:59:39
|
Hi! > Delete linux_syscall_numbers.h in LTP otherwise it will not be > compiled when do 'make': > make: Nothing to be done for `all'. Looks like the reason why the file was added to git in the first place is that the script is relatively slow (takes seconds on new enough machine). Does that still concern anybody? I guess that what you are trying to solve is that the file is not up to date and it's not updated automatically because the timestamp for the *.in files is the same as the linux_syscall_numbers.h since the files were created at the same time when the git was checked up. -- Cyril Hrubis ch...@su... |
From: Cyril H. <ch...@su...> - 2015-09-07 17:19:48
|
Hi! > diff --git a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh > index 6920393..be8bce2 100644 > --- a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh > @@ -165,11 +165,11 @@ get_present_cpus() > > # get_present_cpus_num() > # > -# Prints the number of present CPUs > +# Gets the number of present CPUs > # > get_present_cpus_num() > { > - return $(get_present_cpus | wc -w) > + PRESENT_CPUS_NUM=`get_present_cpus | wc -w` > } Passing the value by global variable is ugly. Why don't we echo the value here as: echo $(get_present_cpus |wc -w), or even just call 'get_presnt_cpus |wc -w' and do: if [ $(get_present_cpus_num) -lt 2 ]; then ... fi in the testcases? -- Cyril Hrubis ch...@su... |
From: Yuriy K. <Yur...@sy...> - 2015-09-07 16:03:30
|
Hi Cyril! I try to build LTP with POSIX testsuite and run "make clean". As a result "testcases/open_posix_testsuite" is no cleaned properly. It happens because that directory is filtered by "make" here: https://github.com/linux-test-project/ltp/blob/master/testcases/Makefile#L33 And it's filtered because WITH_OPEN_POSIX_TESTSUITE symbol is not defined when you run "make clean". And it's not defined because "config.mk" and "features.mk" are not included for "clean" target: https://github.com/linux-test-project/ltp/blob/master/include/mk/env_pre.mk#L98 So I've decided to include these configuration files for "clean" target too. I've supposed that "clean" target may be invoked even if those files don't exist so I've used error suppression mechanism. Regards, Yuriy Kolerov -----Original Message----- From: Cyril Hrubis [mailto:ch...@su...] Sent: Monday, September 07, 2015 6:30 PM To: Yuriy Kolerov Cc: ltp...@li...; Ant...@sy...; Fra...@sy... Subject: Re: [LTP] [PATCH] Enable including config.mk and features.mk for *clean targets Hi! > It's necessary for correct cleaning. E.g. open_posix_testsuite is not > cleaned without including these .mk files. However it's not an error > if these files does not exist while cleaning. What problem are you trying to fix? I cannot image how we can get into state where the mk files generated by configure does not exist but the tree is not clean. Unless one deletes them manually of course. -- Cyril Hrubis ch...@su... |
From: Cyril H. <ch...@su...> - 2015-09-07 15:30:17
|
Hi! > It's necessary for correct cleaning. E.g. open_posix_testsuite > is not cleaned without including these .mk files. However it's > not an error if these files does not exist while cleaning. What problem are you trying to fix? I cannot image how we can get into state where the mk files generated by configure does not exist but the tree is not clean. Unless one deletes them manually of course. -- Cyril Hrubis ch...@su... |
From: Cyril H. <ch...@su...> - 2015-09-07 14:35:12
|
Hi! > case $mount_times in > -"1" ) > +"1"|"100") > mount_times=1 > ;; > -"2" ) > - mount_times=100 > - ;; > * ) Hmm, after the change the mount_times is always set to 1 (forget to remove mount_times=1?). Also we may only want to check that the parameter is a numeric so that we can tune the test parameters later (and for other parameters that can be tuned such as number of subgroup as well). The portable way to do that seems to be case statement: case $mount_times in ''|*[!0-9]*) usage;; *) ;; esac Otherwise the patch looks good. -- Cyril Hrubis ch...@su... |
From: Cedric H. <ch...@su...> - 2015-09-07 10:19:14
|
Signed-off-by: Cedric Hnyda <ch...@su...> --- .../controllers/cgroup_fj/cgroup_fj_function.sh | 45 ++- .../controllers/cgroup_fj/cgroup_fj_stress.sh | 58 ++-- .../controllers/cgroup_fj/cgroup_fj_testcases.sh | 362 ++++++++++----------- .../controllers/cgroup_fj/cgroup_fj_utility.sh | 58 ++-- 4 files changed, 249 insertions(+), 274 deletions(-) diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh index 9bfaeb7..673a942 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh @@ -32,7 +32,6 @@ remove_operation=$7 notify_on_release=$8 release_agent_echo=$9 -subsystem_str=""; remount_use_str=""; noprefix_use_str=""; release_agent_para_str=""; @@ -55,24 +54,24 @@ usage() echo " -subgroup_exist -attach_operation -remove_operation" echo " -notify_on_release -release_agent_echo" echo " subsystem's usable number" - echo " 1: debug" - echo " 2: cpuset" - echo " 3: ns" - echo " 4: cpu" - echo " 5: cpuacct" - echo " 6: memory" - echo " 7: all" - echo " 8: (none)" - echo " 9: debug,debug" - echo " 10: (nonexistent subsystem), e.g. abc" - echo " 11: freezer" - echo " 12: devices" + echo " debug" + echo " cpuset" + echo " ns" + echo " cpu" + echo " cpuacct" + echo " memory" + echo " all" + echo " none: (none)" + echo " debug,debug: debug,debug" + echo " nonexistent: (nonexistent subsystem), e.g. abc" + echo " freezer: freezer" + echo " devices: devices" echo " remount_use's usable number" - echo " 1: do not use remount in "-o"'s parameter" - echo " 2: use it" + echo " yes: do not use remount in "-o"'s parameter" + echo " no: use it" echo " noprefix_use's usable number" - echo " 1: do not use noprefix in "-o"'s parameter" - echo " 2: use it. only cpuset available" + echo " yes: do not use noprefix in "-o"'s parameter" + echo " no: use it. only cpuset available" echo " release_agent_para's usable number" echo " 1: don't use release_agent_para= in "-o"'s parameter" echo " 2: empty after "="" @@ -83,8 +82,8 @@ usage() echo " 7: nonexistent command" echo " 8: no-permission command" echo " subgroup_exist's usable number" - echo " 1: subgroup will been created" - echo " 2: subgroup will not been created" + echo " yes: subgroup will been created" + echo " no: subgroup will not been created" echo " attach_operation's usable number" echo " 1: attach nothing" echo " 2: attach one process by echo" @@ -114,7 +113,7 @@ usage() echo " 5: command in other directory" echo " 6: nonexistent command" echo " 7: no-permission command" - echo "example: ./cgroup_fj_function.sh 1 1 1 1 1 1 1 1 1" + echo "example: ./cgroup_fj_function.sh debug yes yes 1 yes 1 1 1 1" echo " will use "debug" to test, will not use option "remount","noprefix","release_agent"" echo " in in "-o"'s parameter, will create some subgroup, will not attach/remove any process" echo " will echo 0 to notify_on_release and will not echo anything to release_agent" @@ -157,10 +156,10 @@ mkdir_subgroup; # cpuset.cpus and cpuset.mems should be specified with suitable value # before attaching operation if subsystem is cpuset -if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] || [ $subsystem -eq 8 ] ; then +if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] || [ $subsystem == "none" ] ; then exist=`grep -w cpuset /proc/cgroups | cut -f1`; if [ "$exist" != "" ]; then - if [ $noprefix_use -eq 2 ]; then + if [ "$noprefix_use" == "no" ]; then do_echo 1 1 `cat /dev/cgroup/cpus` /dev/cgroup/subgroup_1/cpus; do_echo 1 1 `cat /dev/cgroup/mems` /dev/cgroup/subgroup_1/mems; else @@ -234,7 +233,7 @@ sleep 1 # pid could not be echoed from subgroup if subsystem is ( or include ) ns, # so we kill them here -if [ $subsystem -eq 3 ] || [ $subsystem -eq 7 ] || [ $subsystem -eq 8 ] ; then +if [ "$subsystem" == "ns" ] || [ "$subsystem" == "all" ] || [ $subsystem == "none" ] ; then do_kill 1 1 9 $pid do_kill 1 1 9 $pid2 # removing operation diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh index fcca228..f932b73 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh @@ -46,29 +46,29 @@ usage() echo "usage of cgroup_fj_stress.sh: " echo " ./cgroup_fj_stress.sh -subsystem -mount_times -subgroup_num -subgroup_hiers -attach_operation" echo " subsystem's usable number" - echo " 1: debug" - echo " 2: cpuset" - echo " 3: ns" - echo " 4: cpu" - echo " 5: cpuacct" - echo " 6: memory" - echo " 7: all" + echo " debug" + echo " cpuset" + echo " ns" + echo " cpu" + echo " cpuacct" + echo " memory" + echo " all" echo " mount_times's usable number" echo " 1: execute once" - echo " 2: execute 100 times" + echo " 100: execute 100 times" echo " subgroup_num's usable number" echo " (subgroup number in the same hierarchy)" - echo " 1: 1" - echo " 2: 100" + echo " 1" + echo " 100" echo " subgroup_hiers's usable number" echo " (number of subgroup's hierarchy)" - echo " 1: 1" - echo " 2: 100" + echo " 1" + echo " 100" echo " attach_operation's usable number" echo " 1: attach one process to every subcgroup" echo " 2: attach all processes in root group to one subcgroup" echo " 3: attach all processes in root group to every subcgroup" - echo "example: ./cgroup_fj_stress.sh 1 1 1 1 1" + echo "example: ./cgroup_fj_stress.sh debug 1 1 1 1" echo " will use "debug" to test, will mount once, will create one subgroup in same hierarchy," echo " will create one hierarchy, will attach one process to every subcgroup" } @@ -91,8 +91,7 @@ export TMPFILE=$TESTROOT/tmp_tasks pid=0; release_agent_para=1; release_agent_echo=1; -subsystem_str="debug"; -get_subsystem; +subsystem_str=$subsystem; if [ "$?" -ne "0" ] || [ "$#" -ne "5" ]; then usage; exit_parameter; @@ -130,12 +129,9 @@ get_subgroup_path2() } case $mount_times in -"1" ) +"1"|"100") mount_times=1 ;; -"2" ) - mount_times=100 - ;; * ) usage; exit_parameter; @@ -143,11 +139,7 @@ case $mount_times in esac case $subgroup_num in -"1" ) - subgroup_num=1 - ;; -"2" ) - subgroup_num=100 +"1"|"100" ) ;; * ) usage; @@ -156,11 +148,7 @@ case $subgroup_num in esac case $subgroup_hiers in -"1" ) - subgroup_hiers=1 - ;; -"2" ) - subgroup_hiers=100 +"1"|"100" ) ;; * ) usage; @@ -186,7 +174,7 @@ cpus=0 mems=0 exist_cpuset=0 exist_cpuset=`grep -w cpuset /proc/cgroups | cut -f1`; -if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then +if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then cpus=`cat /dev/cgroup/cpuset.cpus` mems=`cat /dev/cgroup/cpuset.mems` @@ -197,7 +185,7 @@ mkdir_subgroup; # cpuset.cpus and cpuset.mems should be specified with suitable value # before attachint operation if subsystem is cpuset -if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then +if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" /dev/cgroup/subgroup_1/cpuset.cpus; do_echo 1 1 "$mems" /dev/cgroup/subgroup_1/cpuset.mems; @@ -209,7 +197,7 @@ if [ $mount_times -ne 1 ]; then for i in `seq 1 $mount_times` do do_echo 1 1 $pid /dev/cgroup/subgroup_1/tasks - if [ $subsystem -eq 3 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "ns" ] || [ "$subsystem" == "all" ] ; then do_kill 1 1 9 $pid $TESTROOT/cgroup_fj_proc & pid=$! @@ -221,7 +209,7 @@ if [ $mount_times -ne 1 ]; then pid=$! mount_cgroup; mkdir_subgroup; - if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" /dev/cgroup/subgroup_1/cpuset.cpus; do_echo 1 1 "$mems" /dev/cgroup/subgroup_1/cpuset.mems; @@ -239,7 +227,7 @@ else do get_subgroup_path1 $i do_mkdir 1 1 $cur_subgroup_path1 - if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" "$cur_subgroup_path1""cpuset.cpus"; do_echo 1 1 "$mems" "$cur_subgroup_path1""cpuset.mems"; @@ -251,7 +239,7 @@ else do get_subgroup_path2 $j do_mkdir 1 1 "$cur_subgroup_path1""$cur_subgroup_path2" 1 - if [ $subsystem -eq 2 ] || [ $subsystem -eq 7 ] ; then + if [ "$subsystem" == "cpuset" ] || [ "$subsystem" == "all" ] ; then if [ "$exist_cpuset" != "" ]; then do_echo 1 1 "$cpus" "$cur_subgroup_path1""$cur_subgroup_path2""cpuset.cpus"; do_echo 1 1 "$mems" "$cur_subgroup_path1""$cur_subgroup_path2""cpuset.mems"; diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh index d9af22a..a03918a 100644 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases.sh @@ -1,137 +1,137 @@ -function 1 1 1 1 1 2 3 2 1 -function 1 2 1 1 1 2 3 2 1 -function 1 1 1 2 1 2 3 2 1 -function 1 1 1 3 1 2 3 2 1 -function 1 1 1 4 1 2 3 2 1 -function 1 1 1 5 1 2 3 2 1 -function 1 1 1 6 1 2 3 2 1 -function 1 1 1 7 1 2 3 2 1 -function 1 1 1 8 1 2 3 2 1 -function 2 1 1 1 1 2 3 2 1 -function 2 2 1 1 1 2 3 2 1 -function 2 1 2 1 1 2 3 2 1 -function 2 1 1 2 1 2 3 2 1 -function 2 1 1 3 1 2 3 2 1 -function 2 1 1 4 1 2 3 2 1 -function 2 1 1 5 1 2 3 2 1 -function 2 1 1 6 1 2 3 2 1 -function 2 1 1 7 1 2 3 2 1 -function 2 1 1 8 1 2 3 2 1 -function 3 1 1 1 1 2 3 2 1 -function 3 2 1 1 1 2 3 2 1 -function 3 1 1 2 1 2 3 2 1 -function 3 1 1 3 1 2 3 2 1 -function 3 1 1 4 1 2 3 2 1 -function 3 1 1 5 1 2 3 2 1 -function 3 1 1 6 1 2 3 2 1 -function 3 1 1 7 1 2 3 2 1 -function 3 1 1 8 1 2 3 2 1 -function 4 1 1 1 1 2 3 2 1 -function 4 2 1 1 1 2 3 2 1 -function 4 1 1 2 1 2 3 2 1 -function 4 1 1 3 1 2 3 2 1 -function 4 1 1 4 1 2 3 2 1 -function 4 1 1 5 1 2 3 2 1 -function 4 1 1 6 1 2 3 2 1 -function 4 1 1 7 1 2 3 2 1 -function 4 1 1 8 1 2 3 2 1 -function 5 1 1 1 1 2 3 2 1 -function 5 2 1 1 1 2 3 2 1 -function 5 1 1 2 1 2 3 2 1 -function 5 1 1 3 1 2 3 2 1 -function 5 1 1 4 1 2 3 2 1 -function 5 1 1 5 1 2 3 2 1 -function 5 1 1 6 1 2 3 2 1 -function 5 1 1 7 1 2 3 2 1 -function 5 1 1 8 1 2 3 2 1 -function 6 1 1 1 1 2 3 2 1 -function 6 2 1 1 1 2 3 2 1 -function 6 1 1 2 1 2 3 2 1 -function 6 1 1 3 1 2 3 2 1 -function 6 1 1 4 1 2 3 2 1 -function 6 1 1 5 1 2 3 2 1 -function 6 1 1 6 1 2 3 2 1 -function 6 1 1 7 1 2 3 2 1 -function 6 1 1 8 1 2 3 2 1 -function 7 1 1 1 1 2 3 2 1 -function 7 2 1 1 1 2 3 2 1 -function 7 1 1 2 1 2 3 2 1 -function 7 1 1 3 1 2 3 2 1 -function 7 1 1 4 1 2 3 2 1 -function 7 1 1 5 1 2 3 2 1 -function 7 1 1 6 1 2 3 2 1 -function 7 1 1 7 1 2 3 2 1 -function 7 1 1 8 1 2 3 2 1 -function 8 1 1 1 1 2 3 2 1 -function 9 1 1 1 1 2 3 2 1 -function 9 2 1 1 1 2 3 2 1 -function 9 1 1 2 1 2 3 2 1 -function 9 1 1 3 1 2 3 2 1 -function 9 1 1 4 1 2 3 2 1 -function 9 1 1 5 1 2 3 2 1 -function 9 1 1 6 1 2 3 2 1 -function 9 1 1 7 1 2 3 2 1 -function 9 1 1 8 1 2 3 2 1 -function 10 1 1 1 1 2 3 2 1 -function 11 1 1 1 1 2 3 2 1 -function 11 2 1 1 1 2 3 2 1 -function 11 1 1 2 1 2 3 2 1 -function 11 1 1 3 1 2 3 2 1 -function 11 1 1 4 1 2 3 2 1 -function 11 1 1 5 1 2 3 2 1 -function 11 1 1 6 1 2 3 2 1 -function 11 1 1 7 1 2 3 2 1 -function 11 1 1 8 1 2 3 2 1 -function 12 1 1 1 1 2 3 2 1 -function 12 2 1 1 1 2 3 2 1 -function 12 1 1 2 1 2 3 2 1 -function 12 1 1 3 1 2 3 2 1 -function 12 1 1 4 1 2 3 2 1 -function 12 1 1 5 1 2 3 2 1 -function 12 1 1 6 1 2 3 2 1 -function 12 1 1 7 1 2 3 2 1 -function 12 1 1 8 1 2 3 2 1 -function 1 1 1 1 1 1 2 1 1 -function 1 1 1 1 1 2 2 1 1 -function 1 1 1 1 1 2 3 1 1 -function 1 1 1 1 1 2 5 1 1 -function 1 1 1 1 1 3 1 1 1 -function 1 1 1 1 1 3 2 1 1 -function 1 1 1 1 1 3 4 1 1 -function 1 1 1 1 1 4 3 1 1 -function 1 1 1 1 1 4 5 1 1 -function 1 1 1 1 2 1 1 1 1 -function 1 1 1 1 1 1 1 1 1 -function 1 1 1 1 1 1 3 2 1 -function 1 1 1 1 1 2 3 2 2 -function 1 1 1 1 1 2 3 2 3 -function 1 1 1 1 1 2 3 2 4 -function 1 1 1 1 1 2 3 2 5 -function 1 1 1 1 1 2 3 2 6 -function 1 1 1 1 1 2 3 2 7 -function 1 1 1 1 1 2 3 3 2 -function 1 1 1 1 1 2 3 4 2 -function 1 1 1 1 1 2 3 5 2 -function 1 1 1 1 1 2 3 6 2 -function 1 1 1 1 1 2 3 7 2 -function 1 1 1 2 1 2 3 2 2 -function 1 1 1 3 1 2 3 1 1 -function 1 1 1 3 1 2 3 1 2 -function 1 1 1 3 1 2 3 1 3 -function 1 1 1 3 1 2 3 2 1 -function 1 1 1 3 1 2 3 2 2 -function 1 1 1 3 1 2 3 2 3 -function 1 1 1 3 1 2 3 2 4 -function 1 1 1 3 1 2 3 2 5 -function 1 1 1 3 1 2 3 2 6 -function 1 1 1 3 1 2 3 2 7 -function 1 1 1 3 1 2 3 3 1 -function 1 1 1 3 1 2 3 3 2 -function 1 1 1 3 1 2 3 3 3 -function 1 1 1 3 1 2 3 4 2 -function 1 1 1 3 1 2 3 5 2 -function 1 1 1 3 1 2 3 6 2 -function 1 1 1 3 1 2 3 7 2 +function debug yes yes 1 yes 2 3 2 1 +function debug no yes 1 yes 2 3 2 1 +function debug yes yes 2 yes 2 3 2 1 +function debug yes yes 3 yes 2 3 2 1 +function debug yes yes 4 yes 2 3 2 1 +function debug yes yes 5 yes 2 3 2 1 +function debug yes yes 6 yes 2 3 2 1 +function debug yes yes 7 yes 2 3 2 1 +function debug yes yes 8 yes 2 3 2 1 +function cpuset yes yes 1 yes 2 3 2 1 +function cpuset no yes 1 yes 2 3 2 1 +function cpuset yes no 1 yes 2 3 2 1 +function cpuset yes yes 2 yes 2 3 2 1 +function cpuset yes yes 3 yes 2 3 2 1 +function cpuset yes yes 4 yes 2 3 2 1 +function cpuset yes yes 5 yes 2 3 2 1 +function cpuset yes yes 6 yes 2 3 2 1 +function cpuset yes yes 7 yes 2 3 2 1 +function cpuset yes yes 8 yes 2 3 2 1 +function ns yes yes 1 yes 2 3 2 1 +function ns no yes 1 yes 2 3 2 1 +function ns yes yes 2 yes 2 3 2 1 +function ns yes yes 3 yes 2 3 2 1 +function ns yes yes 4 yes 2 3 2 1 +function ns yes yes 5 yes 2 3 2 1 +function ns yes yes 6 yes 2 3 2 1 +function ns yes yes 7 yes 2 3 2 1 +function ns yes yes 8 yes 2 3 2 1 +function cpu yes yes 1 yes 2 3 2 1 +function cpu no yes 1 yes 2 3 2 1 +function cpu yes yes 2 yes 2 3 2 1 +function cpu yes yes 3 yes 2 3 2 1 +function cpu yes yes 4 yes 2 3 2 1 +function cpu yes yes 5 yes 2 3 2 1 +function cpu yes yes 6 yes 2 3 2 1 +function cpu yes yes 7 yes 2 3 2 1 +function cpu yes yes 8 yes 2 3 2 1 +function cpuacct yes yes 1 yes 2 3 2 1 +function cpuacct no yes 1 yes 2 3 2 1 +function cpuacct yes yes 2 yes 2 3 2 1 +function cpuacct yes yes 3 yes 2 3 2 1 +function cpuacct yes yes 4 yes 2 3 2 1 +function cpuacct yes yes 5 yes 2 3 2 1 +function cpuacct yes yes 6 yes 2 3 2 1 +function cpuacct yes yes 7 yes 2 3 2 1 +function cpuacct yes yes 8 yes 2 3 2 1 +function memory yes yes 1 yes 2 3 2 1 +function memory no yes 1 yes 2 3 2 1 +function memory yes yes 2 yes 2 3 2 1 +function memory yes yes 3 yes 2 3 2 1 +function memory yes yes 4 yes 2 3 2 1 +function memory yes yes 5 yes 2 3 2 1 +function memory yes yes 6 yes 2 3 2 1 +function memory yes yes 7 yes 2 3 2 1 +function memory yes yes 8 yes 2 3 2 1 +function all yes yes 1 yes 2 3 2 1 +function all no yes 1 yes 2 3 2 1 +function all yes yes 2 yes 2 3 2 1 +function all yes yes 3 yes 2 3 2 1 +function all yes yes 4 yes 2 3 2 1 +function all yes yes 5 yes 2 3 2 1 +function all yes yes 6 yes 2 3 2 1 +function all yes yes 7 yes 2 3 2 1 +function all yes yes 8 yes 2 3 2 1 +function none yes yes 1 yes 2 3 2 1 +function debug,debug yes yes 1 yes 2 3 2 1 +function debug,debug no yes 1 yes 2 3 2 1 +function debug,debug yes yes 2 yes 2 3 2 1 +function debug,debug yes yes 3 yes 2 3 2 1 +function debug,debug yes yes 4 yes 2 3 2 1 +function debug,debug yes yes 5 yes 2 3 2 1 +function debug,debug yes yes 6 yes 2 3 2 1 +function debug,debug yes yes 7 yes 2 3 2 1 +function debug,debug yes yes 8 yes 2 3 2 1 +function nonexistent yes yes 1 yes 2 3 2 1 +function freezer yes yes 1 yes 2 3 2 1 +function freezer no yes 1 yes 2 3 2 1 +function freezer yes yes 2 yes 2 3 2 1 +function freezer yes yes 3 yes 2 3 2 1 +function freezer yes yes 4 yes 2 3 2 1 +function freezer yes yes 5 yes 2 3 2 1 +function freezer yes yes 6 yes 2 3 2 1 +function freezer yes yes 7 yes 2 3 2 1 +function freezer yes yes 8 yes 2 3 2 1 +function devices yes yes 1 yes 2 3 2 1 +function devices no yes 1 yes 2 3 2 1 +function devices yes yes 2 yes 2 3 2 1 +function devices yes yes 3 yes 2 3 2 1 +function devices yes yes 4 yes 2 3 2 1 +function devices yes yes 5 yes 2 3 2 1 +function devices yes yes 6 yes 2 3 2 1 +function devices yes yes 7 yes 2 3 2 1 +function devices yes yes 8 yes 2 3 2 1 +function debug yes yes 1 yes 1 2 1 1 +function debug yes yes 1 yes 2 2 1 1 +function debug yes yes 1 yes 2 3 1 1 +function debug yes yes 1 yes 2 5 1 1 +function debug yes yes 1 yes 3 1 1 1 +function debug yes yes 1 yes 3 2 1 1 +function debug yes yes 1 yes 3 4 1 1 +function debug yes yes 1 yes 4 3 1 1 +function debug yes yes 1 yes 4 5 1 1 +function debug yes yes 1 no 1 1 1 1 +function debug yes yes 1 yes 1 1 1 1 +function debug yes yes 1 yes 1 3 2 1 +function debug yes yes 1 yes 2 3 2 2 +function debug yes yes 1 yes 2 3 2 3 +function debug yes yes 1 yes 2 3 2 4 +function debug yes yes 1 yes 2 3 2 5 +function debug yes yes 1 yes 2 3 2 6 +function debug yes yes 1 yes 2 3 2 7 +function debug yes yes 1 yes 2 3 3 2 +function debug yes yes 1 yes 2 3 4 2 +function debug yes yes 1 yes 2 3 5 2 +function debug yes yes 1 yes 2 3 6 2 +function debug yes yes 1 yes 2 3 7 2 +function debug yes yes 2 yes 2 3 2 2 +function debug yes yes 3 yes 2 3 1 1 +function debug yes yes 3 yes 2 3 1 2 +function debug yes yes 3 yes 2 3 1 3 +function debug yes yes 3 yes 2 3 2 1 +function debug yes yes 3 yes 2 3 2 2 +function debug yes yes 3 yes 2 3 2 3 +function debug yes yes 3 yes 2 3 2 4 +function debug yes yes 3 yes 2 3 2 5 +function debug yes yes 3 yes 2 3 2 6 +function debug yes yes 3 yes 2 3 2 7 +function debug yes yes 3 yes 2 3 3 1 +function debug yes yes 3 yes 2 3 3 2 +function debug yes yes 3 yes 2 3 3 3 +function debug yes yes 3 yes 2 3 4 2 +function debug yes yes 3 yes 2 3 5 2 +function debug yes yes 3 yes 2 3 6 2 +function debug yes yes 3 yes 2 3 7 2 function2 1 function2 2 function2 3 @@ -145,50 +145,50 @@ function2 10 function2 11 function2 12 function2 13 -stress 1 2 1 1 1 -stress 2 2 1 1 1 -stress 3 2 1 1 1 -stress 4 2 1 1 1 -stress 5 2 1 1 1 -stress 6 2 1 1 1 -stress 7 2 1 1 1 -stress 1 1 1 1 2 -stress 1 1 1 2 1 -stress 1 1 1 2 2 -stress 1 1 1 2 3 -stress 1 1 2 1 1 -stress 1 1 2 1 2 -stress 1 1 2 1 3 -stress 1 1 2 2 1 -stress 1 1 2 2 2 -stress 2 1 1 1 2 -stress 2 1 1 2 1 -stress 2 1 1 2 2 -stress 2 1 1 2 3 -stress 2 1 2 1 1 -stress 2 1 2 1 2 -stress 2 1 2 1 3 -stress 2 1 2 2 1 -stress 2 1 2 2 2 -stress 4 1 1 1 2 -stress 4 1 2 1 1 -stress 4 1 2 1 2 -stress 4 1 2 1 3 -stress 5 1 1 1 2 -stress 5 1 1 2 1 -stress 5 1 1 2 2 -stress 5 1 1 2 3 -stress 5 1 2 1 1 -stress 5 1 2 1 2 -stress 5 1 2 1 3 -stress 5 1 2 2 1 -stress 5 1 2 2 2 -stress 6 1 1 1 2 -stress 6 1 1 2 1 -stress 6 1 1 2 2 -stress 6 1 1 2 3 -stress 6 1 2 1 1 -stress 6 1 2 1 2 -stress 6 1 2 1 3 -stress 6 1 2 2 1 -stress 6 1 2 2 2 +stress debug 100 1 1 1 +stress cpuset 100 1 1 1 +stress ns 100 1 1 1 +stress cpu 100 1 1 1 +stress cpuacct 100 1 1 1 +stress memory 100 1 1 1 +stress all 100 1 1 1 +stress debug 1 1 1 2 +stress debug 1 1 100 1 +stress debug 1 1 100 2 +stress debug 1 1 100 3 +stress debug 1 100 1 1 +stress debug 1 100 1 2 +stress debug 1 100 1 3 +stress debug 1 100 100 1 +stress debug 1 100 100 2 +stress cpuset 1 1 1 2 +stress cpuset 1 1 100 1 +stress cpuset 1 1 100 2 +stress cpuset 1 1 100 3 +stress cpuset 1 100 1 1 +stress cpuset 1 100 1 2 +stress cpuset 1 100 1 3 +stress cpuset 1 100 100 1 +stress cpuset 1 100 100 2 +stress cpu 1 1 1 2 +stress cpu 1 100 1 1 +stress cpu 1 100 1 2 +stress cpu 1 100 1 3 +stress cpuacct 1 1 1 2 +stress cpuacct 1 1 100 1 +stress cpuacct 1 1 100 2 +stress cpuacct 1 1 100 3 +stress cpuacct 1 100 1 1 +stress cpuacct 1 100 1 2 +stress cpuacct 1 100 1 3 +stress cpuacct 1 100 100 1 +stress cpuacct 1 100 100 2 +stress memory 1 1 1 2 +stress memory 1 1 100 1 +stress memory 1 1 100 2 +stress memory 1 1 100 3 +stress memory 1 100 1 1 +stress memory 1 100 1 2 +stress memory 1 100 1 3 +stress memory 1 100 100 1 +stress memory 1 100 100 2 \ No newline at end of file diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh index 9b49725..1e2e521 100755 --- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh +++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh @@ -22,14 +22,12 @@ ## ## ################################################################################ -subsystem_str="" - exist_subsystem() { checksubsystem="" case "$#" in "0" ) - checksubsystem=$subsystem_str + checksubsystem=$subsystem ;; "1" ) checksubsystem=$1 @@ -54,49 +52,39 @@ exist_subsystem() get_subsystem() { case $subsystem in - "1" ) - subsystem_str="debug"; + "debug" ) exist_subsystem; ;; - "2" ) - subsystem_str="cpuset"; + "cpuset" ) exist_subsystem; ;; - "3" ) - subsystem_str="ns"; + "ns" ) exist_subsystem; ;; - "4" ) - subsystem_str="cpu" + "cpu" ) exist_subsystem; ;; - "5" ) - subsystem_str="cpuacct"; + "cpuacct" ) exist_subsystem; ;; - "6" ) - subsystem_str="memory"; + "memory" ) exist_subsystem; ;; - "7" ) - subsystem_str="all"; + "all" ) ;; - "8" ) - subsystem_str="" + "none" ) + subsystem="" ;; - "9" ) - subsystem_str="debug,debug"; + "debug,debug" ) exist_subsystem "debug"; ;; - "10" ) - subsystem_str="abc"; + "nonexistent" ) + subsystem="abc"; ;; - "11" ) - subsystem_str="freezer"; + "freezer" ) exist_subsystem; ;; - "12" ) - subsystem_str="devices"; + "devices" ) exist_subsystem; ;; * ) @@ -108,10 +96,10 @@ get_subsystem() get_remount_use() { case $remount_use in - "1" ) + "yes" ) remount_use_str=""; ;; - "2" ) + "no" ) remount_use_str="remount"; ;; * ) @@ -123,11 +111,11 @@ get_remount_use() get_noprefix_use() { case $noprefix_use in - "1" ) + "yes" ) noprefix_use_str=""; ;; - "2" ) - if [ $subsystem -ne 2 ]; then + "no" ) + if [ $subsystem != "cpuset" ]; then return -1 fi noprefix_use_str="noprefix"; @@ -570,11 +558,11 @@ mount_cgroup () { expectted=1 PARAMETER_O=""; - if [ $subsystem -eq 10 ]; then + if [ "$subsystem" == "abc" ]; then expectted=0 fi - if [ "$subsystem_str" != "" ]; then - PARAMETER_O="$subsystem_str" + if [ "$subsystem" != "" ]; then + PARAMETER_O="$subsystem" fi if [ "$noprefix_use_str" != "" ]; then if [ "$PARAMETER_O" != "" ]; then -- 2.1.4 |
From: Cui B. <cui...@hu...> - 2015-09-07 00:44:43
|
Delete linux_syscall_numbers.h in LTP otherwise it will not be compiled when do 'make': make: Nothing to be done for `all'. Signed-off-by: Cui Bixuan <cui...@hu...> --- testcases/kernel/include/linux_syscall_numbers.h |12985 ---------------------- 1 files changed, 0 insertions(+), 12985 deletions(-) delete mode 100644 testcases/kernel/include/linux_syscall_numbers.h diff --git a/testcases/kernel/include/linux_syscall_numbers.h b/testcases/kernel/include/linux_syscall_numbers.h deleted file mode 100644 index e1ee38e..0000000 --- a/testcases/kernel/include/linux_syscall_numbers.h +++ /dev/null @@ -1,12985 +0,0 @@ -/************************************************ - * GENERATED FILE: DO NOT EDIT/PATCH THIS FILE * - * change your arch specific .in file instead * - ************************************************/ - -/* - * Here we stick all the ugly *fallback* logic for linux - * system call numbers (those __NR_ thingies). - * - * Licensed under the GPLv2 or later, see the COPYING file. - */ - -#ifndef __LINUX_SYSCALL_NUMBERS_H__ -#define __LINUX_SYSCALL_NUMBERS_H__ - -#include <errno.h> -#include <sys/syscall.h> -#include "cleanup.c" - -#define ltp_syscall(NR, ...) ({ \ - int __ret; \ - if (NR == __LTP__NR_INVALID_SYSCALL) { \ - errno = ENOSYS; \ - __ret = -1; \ - } else { \ - __ret = syscall(NR, ##__VA_ARGS__); \ - } \ - if (__ret == -1 && errno == ENOSYS) { \ - tst_brkm(TCONF, CLEANUP, \ - "syscall " #NR " not supported on your arch"); \ - errno = ENOSYS; \ - } \ - __ret; \ -}) - -#define __LTP__NR_INVALID_SYSCALL -1 - -#ifdef __aarch64__ -# ifndef __NR_io_setup -# define __NR_io_setup 0 -# endif -# ifndef __NR_io_destroy -# define __NR_io_destroy 1 -# endif -# ifndef __NR_io_submit -# define __NR_io_submit 2 -# endif -# ifndef __NR_io_cancel -# define __NR_io_cancel 3 -# endif -# ifndef __NR_io_getevents -# define __NR_io_getevents 4 -# endif -# ifndef __NR_setxattr -# define __NR_setxattr 5 -# endif -# ifndef __NR_lsetxattr -# define __NR_lsetxattr 6 -# endif -# ifndef __NR_fsetxattr -# define __NR_fsetxattr 7 -# endif -# ifndef __NR_getxattr -# define __NR_getxattr 8 -# endif -# ifndef __NR_lgetxattr -# define __NR_lgetxattr 9 -# endif -# ifndef __NR_fgetxattr -# define __NR_fgetxattr 10 -# endif -# ifndef __NR_listxattr -# define __NR_listxattr 11 -# endif -# ifndef __NR_llistxattr -# define __NR_llistxattr 12 -# endif -# ifndef __NR_flistxattr -# define __NR_flistxattr 13 -# endif -# ifndef __NR_removexattr -# define __NR_removexattr 14 -# endif -# ifndef __NR_lremovexattr -# define __NR_lremovexattr 15 -# endif -# ifndef __NR_fremovexattr -# define __NR_fremovexattr 16 -# endif -# ifndef __NR_getcwd -# define __NR_getcwd 17 -# endif -# ifndef __NR_lookup_dcookie -# define __NR_lookup_dcookie 18 -# endif -# ifndef __NR_eventfd2 -# define __NR_eventfd2 19 -# endif -# ifndef __NR_epoll_create1 -# define __NR_epoll_create1 20 -# endif -# ifndef __NR_epoll_ctl -# define __NR_epoll_ctl 21 -# endif -# ifndef __NR_epoll_pwait -# define __NR_epoll_pwait 22 -# endif -# ifndef __NR_dup -# define __NR_dup 23 -# endif -# ifndef __NR_dup3 -# define __NR_dup3 24 -# endif -# ifndef __NR_fcntl -# define __NR_fcntl 25 -# endif -# ifndef __NR_inotify_init1 -# define __NR_inotify_init1 26 -# endif -# ifndef __NR_inotify_add_watch -# define __NR_inotify_add_watch 27 -# endif -# ifndef __NR_inotify_rm_watch -# define __NR_inotify_rm_watch 28 -# endif -# ifndef __NR_ioctl -# define __NR_ioctl 29 -# endif -# ifndef __NR_ioprio_set -# define __NR_ioprio_set 30 -# endif -# ifndef __NR_ioprio_get -# define __NR_ioprio_get 31 -# endif -# ifndef __NR_flock -# define __NR_flock 32 -# endif -# ifndef __NR_mknodat -# define __NR_mknodat 33 -# endif -# ifndef __NR_mkdirat -# define __NR_mkdirat 34 -# endif -# ifndef __NR_unlinkat -# define __NR_unlinkat 35 -# endif -# ifndef __NR_symlinkat -# define __NR_symlinkat 36 -# endif -# ifndef __NR_linkat -# define __NR_linkat 37 -# endif -# ifndef __NR_renameat -# define __NR_renameat 38 -# endif -# ifndef __NR_umount2 -# define __NR_umount2 39 -# endif -# ifndef __NR_mount -# define __NR_mount 40 -# endif -# ifndef __NR_pivot_root -# define __NR_pivot_root 41 -# endif -# ifndef __NR_nfsservctl -# define __NR_nfsservctl 42 -# endif -# ifndef __NR_statfs -# define __NR_statfs 43 -# endif -# ifndef __NR_fstatfs -# define __NR_fstatfs 44 -# endif -# ifndef __NR_truncate -# define __NR_truncate 45 -# endif -# ifndef __NR_ftruncate -# define __NR_ftruncate 46 -# endif -# ifndef __NR_fallocate -# define __NR_fallocate 47 -# endif -# ifndef __NR_faccessat -# define __NR_faccessat 48 -# endif -# ifndef __NR_chdir -# define __NR_chdir 49 -# endif -# ifndef __NR_fchdir -# define __NR_fchdir 50 -# endif -# ifndef __NR_chroot -# define __NR_chroot 51 -# endif -# ifndef __NR_fchmod -# define __NR_fchmod 52 -# endif -# ifndef __NR_fchmodat -# define __NR_fchmodat 53 -# endif -# ifndef __NR_fchownat -# define __NR_fchownat 54 -# endif -# ifndef __NR_fchown -# define __NR_fchown 55 -# endif -# ifndef __NR_openat -# define __NR_openat 56 -# endif -# ifndef __NR_close -# define __NR_close 57 -# endif -# ifndef __NR_vhangup -# define __NR_vhangup 58 -# endif -# ifndef __NR_pipe2 -# define __NR_pipe2 59 -# endif -# ifndef __NR_quotactl -# define __NR_quotactl 60 -# endif -# ifndef __NR_getdents64 -# define __NR_getdents64 61 -# endif -# ifndef __NR_lseek -# define __NR_lseek 62 -# endif -# ifndef __NR_read -# define __NR_read 63 -# endif -# ifndef __NR_write -# define __NR_write 64 -# endif -# ifndef __NR_readv -# define __NR_readv 65 -# endif -# ifndef __NR_writev -# define __NR_writev 66 -# endif -# ifndef __NR_pread64 -# define __NR_pread64 67 -# endif -# ifndef __NR_pwrite64 -# define __NR_pwrite64 68 -# endif -# ifndef __NR_preadv -# define __NR_preadv 69 -# endif -# ifndef __NR_pwritev -# define __NR_pwritev 70 -# endif -# ifndef __NR_sendfile -# define __NR_sendfile 71 -# endif -# ifndef __NR_pselect6 -# define __NR_pselect6 72 -# endif -# ifndef __NR_ppoll -# define __NR_ppoll 73 -# endif -# ifndef __NR_signalfd4 -# define __NR_signalfd4 74 -# endif -# ifndef __NR_vmsplice -# define __NR_vmsplice 75 -# endif -# ifndef __NR_splice -# define __NR_splice 76 -# endif -# ifndef __NR_tee -# define __NR_tee 77 -# endif -# ifndef __NR_readlinkat -# define __NR_readlinkat 78 -# endif -# ifndef __NR_fstatat -# define __NR_fstatat 79 -# endif -# ifndef __NR_fstat -# define __NR_fstat 80 -# endif -# ifndef __NR_sync -# define __NR_sync 81 -# endif -# ifndef __NR_fsync -# define __NR_fsync 82 -# endif -# ifndef __NR_fdatasync -# define __NR_fdatasync 83 -# endif -# ifndef __NR_sync_file_range2 -# define __NR_sync_file_range2 84 -# endif -# ifndef __NR_sync_file_range -# define __NR_sync_file_range 84 -# endif -# ifndef __NR_timerfd_create -# define __NR_timerfd_create 85 -# endif -# ifndef __NR_timerfd_settime -# define __NR_timerfd_settime 86 -# endif -# ifndef __NR_timerfd_gettime -# define __NR_timerfd_gettime 87 -# endif -# ifndef __NR_utimensat -# define __NR_utimensat 88 -# endif -# ifndef __NR_acct -# define __NR_acct 89 -# endif -# ifndef __NR_capget -# define __NR_capget 90 -# endif -# ifndef __NR_capset -# define __NR_capset 91 -# endif -# ifndef __NR_personality -# define __NR_personality 92 -# endif -# ifndef __NR_exit -# define __NR_exit 93 -# endif -# ifndef __NR_exit_group -# define __NR_exit_group 94 -# endif -# ifndef __NR_waitid -# define __NR_waitid 95 -# endif -# ifndef __NR_set_tid_address -# define __NR_set_tid_address 96 -# endif -# ifndef __NR_unshare -# define __NR_unshare 97 -# endif -# ifndef __NR_futex -# define __NR_futex 98 -# endif -# ifndef __NR_set_robust_list -# define __NR_set_robust_list 99 -# endif -# ifndef __NR_get_robust_list -# define __NR_get_robust_list 100 -# endif -# ifndef __NR_nanosleep -# define __NR_nanosleep 101 -# endif -# ifndef __NR_getitimer -# define __NR_getitimer 102 -# endif -# ifndef __NR_setitimer -# define __NR_setitimer 103 -# endif -# ifndef __NR_kexec_load -# define __NR_kexec_load 104 -# endif -# ifndef __NR_init_module -# define __NR_init_module 105 -# endif -# ifndef __NR_delete_module -# define __NR_delete_module 106 -# endif -# ifndef __NR_timer_create -# define __NR_timer_create 107 -# endif -# ifndef __NR_timer_gettime -# define __NR_timer_gettime 108 -# endif -# ifndef __NR_timer_getoverrun -# define __NR_timer_getoverrun 109 -# endif -# ifndef __NR_timer_settime -# define __NR_timer_settime 110 -# endif -# ifndef __NR_timer_delete -# define __NR_timer_delete 111 -# endif -# ifndef __NR_clock_settime -# define __NR_clock_settime 112 -# endif -# ifndef __NR_clock_gettime -# define __NR_clock_gettime 113 -# endif -# ifndef __NR_clock_getres -# define __NR_clock_getres 114 -# endif -# ifndef __NR_clock_nanosleep -# define __NR_clock_nanosleep 115 -# endif -# ifndef __NR_syslog -# define __NR_syslog 116 -# endif -# ifndef __NR_ptrace -# define __NR_ptrace 117 -# endif -# ifndef __NR_sched_setparam -# define __NR_sched_setparam 118 -# endif -# ifndef __NR_sched_setscheduler -# define __NR_sched_setscheduler 119 -# endif -# ifndef __NR_sched_getscheduler -# define __NR_sched_getscheduler 120 -# endif -# ifndef __NR_sched_getparam -# define __NR_sched_getparam 121 -# endif -# ifndef __NR_sched_setaffinity -# define __NR_sched_setaffinity 122 -# endif -# ifndef __NR_sched_getaffinity -# define __NR_sched_getaffinity 123 -# endif -# ifndef __NR_sched_yield -# define __NR_sched_yield 124 -# endif -# ifndef __NR_sched_get_priority_max -# define __NR_sched_get_priority_max 125 -# endif -# ifndef __NR_sched_get_priority_min -# define __NR_sched_get_priority_min 126 -# endif -# ifndef __NR_sched_rr_get_interval -# define __NR_sched_rr_get_interval 127 -# endif -# ifndef __NR_restart_syscall -# define __NR_restart_syscall 128 -# endif -# ifndef __NR_kill -# define __NR_kill 129 -# endif -# ifndef __NR_tkill -# define __NR_tkill 130 -# endif -# ifndef __NR_tgkill -# define __NR_tgkill 131 -# endif -# ifndef __NR_sigaltstack -# define __NR_sigaltstack 132 -# endif -# ifndef __NR_rt_sigsuspend -# define __NR_rt_sigsuspend 133 -# endif -# ifndef __NR_rt_sigaction -# define __NR_rt_sigaction 134 -# endif -# ifndef __NR_rt_sigprocmask -# define __NR_rt_sigprocmask 135 -# endif -# ifndef __NR_rt_sigpending -# define __NR_rt_sigpending 136 -# endif -# ifndef __NR_rt_sigtimedwait -# define __NR_rt_sigtimedwait 137 -# endif -# ifndef __NR_rt_sigqueueinfo -# define __NR_rt_sigqueueinfo 138 -# endif -# ifndef __NR_rt_sigreturn -# define __NR_rt_sigreturn 139 -# endif -# ifndef __NR_setpriority -# define __NR_setpriority 140 -# endif -# ifndef __NR_getpriority -# define __NR_getpriority 141 -# endif -# ifndef __NR_reboot -# define __NR_reboot 142 -# endif -# ifndef __NR_setregid -# define __NR_setregid 143 -# endif -# ifndef __NR_setgid -# define __NR_setgid 144 -# endif -# ifndef __NR_setreuid -# define __NR_setreuid 145 -# endif -# ifndef __NR_setuid -# define __NR_setuid 146 -# endif -# ifndef __NR_setresuid -# define __NR_setresuid 147 -# endif -# ifndef __NR_getresuid -# define __NR_getresuid 148 -# endif -# ifndef __NR_setresgid -# define __NR_setresgid 149 -# endif -# ifndef __NR_getresgid -# define __NR_getresgid 150 -# endif -# ifndef __NR_setfsuid -# define __NR_setfsuid 151 -# endif -# ifndef __NR_setfsgid -# define __NR_setfsgid 152 -# endif -# ifndef __NR_times -# define __NR_times 153 -# endif -# ifndef __NR_setpgid -# define __NR_setpgid 154 -# endif -# ifndef __NR_getpgid -# define __NR_getpgid 155 -# endif -# ifndef __NR_getsid -# define __NR_getsid 156 -# endif -# ifndef __NR_setsid -# define __NR_setsid 157 -# endif -# ifndef __NR_getgroups -# define __NR_getgroups 158 -# endif -# ifndef __NR_setgroups -# define __NR_setgroups 159 -# endif -# ifndef __NR_uname -# define __NR_uname 160 -# endif -# ifndef __NR_sethostname -# define __NR_sethostname 161 -# endif -# ifndef __NR_setdomainname -# define __NR_setdomainname 162 -# endif -# ifndef __NR_getrlimit -# define __NR_getrlimit 163 -# endif -# ifndef __NR_setrlimit -# define __NR_setrlimit 164 -# endif -# ifndef __NR_getrusage -# define __NR_getrusage 165 -# endif -# ifndef __NR_umask -# define __NR_umask 166 -# endif -# ifndef __NR_prctl -# define __NR_prctl 167 -# endif -# ifndef __NR_getcpu -# define __NR_getcpu 168 -# endif -# ifndef __NR_gettimeofday -# define __NR_gettimeofday 169 -# endif -# ifndef __NR_settimeofday -# define __NR_settimeofday 170 -# endif -# ifndef __NR_adjtimex -# define __NR_adjtimex 171 -# endif -# ifndef __NR_getpid -# define __NR_getpid 172 -# endif -# ifndef __NR_getppid -# define __NR_getppid 173 -# endif -# ifndef __NR_getuid -# define __NR_getuid 174 -# endif -# ifndef __NR_geteuid -# define __NR_geteuid 175 -# endif -# ifndef __NR_getgid -# define __NR_getgid 176 -# endif -# ifndef __NR_getegid -# define __NR_getegid 177 -# endif -# ifndef __NR_gettid -# define __NR_gettid 178 -# endif -# ifndef __NR_sysinfo -# define __NR_sysinfo 179 -# endif -# ifndef __NR_mq_open -# define __NR_mq_open 180 -# endif -# ifndef __NR_mq_unlink -# define __NR_mq_unlink 181 -# endif -# ifndef __NR_mq_timedsend -# define __NR_mq_timedsend 182 -# endif -# ifndef __NR_mq_timedreceive -# define __NR_mq_timedreceive 183 -# endif -# ifndef __NR_mq_notify -# define __NR_mq_notify 184 -# endif -# ifndef __NR_mq_getsetattr -# define __NR_mq_getsetattr 185 -# endif -# ifndef __NR_msgget -# define __NR_msgget 186 -# endif -# ifndef __NR_msgctl -# define __NR_msgctl 187 -# endif -# ifndef __NR_msgrcv -# define __NR_msgrcv 188 -# endif -# ifndef __NR_msgsnd -# define __NR_msgsnd 189 -# endif -# ifndef __NR_semget -# define __NR_semget 190 -# endif -# ifndef __NR_semctl -# define __NR_semctl 191 -# endif -# ifndef __NR_semtimedop -# define __NR_semtimedop 192 -# endif -# ifndef __NR_semop -# define __NR_semop 193 -# endif -# ifndef __NR_shmget -# define __NR_shmget 194 -# endif -# ifndef __NR_shmctl -# define __NR_shmctl 195 -# endif -# ifndef __NR_shmat -# define __NR_shmat 196 -# endif -# ifndef __NR_shmdt -# define __NR_shmdt 197 -# endif -# ifndef __NR_socket -# define __NR_socket 198 -# endif -# ifndef __NR_socketpair -# define __NR_socketpair 199 -# endif -# ifndef __NR_bind -# define __NR_bind 200 -# endif -# ifndef __NR_listen -# define __NR_listen 201 -# endif -# ifndef __NR_accept -# define __NR_accept 202 -# endif -# ifndef __NR_connect -# define __NR_connect 203 -# endif -# ifndef __NR_getsockname -# define __NR_getsockname 204 -# endif -# ifndef __NR_getpeername -# define __NR_getpeername 205 -# endif -# ifndef __NR_sendto -# define __NR_sendto 206 -# endif -# ifndef __NR_recvfrom -# define __NR_recvfrom 207 -# endif -# ifndef __NR_setsockopt -# define __NR_setsockopt 208 -# endif -# ifndef __NR_getsockopt -# define __NR_getsockopt 209 -# endif -# ifndef __NR_shutdown -# define __NR_shutdown 210 -# endif -# ifndef __NR_sendmsg -# define __NR_sendmsg 211 -# endif -# ifndef __NR_recvmsg -# define __NR_recvmsg 212 -# endif -# ifndef __NR_readahead -# define __NR_readahead 213 -# endif -# ifndef __NR_brk -# define __NR_brk 214 -# endif -# ifndef __NR_munmap -# define __NR_munmap 215 -# endif -# ifndef __NR_mremap -# define __NR_mremap 216 -# endif -# ifndef __NR_add_key -# define __NR_add_key 217 -# endif -# ifndef __NR_request_key -# define __NR_request_key 218 -# endif -# ifndef __NR_keyctl -# define __NR_keyctl 219 -# endif -# ifndef __NR_clone -# define __NR_clone 220 -# endif -# ifndef __NR_execve -# define __NR_execve 221 -# endif -# ifndef __NR_mmap -# define __NR_mmap 222 -# endif -# ifndef __NR_fadvise64 -# define __NR_fadvise64 223 -# endif -# ifndef __NR_swapon -# define __NR_swapon 224 -# endif -# ifndef __NR_swapoff -# define __NR_swapoff 225 -# endif -# ifndef __NR_mprotect -# define __NR_mprotect 226 -# endif -# ifndef __NR_msync -# define __NR_msync 227 -# endif -# ifndef __NR_mlock -# define __NR_mlock 228 -# endif -# ifndef __NR_munlock -# define __NR_munlock 229 -# endif -# ifndef __NR_mlockall -# define __NR_mlockall 230 -# endif -# ifndef __NR_munlockall -# define __NR_munlockall 231 -# endif -# ifndef __NR_mincore -# define __NR_mincore 232 -# endif -# ifndef __NR_madvise -# define __NR_madvise 233 -# endif -# ifndef __NR_remap_file_pages -# define __NR_remap_file_pages 234 -# endif -# ifndef __NR_mbind -# define __NR_mbind 235 -# endif -# ifndef __NR_get_mempolicy -# define __NR_get_mempolicy 236 -# endif -# ifndef __NR_set_mempolicy -# define __NR_set_mempolicy 237 -# endif -# ifndef __NR_migrate_pages -# define __NR_migrate_pages 238 -# endif -# ifndef __NR_move_pages -# define __NR_move_pages 239 -# endif -# ifndef __NR_rt_tgsigqueueinfo -# define __NR_rt_tgsigqueueinfo 240 -# endif -# ifndef __NR_perf_event_open -# define __NR_perf_event_open 241 -# endif -# ifndef __NR_accept4 -# define __NR_accept4 242 -# endif -# ifndef __NR_recvmmsg -# define __NR_recvmmsg 243 -# endif -# ifndef __NR_wait4 -# define __NR_wait4 260 -# endif -# ifndef __NR_prlimit64 -# define __NR_prlimit64 261 -# endif -# ifndef __NR_fanotify_init -# define __NR_fanotify_init 262 -# endif -# ifndef __NR_fanotify_mark -# define __NR_fanotify_mark 263 -# endif -# ifndef __NR_name_to_handle_at -# define __NR_name_to_handle_at 264 -# endif -# ifndef __NR_open_by_handle_at -# define __NR_open_by_handle_at 265 -# endif -# ifndef __NR_clock_adjtime -# define __NR_clock_adjtime 266 -# endif -# ifndef __NR_syncfs -# define __NR_syncfs 267 -# endif -# ifndef __NR_setns -# define __NR_setns 268 -# endif -# ifndef __NR_sendmmsg -# define __NR_sendmmsg 269 -# endif -#endif - - -#ifdef __arm__ -# ifndef __NR_restart_syscall -# define __NR_restart_syscall (__NR_SYSCALL_BASE+ 0) -# endif -# ifndef __NR_exit -# define __NR_exit (__NR_SYSCALL_BASE+ 1) -# endif -# ifndef __NR_fork -# define __NR_fork (__NR_SYSCALL_BASE+ 2) -# endif -# ifndef __NR_read -# define __NR_read (__NR_SYSCALL_BASE+ 3) -# endif -# ifndef __NR_write -# define __NR_write (__NR_SYSCALL_BASE+ 4) -# endif -# ifndef __NR_open -# define __NR_open (__NR_SYSCALL_BASE+ 5) -# endif -# ifndef __NR_close -# define __NR_close (__NR_SYSCALL_BASE+ 6) -# endif -# ifndef __NR_creat -# define __NR_creat (__NR_SYSCALL_BASE+ 8) -# endif -# ifndef __NR_link -# define __NR_link (__NR_SYSCALL_BASE+ 9) -# endif -# ifndef __NR_unlink -# define __NR_unlink (__NR_SYSCALL_BASE+ 10) -# endif -# ifndef __NR_execve -# define __NR_execve (__NR_SYSCALL_BASE+ 11) -# endif -# ifndef __NR_chdir -# define __NR_chdir (__NR_SYSCALL_BASE+ 12) -# endif -# ifndef __NR_time -# define __NR_time (__NR_SYSCALL_BASE+ 13) -# endif -# ifndef __NR_mknod -# define __NR_mknod (__NR_SYSCALL_BASE+ 14) -# endif -# ifndef __NR_chmod -# define __NR_chmod (__NR_SYSCALL_BASE+ 15) -# endif -# ifndef __NR_lchown -# define __NR_lchown (__NR_SYSCALL_BASE+ 16) -# endif -# ifndef __NR_lseek -# define __NR_lseek (__NR_SYSCALL_BASE+ 19) -# endif -# ifndef __NR_getpid -# define __NR_getpid (__NR_SYSCALL_BASE+ 20) -# endif -# ifndef __NR_mount -# define __NR_mount (__NR_SYSCALL_BASE+ 21) -# endif -# ifndef __NR_umount -# define __NR_umount (__NR_SYSCALL_BASE+ 22) -# endif -# ifndef __NR_setuid -# define __NR_setuid (__NR_SYSCALL_BASE+ 23) -# endif -# ifndef __NR_getuid -# define __NR_getuid (__NR_SYSCALL_BASE+ 24) -# endif -# ifndef __NR_stime -# define __NR_stime (__NR_SYSCALL_BASE+ 25) -# endif -# ifndef __NR_ptrace -# define __NR_ptrace (__NR_SYSCALL_BASE+ 26) -# endif -# ifndef __NR_alarm -# define __NR_alarm (__NR_SYSCALL_BASE+ 27) -# endif -# ifndef __NR_pause -# define __NR_pause (__NR_SYSCALL_BASE+ 29) -# endif -# ifndef __NR_utime -# define __NR_utime (__NR_SYSCALL_BASE+ 30) -# endif -# ifndef __NR_access -# define __NR_access (__NR_SYSCALL_BASE+ 33) -# endif -# ifndef __NR_nice -# define __NR_nice (__NR_SYSCALL_BASE+ 34) -# endif -# ifndef __NR_sync -# define __NR_sync (__NR_SYSCALL_BASE+ 36) -# endif -# ifndef __NR_kill -# define __NR_kill (__NR_SYSCALL_BASE+ 37) -# endif -# ifndef __NR_rename -# define __NR_rename (__NR_SYSCALL_BASE+ 38) -# endif -# ifndef __NR_mkdir -# define __NR_mkdir (__NR_SYSCALL_BASE+ 39) -# endif -# ifndef __NR_rmdir -# define __NR_rmdir (__NR_SYSCALL_BASE+ 40) -# endif -# ifndef __NR_dup -# define __NR_dup (__NR_SYSCALL_BASE+ 41) -# endif -# ifndef __NR_pipe -# define __NR_pipe (__NR_SYSCALL_BASE+ 42) -# endif -# ifndef __NR_times -# define __NR_times (__NR_SYSCALL_BASE+ 43) -# endif -# ifndef __NR_brk -# define __NR_brk (__NR_SYSCALL_BASE+ 45) -# endif -# ifndef __NR_setgid -# define __NR_setgid (__NR_SYSCALL_BASE+ 46) -# endif -# ifndef __NR_getgid -# define __NR_getgid (__NR_SYSCALL_BASE+ 47) -# endif -# ifndef __NR_geteuid -# define __NR_geteuid (__NR_SYSCALL_BASE+ 49) -# endif -# ifndef __NR_getegid -# define __NR_getegid (__NR_SYSCALL_BASE+ 50) -# endif -# ifndef __NR_acct -# define __NR_acct (__NR_SYSCALL_BASE+ 51) -# endif -# ifndef __NR_umount2 -# define __NR_umount2 (__NR_SYSCALL_BASE+ 52) -# endif -# ifndef __NR_ioctl -# define __NR_ioctl (__NR_SYSCALL_BASE+ 54) -# endif -# ifndef __NR_fcntl -# define __NR_fcntl (__NR_SYSCALL_BASE+ 55) -# endif -# ifndef __NR_setpgid -# define __NR_setpgid (__NR_SYSCALL_BASE+ 57) -# endif -# ifndef __NR_umask -# define __NR_umask (__NR_SYSCALL_BASE+ 60) -# endif -# ifndef __NR_chroot -# define __NR_chroot (__NR_SYSCALL_BASE+ 61) -# endif -# ifndef __NR_ustat -# define __NR_ustat (__NR_SYSCALL_BASE+ 62) -# endif -# ifndef __NR_dup2 -# define __NR_dup2 (__NR_SYSCALL_BASE+ 63) -# endif -# ifndef __NR_getppid -# define __NR_getppid (__NR_SYSCALL_BASE+ 64) -# endif -# ifndef __NR_getpgrp -# define __NR_getpgrp (__NR_SYSCALL_BASE+ 65) -# endif -# ifndef __NR_setsid -# define __NR_setsid (__NR_SYSCALL_BASE+ 66) -# endif -# ifndef __NR_sigaction -# define __NR_sigaction (__NR_SYSCALL_BASE+ 67) -# endif -# ifndef __NR_setreuid -# define __NR_setreuid (__NR_SYSCALL_BASE+ 70) -# endif -# ifndef __NR_setregid -# define __NR_setregid (__NR_SYSCALL_BASE+ 71) -# endif -# ifndef __NR_sigsuspend -# define __NR_sigsuspend (__NR_SYSCALL_BASE+ 72) -# endif -# ifndef __NR_sigpending -# define __NR_sigpending (__NR_SYSCALL_BASE+ 73) -# endif -# ifndef __NR_sethostname -# define __NR_sethostname (__NR_SYSCALL_BASE+ 74) -# endif -# ifndef __NR_setrlimit -# define __NR_setrlimit (__NR_SYSCALL_BASE+ 75) -# endif -# ifndef __NR_getrlimit -# define __NR_getrlimit (__NR_SYSCALL_BASE+ 76) -# endif -# ifndef __NR_getrusage -# define __NR_getrusage (__NR_SYSCALL_BASE+ 77) -# endif -# ifndef __NR_gettimeofday -# define __NR_gettimeofday (__NR_SYSCALL_BASE+ 78) -# endif -# ifndef __NR_settimeofday -# define __NR_settimeofday (__NR_SYSCALL_BASE+ 79) -# endif -# ifndef __NR_getgroups -# define __NR_getgroups (__NR_SYSCALL_BASE+ 80) -# endif -# ifndef __NR_setgroups -# define __NR_setgroups (__NR_SYSCALL_BASE+ 81) -# endif -# ifndef __NR_select -# define __NR_select (__NR_SYSCALL_BASE+ 82) -# endif -# ifndef __NR_symlink -# define __NR_symlink (__NR_SYSCALL_BASE+ 83) -# endif -# ifndef __NR_readlink -# define __NR_readlink (__NR_SYSCALL_BASE+ 85) -# endif -# ifndef __NR_uselib -# define __NR_uselib (__NR_SYSCALL_BASE+ 86) -# endif -# ifndef __NR_swapon -# define __NR_swapon (__NR_SYSCALL_BASE+ 87) -# endif -# ifndef __NR_reboot -# define __NR_reboot (__NR_SYSCALL_BASE+ 88) -# endif -# ifndef __NR_readdir -# define __NR_readdir (__NR_SYSCALL_BASE+ 89) -# endif -# ifndef __NR_mmap -# define __NR_mmap (__NR_SYSCALL_BASE+ 90) -# endif -# ifndef __NR_munmap -# define __NR_munmap (__NR_SYSCALL_BASE+ 91) -# endif -# ifndef __NR_truncate -# define __NR_truncate (__NR_SYSCALL_BASE+ 92) -# endif -# ifndef __NR_ftruncate -# define __NR_ftruncate (__NR_SYSCALL_BASE+ 93) -# endif -# ifndef __NR_fchmod -# define __NR_fchmod (__NR_SYSCALL_BASE+ 94) -# endif -# ifndef __NR_fchown -# define __NR_fchown (__NR_SYSCALL_BASE+ 95) -# endif -# ifndef __NR_getpriority -# define __NR_getpriority (__NR_SYSCALL_BASE+ 96) -# endif -# ifndef __NR_setpriority -# define __NR_setpriority (__NR_SYSCALL_BASE+ 97) -# endif -# ifndef __NR_statfs -# define __NR_statfs (__NR_SYSCALL_BASE+ 99) -# endif -# ifndef __NR_fstatfs -# define __NR_fstatfs (__NR_SYSCALL_BASE+100) -# endif -# ifndef __NR_socketcall -# define __NR_socketcall (__NR_SYSCALL_BASE+102) -# endif -# ifndef __NR_syslog -# define __NR_syslog (__NR_SYSCALL_BASE+103) -# endif -# ifndef __NR_setitimer -# define __NR_setitimer (__NR_SYSCALL_BASE+104) -# endif -# ifndef __NR_getitimer -# define __NR_getitimer (__NR_SYSCALL_BASE+105) -# endif -# ifndef __NR_stat -# define __NR_stat (__NR_SYSCALL_BASE+106) -# endif -# ifndef __NR_lstat -# define __NR_lstat (__NR_SYSCALL_BASE+107) -# endif -# ifndef __NR_fstat -# define __NR_fstat (__NR_SYSCALL_BASE+108) -# endif -# ifndef __NR_vhangup -# define __NR_vhangup (__NR_SYSCALL_BASE+111) -# endif -# ifndef __NR_syscall -# define __NR_syscall (__NR_SYSCALL_BASE+113) -# endif -# ifndef __NR_wait4 -# define __NR_wait4 (__NR_SYSCALL_BASE+114) -# endif -# ifndef __NR_swapoff -# define __NR_swapoff (__NR_SYSCALL_BASE+115) -# endif -# ifndef __NR_sysinfo -# define __NR_sysinfo (__NR_SYSCALL_BASE+116) -# endif -# ifndef __NR_ipc -# define __NR_ipc (__NR_SYSCALL_BASE+117) -# endif -# ifndef __NR_fsync -# define __NR_fsync (__NR_SYSCALL_BASE+118) -# endif -# ifndef __NR_sigreturn -# define __NR_sigreturn (__NR_SYSCALL_BASE+119) -# endif -# ifndef __NR_clone -# define __NR_clone (__NR_SYSCALL_BASE+120) -# endif -# ifndef __NR_setdomainname -# define __NR_setdomainname (__NR_SYSCALL_BASE+121) -# endif -# ifndef __NR_uname -# define __NR_uname (__NR_SYSCALL_BASE+122) -# endif -# ifndef __NR_adjtimex -# define __NR_adjtimex (__NR_SYSCALL_BASE+124) -# endif -# ifndef __NR_mprotect -# define __NR_mprotect (__NR_SYSCALL_BASE+125) -# endif -# ifndef __NR_sigprocmask -# define __NR_sigprocmask (__NR_SYSCALL_BASE+126) -# endif -# ifndef __NR_init_module -# define __NR_init_module (__NR_SYSCALL_BASE+128) -# endif -# ifndef __NR_delete_module -# define __NR_delete_module (__NR_SYSCALL_BASE+129) -# endif -# ifndef __NR_quotactl -# define __NR_quotactl (__NR_SYSCALL_BASE+131) -# endif -# ifndef __NR_getpgid -# define __NR_getpgid (__NR_SYSCALL_BASE+132) -# endif -# ifndef __NR_fchdir -# define __NR_fchdir (__NR_SYSCALL_BASE+133) -# endif -# ifndef __NR_bdflush -# define __NR_bdflush (__NR_SYSCALL_BASE+134) -# endif -# ifndef __NR_sysfs -# define __NR_sysfs (__NR_SYSCALL_BASE+135) -# endif -# ifndef __NR_personality -# define __NR_personality (__NR_SYSCALL_BASE+136) -# endif -# ifndef __NR_setfsuid -# define __NR_setfsuid (__NR_SYSCALL_BASE+138) -# endif -# ifndef __NR_setfsgid -# define __NR_setfsgid (__NR_SYSCALL_BASE+139) -# endif -# ifndef __NR_getdents -# define __NR_getdents (__NR_SYSCALL_BASE+141) -# endif -# ifndef __NR_flock -# define __NR_flock (__NR_SYSCALL_BASE+143) -# endif -# ifndef __NR_msync -# define __NR_msync (__NR_SYSCALL_BASE+144) -# endif -# ifndef __NR_readv -# define __NR_readv (__NR_SYSCALL_BASE+145) -# endif -# ifndef __NR_writev -# define __NR_writev (__NR_SYSCALL_BASE+146) -# endif -# ifndef __NR_getsid -# define __NR_getsid (__NR_SYSCALL_BASE+147) -# endif -# ifndef __NR_fdatasync -# define __NR_fdatasync (__NR_SYSCALL_BASE+148) -# endif -# ifndef __NR_mlock -# define __NR_mlock (__NR_SYSCALL_BASE+150) -# endif -# ifndef __NR_munlock -# define __NR_munlock (__NR_SYSCALL_BASE+151) -# endif -# ifndef __NR_mlockall -# define __NR_mlockall (__NR_SYSCALL_BASE+152) -# endif -# ifndef __NR_munlockall -# define __NR_munlockall (__NR_SYSCALL_BASE+153) -# endif -# ifndef __NR_sched_setparam -# define __NR_sched_setparam (__NR_SYSCALL_BASE+154) -# endif -# ifndef __NR_sched_getparam -# define __NR_sched_getparam (__NR_SYSCALL_BASE+155) -# endif -# ifndef __NR_sched_setscheduler -# define __NR_sched_setscheduler (__NR_SYSCALL_BASE+156) -# endif -# ifndef __NR_sched_getscheduler -# define __NR_sched_getscheduler (__NR_SYSCALL_BASE+157) -# endif -# ifndef __NR_sched_yield -# define __NR_sched_yield (__NR_SYSCALL_BASE+158) -# endif -# ifndef __NR_sched_get_priority_max -# define __NR_sched_get_priority_max (__NR_SYSCALL_BASE+159) -# endif -# ifndef __NR_sched_get_priority_min -# define __NR_sched_get_priority_min (__NR_SYSCALL_BASE+160) -# endif -# ifndef __NR_sched_rr_get_interval -# define __NR_sched_rr_get_interval (__NR_SYSCALL_BASE+161) -# endif -# ifndef __NR_nanosleep -# define __NR_nanosleep (__NR_SYSCALL_BASE+162) -# endif -# ifndef __NR_mremap -# define __NR_mremap (__NR_SYSCALL_BASE+163) -# endif -# ifndef __NR_setresuid -# define __NR_setresuid (__NR_SYSCALL_BASE+164) -# endif -# ifndef __NR_getresuid -# define __NR_getresuid (__NR_SYSCALL_BASE+165) -# endif -# ifndef __NR_poll -# define __NR_poll (__NR_SYSCALL_BASE+168) -# endif -# ifndef __NR_nfsservctl -# define __NR_nfsservctl (__NR_SYSCALL_BASE+169) -# endif -# ifndef __NR_setresgid -# define __NR_setresgid (__NR_SYSCALL_BASE+170) -# endif -# ifndef __NR_getresgid -# define __NR_getresgid (__NR_SYSCALL_BASE+171) -# endif -# ifndef __NR_prctl -# define __NR_prctl (__NR_SYSCALL_BASE+172) -# endif -# ifndef __NR_rt_sigreturn -# define __NR_rt_sigreturn (__NR_SYSCALL_BASE+173) -# endif -# ifndef __NR_rt_sigaction -# define __NR_rt_sigaction (__NR_SYSCALL_BASE+174) -# endif -# ifndef __NR_rt_sigprocmask -# define __NR_rt_sigprocmask (__NR_SYSCALL_BASE+175) -# endif -# ifndef __NR_rt_sigpending -# define __NR_rt_sigpending (__NR_SYSCALL_BASE+176) -# endif -# ifndef __NR_rt_sigtimedwait -# define __NR_rt_sigtimedwait (__NR_SYSCALL_BASE+177) -# endif -# ifndef __NR_rt_sigqueueinfo -# define __NR_rt_sigqueueinfo (__NR_SYSCALL_BASE+178) -# endif -# ifndef __NR_rt_sigsuspend -# define __NR_rt_sigsuspend (__NR_SYSCALL_BASE+179) -# endif -# ifndef __NR_pread64 -# define __NR_pread64 (__NR_SYSCALL_BASE+180) -# endif -# ifndef __NR_pwrite64 -# define __NR_pwrite64 (__NR_SYSCALL_BASE+181) -# endif -# ifndef __NR_chown -# define __NR_chown (__NR_SYSCALL_BASE+182) -# endif -# ifndef __NR_getcwd -# define __NR_getcwd (__NR_SYSCALL_BASE+183) -# endif -# ifndef __NR_capget -# define __NR_capget (__NR_SYSCALL_BASE+184) -# endif -# ifndef __NR_capset -# define __NR_capset (__NR_SYSCALL_BASE+185) -# endif -# ifndef __NR_sigaltstack -# define __NR_sigaltstack (__NR_SYSCALL_BASE+186) -# endif -# ifndef __NR_sendfile -# define __NR_sendfile (__NR_SYSCALL_BASE+187) -# endif -# ifndef __NR_vfork -# define __NR_vfork (__NR_SYSCALL_BASE+190) -# endif -# ifndef __NR_ugetrlimit -# define __NR_ugetrlimit (__NR_SYSCALL_BASE+191) -# endif -# ifndef __NR_mmap2 -# define __NR_mmap2 (__NR_SYSCALL_BASE+192) -# endif -# ifndef __NR_truncate64 -# define __NR_truncate64 (__NR_SYSCALL_BASE+193) -# endif -# ifndef __NR_ftruncate64 -# define __NR_ftruncate64 (__NR_SYSCALL_BASE+194) -# endif -# ifndef __NR_stat64 -# define __NR_stat64 (__NR_SYSCALL_BASE+195) -# endif -# ifndef __NR_lstat64 -# define __NR_lstat64 (__NR_SYSCALL_BASE+196) -# endif -# ifndef __NR_fstat64 -# define __NR_fstat64 (__NR_SYSCALL_BASE+197) -# endif -# ifndef __NR_lchown32 -# define __NR_lchown32 (__NR_SYSCALL_BASE+198) -# endif -# ifndef __NR_getuid32 -# define __NR_getuid32 (__NR_SYSCALL_BASE+199) -# endif -# ifndef __NR_getgid32 -# define __NR_getgid32 (__NR_SYSCALL_BASE+200) -# endif -# ifndef __NR_geteuid32 -# define __NR_geteuid32 (__NR_SYSCALL_BASE+201) -# endif -# ifndef __NR_getegid32 -# define __NR_getegid32 (__NR_SYSCALL_BASE+202) -# endif -# ifndef __NR_setreuid32 -# define __NR_setreuid32 (__NR_SYSCALL_BASE+203) -# endif -# ifndef __NR_setregid32 -# define __NR_setregid32 (__NR_SYSCALL_BASE+204) -# endif -# ifndef __NR_getgroups32 -# define __NR_getgroups32 (__NR_SYSCALL_BASE+205) -# endif -# ifndef __NR_setgroups32 -# define __NR_setgroups32 (__NR_SYSCALL_BASE+206) -# endif -# ifndef __NR_fchown32 -# define __NR_fchown32 (__NR_SYSCALL_BASE+207) -# endif -# ifndef __NR_setresuid32 -# define __NR_setresuid32 (__NR_SYSCALL_BASE+208) -# endif -# ifndef __NR_getresuid32 -# define __NR_getresuid32 (__NR_SYSCALL_BASE+209) -# endif -# ifndef __NR_setresgid32 -# define __NR_setresgid32 (__NR_SYSCALL_BASE+210) -# endif -# ifndef __NR_getresgid32 -# define __NR_getresgid32 (__NR_SYSCALL_BASE+211) -# endif -# ifndef __NR_chown32 -# define __NR_chown32 (__NR_SYSCALL_BASE+212) -# endif -# ifndef __NR_setuid32 -# define __NR_setuid32 (__NR_SYSCALL_BASE+213) -# endif -# ifndef __NR_setgid32 -# define __NR_setgid32 (__NR_SYSCALL_BASE+214) -# endif -# ifndef __NR_setfsuid32 -# define __NR_setfsuid32 (__NR_SYSCALL_BASE+215) -# endif -# ifndef __NR_setfsgid32 -# define __NR_setfsgid32 (__NR_SYSCALL_BASE+216) -# endif -# ifndef __NR_getdents64 -# define __NR_getdents64 (__NR_SYSCALL_BASE+217) -# endif -# ifndef __NR_pivot_root -# define __NR_pivot_root (__NR_SYSCALL_BASE+218) -# endif -# ifndef __NR_mincore -# define __NR_mincore (__NR_SYSCALL_BASE+219) -# endif -# ifndef __NR_madvise -# define __NR_madvise (__NR_SYSCALL_BASE+220) -# endif -# ifndef __NR_fcntl64 -# define __NR_fcntl64 (__NR_SYSCALL_BASE+221) -# endif -# ifndef __NR_gettid -# define __NR_gettid (__NR_SYSCALL_BASE+224) -# endif -# ifndef __NR_readahead -# define __NR_readahead (__NR_SYSCALL_BASE+225) -# endif -# ifndef __NR_setxattr -# define __NR_setxattr (__NR_SYSCALL_BASE+226) -# endif -# ifndef __NR_lsetxattr -# define __NR_lsetxattr (__NR_SYSCALL_BASE+227) -# endif -# ifndef __NR_fsetxattr -# define __NR_fsetxattr (__NR_SYSCALL_BASE+228) -# endif -# ifndef __NR_getxattr -# define __NR_getxattr (__NR_SYSCALL_BASE+229) -# endif -# ifndef __NR_lgetxattr -# define __NR_lgetxattr (__NR_SYSCALL_BASE+230) -# endif -# ifndef __NR_fgetxattr -# define __NR_fgetxattr (__NR_SYSCALL_BASE+231) -# endif -# ifndef __NR_listxattr -# define __NR_listxattr (__NR_SYSCALL_BASE+232) -# endif -# ifndef __NR_llistxattr -# define __NR_llistxattr (__NR_SYSCALL_BASE+233) -# endif -# ifndef __NR_flistxattr -# define __NR_flistxattr (__NR_SYSCALL_BASE+234) -# endif -# ifndef __NR_removexattr -# define __NR_removexattr (__NR_SYSCALL_BASE+235) -# endif -# ifndef __NR_lremovexattr -# define __NR_lremovexattr (__NR_SYSCALL_BASE+236) -# endif -# ifndef __NR_fremovexattr -# define __NR_fremovexattr (__NR_SYSCALL_BASE+237) -# endif -# ifndef __NR_tkill -# define __NR_tkill (__NR_SYSCALL_BASE+238) -# endif -# ifndef __NR_sendfile64 -# define __NR_sendfile64 (__NR_SYSCALL_BASE+239) -# endif -# ifndef __NR_futex -# define __NR_futex (__NR_SYSCALL_BASE+240) -# endif -# ifndef __NR_sched_setaffinity -# define __NR_sched_setaffinity (__NR_SYSCALL_BASE+241) -# endif -# ifndef __NR_sched_getaffinity -# define __NR_sched_getaffinity (__NR_SYSCALL_BASE+242) -# endif -# ifndef __NR_io_setup -# define __NR_io_setup (__NR_SYSCALL_BASE+243) -# endif -# ifndef __NR_io_destroy -# define __NR_io_destroy (__NR_SYSCALL_BASE+244) -# endif -# ifndef __NR_io_getevents -# define __NR_io_getevents (__NR_SYSCALL_BASE+245) -# endif -# ifndef __NR_io_submit -# define __NR_io_submit (__NR_SYSCALL_BASE+246) -# endif -# ifndef __NR_io_cancel -# define __NR_io_cancel (__NR_SYSCALL_BASE+247) -# endif -# ifndef __NR_exit_group -# define __NR_exit_group (__NR_SYSCALL_BASE+248) -# endif -# ifndef __NR_lookup_dcookie -# define __NR_lookup_dcookie (__NR_SYSCALL_BASE+249) -# endif -# ifndef __NR_epoll_create -# define __NR_epoll_create (__NR_SYSCALL_BASE+250) -# endif -# ifndef __NR_epoll_ctl -# define __NR_epoll_ctl (__NR_SYSCALL_BASE+251) -# endif -# ifndef __NR_epoll_wait -# define __NR_epoll_wait (__NR_SYSCALL_BASE+252) -# endif -# ifndef __NR_remap_file_pages -# define __NR_remap_file_pages (__NR_SYSCALL_BASE+253) -# endif -# ifndef __NR_set_tid_address -# define __NR_set_tid_address (__NR_SYSCALL_BASE+256) -# endif -# ifndef __NR_timer_create -# define __NR_timer_create (__NR_SYSCALL_BASE+257) -# endif -# ifndef __NR_timer_settime -# define __NR_timer_settime (__NR_SYSCALL_BASE+258) -# endif -# ifndef __NR_timer_gettime -# define __NR_timer_gettime (__NR_SYSCALL_BASE+259) -# endif -# ifndef __NR_timer_getoverrun -# define __NR_timer_getoverrun (__NR_SYSCALL_BASE+260) -# endif -# ifndef __NR_timer_delete -# define __NR_timer_delete (__NR_SYSCALL_BASE+261) -# endif -# ifndef __NR_clock_settime -# define __NR_clock_settime (__NR_SYSCALL_BASE+262) -# endif -# ifndef __NR_clock_gettime -# define __NR_clock_gettime (__NR_SYSCALL_BASE+263) -# endif -# ifndef __NR_clock_getres -# define __NR_clock_getres (__NR_SYSCALL_BASE+264) -# endif -# ifndef __NR_clock_nanosleep -# define __NR_clock_nanosleep (__NR_SYSCALL_BASE+265) -# endif -# ifndef __NR_statfs64 -# define __NR_statfs64 (__NR_SYSCALL_BASE+266) -# endif -# ifndef __NR_fstatfs64 -# define __NR_fstatfs64 (__NR_SYSCALL_BASE+267) -# endif -# ifndef __NR_tgkill -# define __NR_tgkill (__NR_SYSCALL_BASE+268) -# endif -# ifndef __NR_utimes -# define __NR_utimes (__NR_SYSCALL_BASE+269) -# endif -# ifndef __NR_arm_fadvise64_64 -# define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE+270) -# endif -# ifndef __NR_pciconfig_iobase -# define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271) -# endif -# ifndef __NR_pciconfig_read -# define __NR_pciconfig_read (__NR_SYSCALL_BASE+272) -# endif -# ifndef __NR_pciconfig_write -# define __NR_pciconfig_write (__NR_SYSCALL_BASE+273) -# endif -# ifndef __NR_mq_open -# define __NR_mq_open (__NR_SYSCALL_BASE+274) -# endif -# ifndef __NR_mq_unlink -# define __NR_mq_unlink (__NR_SYSCALL_BASE+275) -# endif -# ifndef __NR_mq_timedsend -# define __NR_mq_timedsend (__NR_SYSCALL_BASE+276) -# endif -# ifndef __NR_mq_timedreceive -# define __NR_mq_timedreceive (__NR_SYSCALL_BASE+277) -# endif -# ifndef __NR_mq_notify -# define __NR_mq_notify (__NR_SYSCALL_BASE+278) -# endif -# ifndef __NR_mq_getsetattr -# define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279) -# endif -# ifndef __NR_waitid -# define __NR_waitid (__NR_SYSCALL_BASE+280) -# endif -# ifndef __NR_socket -# define __NR_socket (__NR_SYSCALL_BASE+281) -# endif -# ifndef __NR_bind -# define __NR_bind (__NR_SYSCALL_BASE+282) -# endif -# ifndef __NR_connect -# define __NR_connect (__NR_SYSCALL_BASE+283) -# endif -# ifndef __NR_listen -# define __NR_listen (__NR_SYSCALL_BASE+284) -# endif -# ifndef __NR_accept -# define __NR_accept (__NR_SYSCALL_BASE+285) -# endif -# ifndef __NR_getsockname -# define __NR_getsockname (__NR_SYSCALL_BASE+286) -# endif -# ifndef __NR_getpeername -# define __NR_getpeername (__NR_SYSCALL_BASE+287) -# endif -# ifndef __NR_socketpair -# define __NR_socketpair (__NR_SYSCALL_BASE+288) -# endif -# ifndef __NR_send -# define __NR_send (__NR_SYSCALL_BASE+289) -# endif -# ifndef __NR_sendto -# define __NR_sendto (__NR_SYSCALL_BASE+290) -# endif -# ifndef __NR_recv -# define __NR_recv (__NR_SYSCALL_BASE+291) -# endif -# ifndef __NR_recvfrom -# define __NR_recvfrom (__NR_SYSCALL_BASE+292) -# endif -# ifndef __NR_shutdown -# define __NR_shutdown (__NR_SYSCALL_BASE+293) -# endif -# ifndef __NR_setsockopt -# define __NR_setsockopt (__NR_SYSCALL_BASE+294) -# endif -# ifndef __NR_getsockopt -# define __NR_getsockopt (__NR_SYSCALL_BASE+295) -# endif -# ifndef __NR_sendmsg -# define __NR_sendmsg (__NR_SYSCALL_BASE+296) -# endif -# ifndef __NR_recvmsg -# define __NR_recvmsg (__NR_SYSCALL_BASE+297) -# endif -# ifndef __NR_semop -# define __NR_semop (__NR_SYSCALL_BASE+298) -# endif -# ifndef __NR_semget -# define __NR_semget (__NR_SYSCALL_BASE+299) -# endif -# ifndef __NR_semctl -# define __NR_semctl (__NR_SYSCALL_BASE+300) -# endif -# ifndef __NR_msgsnd -# define __NR_msgsnd (__NR_SYSCALL_BASE+301) -# endif -# ifndef __NR_msgrcv -# define __NR_msgrcv (__NR_SYSCALL_BASE+302) -# endif -# ifndef __NR_msgget -# define __NR_msgget (__NR_SYSCALL_BASE+303) -# endif -# ifndef __NR_msgctl -# define __NR_msgctl (__NR_SYSCALL_BASE+304) -# endif -# ifndef __NR_shmat -# define __NR_shmat (__NR_SYSCALL_BASE+305) -# endif -# ifndef __NR_shmdt -# define __NR_shmdt (__NR_SYSCALL_BASE+306) -# endif -# ifndef __NR_shmget -# define __NR_shmget (__NR_SYSCALL_BASE+307) -# endif -# ifndef __NR_shmctl -# define __NR_shmctl (__NR_SYSCALL_BASE+308) -# endif -# ifndef __NR_add_key -# define __NR_add_key (__NR_SYSCALL_BASE+309) -# endif -# ifndef __NR_request_key -# define __NR_request_key (__NR_SYSCALL_BASE+310) -# endif -# ifndef __NR_keyctl -# define __NR_keyctl (__NR_SYSCALL_BASE+311) -# endif -# ifndef __NR_semtimedop -# define __NR_semtimedop (__NR_SYSCALL_BASE+312) -# endif -# ifndef __NR_vserver -# define __NR_vserver (__NR_SYSCALL_BASE+313) -# endif -# ifndef __NR_ioprio_set -# define __NR_ioprio_set (__NR_SYSCALL_BASE+314) -# endif -# ifndef __NR_ioprio_get -# define __NR_ioprio_get (__NR_SYSCALL_BASE+315) -# endif -# ifndef __NR_inotify_init -# define __NR_inotify_init (__NR_SYSCALL_BASE+316) -# endif -# ifndef __NR_inotify_add_watch -# define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317) -# endif -# ifndef __NR_inotify_rm_watch -# define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318) -# endif -# ifndef __NR_mbind -# define __NR_mbind (__NR_SYSCALL_BASE+319) -# endif -# ifndef __NR_get_mempolicy -# define __NR_get_mempolicy (__NR_SYSCALL_BASE+320) -# endif -# ifndef __NR_set_mempolicy -# define __NR_set_mempolicy (__NR_SYSCALL_BASE+321) -# endif -# ifndef __NR_openat -# define __NR_openat (__NR_SYSCALL_BASE+322) -# endif -# ifndef __NR_mkdirat -# define __NR_mkdirat (__NR_SYSCALL_BASE+323) -# endif -# ifndef __NR_mknodat -# define __NR_mknodat (__NR_SYSCALL_BASE+324) -# endif -# ifndef __NR_fchownat -# define __NR_fchownat (__NR_SYSCALL_BASE+325) -# endif -# ifndef __NR_futimesat -# define __NR_futimesat (__NR_SYSCALL_BASE+326) -# endif -# ifndef __NR_fstatat64 -# define __NR_fstatat64 (__NR_SYSCALL_BASE+327) -# endif -# ifndef __NR_unlinkat -# define __NR_unlinkat (__NR_SYSCALL_BASE+328) -# endif -# ifndef __NR_renameat -# define __NR_renameat (__NR_SYSCALL_BASE+329) -# endif -# ifndef __NR_linkat -# define __NR_linkat (__NR_SYSCALL_BASE+330) -# endif -# ifndef __NR_symlinkat -# define __NR_symlinkat (__NR_SYSCALL_BASE+331) -# endif -# ifndef __NR_readlinkat -# define __NR_readlinkat (__NR_SYSCALL_BASE+332) -# endif -# ifndef __NR_fchmodat -# define __NR_fchmodat (__NR_SYSCALL_BASE+333) -# endif -# ifndef __NR_faccessat -# define __NR_faccessat (__NR_SYSCALL_BASE+334) -# endif -# ifndef __NR_pselect6 -# define __NR_pselect6 (__NR_SYSCALL_BASE+335) -# endif -# ifndef __NR_ppoll -# define __NR_ppoll (__NR_SYSCALL_BASE+336) -# endif -# ifndef __NR_unshare -# define __NR_unshare (__NR_SYSCALL_BASE+337) -# endif -# ifndef __NR_set_robust_list -# define __NR_set_robust_list (__NR_SYSCALL_BASE+338) -# endif -# ifndef __NR_get_robust_list -# define __NR_get_robust_list (__NR_SYSCALL_BASE+339) -# endif -# ifndef __NR_splice -# define __NR_splice (__NR_SYSCALL_BASE+340) -# endif -# ifndef __NR_arm_sync_file_range -# define __NR_arm_sync_file_range (__NR_SYSCALL_BASE+341) -# endif -# ifndef __NR_sync_file_range2 -# define __NR_sync_file_range2 __NR_arm_sync_file_range -# endif -# ifndef __NR_tee -# define __NR_tee (__NR_SYSCALL_BASE+342) -# endif -# ifndef __NR_vmsplice -# define __NR_vmsplice (__NR_SYSCALL_BASE+343) -# endif -# ifndef __NR_move_pages -# define __NR_move_pages (__NR_SYSCALL_BASE+344) -# endif -# ifndef __NR_getcpu -# define __NR_getcpu (__NR_SYSCALL_BASE+345) -# endif -# ifndef __NR_epoll_pwait -# define __NR_epoll_pwait (__NR_SYSCALL_BASE+346) -# endif -# ifndef __NR_kexec_load -# define __NR_kexec_load (__NR_SYSCALL_BASE+347) -# endif -# ifndef __NR_utimensat -# define __NR_utimensat (__NR_SYSCALL_BASE+348) -# endif -# ifndef __NR_signalfd -# define __NR_signalfd (__NR_SYSCALL_BASE+349) -# endif -# ifndef __NR_timerfd_create -# define __NR_timerfd_create (__NR_SYSCALL_BASE+350) -# endif -# ifndef __NR_eventfd -# define __NR_eventfd (__NR_SYSCALL_BASE+351) -# endif -# ifndef __NR_fallocate -# define __NR_fallocate (__NR_SYSCALL_BASE+352) -# endif -# ifndef __NR_timerfd_settime -# define __NR_timerfd_settime (__NR_SYSCALL_BASE+353) -# endif -# ifndef __NR_timerfd_gettime -# define __NR_timerfd_gettime (__NR_SYSCALL_BASE+354) -# endif -# ifndef __NR_signalfd4 -# define __NR_signalfd4 (__NR_SYSCALL_BASE+355) -# endif -# ifndef __NR_eventfd2 -# define __NR_eventfd2 (__NR_SYSCALL_BASE+356) -# endif -# ifndef __NR_epoll_create1 -# define __NR_epoll_create1 (__NR_SYSCALL_BASE+357) -# endif -# ifndef __NR_dup3 -# define __NR_dup3 (__NR_SYSCALL_BASE+358) -# endif -# ifndef __NR_pipe2 -# define __NR_pipe2 (__NR_SYSCALL_BASE+359) -# endif -# ifndef __NR_inotify_init1 -# define __NR_inotify_init1 (__NR_SYSCALL_BASE+360) -# endif -# ifndef __NR_preadv -# define __NR_preadv (__NR_SYSCALL_BASE+361) -# endif -# ifndef __NR_pwritev -# define __NR_pwritev (__NR_SYSCALL_BASE+362) -# endif -# ifndef __NR_rt_tgsigqueueinfo -# define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363) -# endif -# ifndef __NR_perf_event_open -# define __NR_perf_event_open (__NR_SYSCALL_BASE+364) -# endif -# ifndef __NR_recvmmsg -# define __NR_recvmmsg (__NR_SYSCALL_BASE+365) -# endif -# ifndef __NR_accept4 -# define __NR_accept4 (__NR_SYSCALL_BASE+366) -# endif -# ifndef __NR_fanotify_init -# define __NR_fanotify_init (__NR_SYSCALL_BASE+367) -# endif -# ifndef __NR_fanotify_mark -# define __NR_fanotify_mark (__NR_SYSCALL_BASE+368) -# endif -# ifndef __NR_prlimit64 -# define __NR_prlimit64 (__NR_SYSCALL_BASE+369) -# endif -# ifndef __NR_getrandom -# define __NR_getrandom (__NR_SYSCALL_BASE+384) -# endif -#endif - - -#ifdef __hppa__ -# ifndef __NR_openat -# define __NR_openat 275 -# endif -# ifndef __NR_mkdirat -# define __NR_mkdirat (__NR_openat + 1) -# endif -# ifndef __NR_mknodat -# define __NR_mknodat (__NR_openat + 2) -# endif -# ifndef __NR_fchownat -# define __NR_fchownat (__NR_openat + 3) -# endif -# ifndef __NR_futimesat -# define __NR_futimesat (__NR_openat + 4) -# endif -# ifndef __NR_newfstatat -# define __NR_newfstatat (__NR_openat + 5) -# endif -# ifndef __NR_fstatat64 -# define __NR_fstatat64 (__NR_openat + 5) -# endif -# ifndef __NR_unlinkat -# define __NR_unlinkat (__NR_openat + 6) -# endif -# ifndef __NR_renameat -# define __NR_renameat (__NR_openat + 7) -# endif -# ifndef __NR_linkat -# define __NR_linkat (__NR_openat + 8) -# endif -# ifndef __NR_symlinkat -# define __NR_symlinkat (__NR_openat + 9) -# endif -# ifndef __NR_readlinkat -# define __NR_readlinkat (__NR_openat + 10) -# endif -# ifndef __NR_fchmodat -# define __NR_fchmodat (__NR_openat + 11) -# endif -# ifndef __NR_faccessat -# define __NR_faccessat (__NR_openat + 12) -# endif -# ifndef __NR_splice -# define __NR_splice 291 -# endif -# ifndef __NR_tee -# define __NR_tee 293 -# endif -# ifndef __NR_vmsplice -# define __NR_vmsplice 294 -# endif -#endif - - -#ifdef __i386__ -# ifndef __NR_restart_syscall -# define __NR_restart_syscall 0 -# endif -# ifndef __NR_exit -# define __NR_exit 1 -# endif -# ifndef __NR_fork -# define __NR_fork 2 -# endif -# ifndef __NR_read -# define __NR_read 3 -# endif -# ifndef __NR_write -# define __NR_write 4 -# endif -# ifndef __NR_open -# define __NR_open 5 -# endif -# ifndef __NR_close -# define __NR_close 6 -# endif -# ifndef __NR_waitpid -# define __NR_waitpid 7 -# endif -# ifndef __NR_creat -# define __NR_creat 8 -# endif -# ifndef __NR_link -# define __NR_link 9 -# endif -# ifndef __NR_unlink -# define __NR_unlink 10 -# endif -# ifndef __NR_execve -# define __NR_execve 11 -# endif -# ifndef __NR_chdir -# define __NR_chdir 12 -# endif -# ifndef __NR_time -# define __NR_time 13 -# endif -# ifndef __NR_mknod -# define __NR_mknod 14 -# endif -# ifndef __NR_chmod -# define __NR_chmod 15 -# endif -# ifndef __NR_lchown -# define __NR_lchown 16 -# endif -# ifndef __NR_break -# define __NR_break 17 -# endif -# ifndef __NR_oldstat -# define __NR_oldstat 18 -# endif -# ifndef __NR_lseek -# define __NR_lseek 19 -# endif -# ifndef __NR_getpid -# define __NR_getpid 20 -# endif -# ifndef __NR_mount -# define __NR_mount 21 -# endif -# ifndef __NR_umount -# define __NR_umount 22 -# endif -# ifndef __NR_setuid -# define __NR_setuid 23 -# endif -# ifndef __NR_getuid -# define __NR_getuid 24 -# endif -# ifndef __NR_stime -# define __NR_stime 25 -# endif -# ifndef __NR_ptrace -# define __NR_ptrace 26 -# endif -# ifndef __NR_alarm -# define __NR_alarm 27 -# endif -# ifndef __NR_oldfstat -# define __NR_oldfstat 28 -# endif -# ifndef __NR_pause -# define __NR_pause 29 -# endif -# ifndef __NR_utime -# define __NR_utime 30 -# endif -# ifndef __NR_stty -# define __NR_stty 31 -# endif -# ifndef __NR_gtty -# define __NR_gtty 32 -# endif -# ifndef __NR_access -# define __NR_access 33 -# endif -# ifndef __NR_nice -# define __NR_nice 34 -# endif -# ifndef __NR_ftime -# define __NR_ftime 35 -# endif -# ifndef __NR_sync -# define __NR_sync 36 -# endif -# ifndef __NR_kill -# define __NR_kill 37 -# endif -# ifndef __NR_rename -# define __NR_rename 38 -# endif -# ifndef __NR_mkdir -# define __NR_mkdir 39 -# endif -# ifndef __NR_rmdir -# define __NR_rmdir 40 -# endif -# ifndef __NR_dup -# define __NR_dup 41 -# endif -# ifndef __NR_pipe -# define __NR_pipe 42 -# endif -# ifndef __NR_times -# define __NR_times 43 -# endif -# ifndef __NR_prof -# define __NR_prof 44 -# endif -# ifndef __NR_brk -# define __NR_brk 45 -# endif -# ifndef __NR_setgid -# define __NR_setgid 46 -# endif -# ifndef __NR_getgid -# define __NR_getgid 47 -# endif -# ifndef __NR_signal -# define __NR_signal 48 -# endif -# ifndef __NR_geteuid -# define __NR_geteuid 49 -# endif -# ifndef __NR_getegid -# define __NR_getegid 50 -# endif -# ifndef __NR_acct -# define __NR_acct 51 -# endif -# ifndef __NR_umount2 -# define __NR_umount2 52 -# endif -# ifndef __NR_lock -# define __NR_lock 53 -# endif -# ifndef __NR_ioctl -# define __NR_ioctl 54 -# endif -# ifndef __NR_fcntl -# define __NR_fcntl 55 -# endif -# ifndef __NR_mpx -# define __NR_mpx 56 -# endif -# ifndef __NR_setpgid -# define __NR_setpgid 57 -# endif -# ifndef __NR_ulimit -# define __NR_ulimit 58 -# endif -# ifndef __NR_oldolduname -# define __NR_oldolduname 59 -# endif -# ifndef __NR_umask -# define __NR_umask 60 -# endif -# ifndef __NR_chroot -# define __NR_chroot 61 -# endif -# ifndef __NR_ustat -# define __NR_ustat 62 -# endif -# ifndef __NR_dup2 -# define __NR_dup2 63 -# endif -# ifndef __NR_getppid -# define __NR_getppid 64 -# endif -# ifndef __NR_getpgrp -# define __NR_getpgrp 65 -# endif -# ifndef __NR_setsid -# define __NR_setsid 66 -# endif -# ifndef __NR_sigaction -# define __NR_sigaction 67 -# endif -# ifndef __NR_sgetmask -# define __NR_sgetmask 68 -# endif -# ifndef __NR_ssetmask -# define __NR_ssetmask 69 -# endif -# ifndef __NR_setreuid -# define __NR_setreuid 70 -# endif -# ifndef __NR_setregid -# define __NR_setregid 71 -# endif -# ifndef __NR_sigsuspend -# define __NR_sigsuspend 72 -# endif -# ifndef __NR_sigpending -# define __NR_sigpending 73 -# endif -# ifndef __NR_sethostname -# define __NR_sethostname 74 -# endif -# ifndef __NR_setrlimit -# define __NR_setrlimit 75 -# endif -# ifndef __NR_getrlimit -# define __NR_getrlimit 76 -# endif -# ifndef __NR_getrusage -# define __NR_getrusage 77 -# endif -# ifndef __NR_gettimeofday -# define __NR_gettimeofday 78 -# endif -# ifndef __NR_settimeofday -# define __NR_settimeofday 79 -# endif -# ifndef __NR_getgroups -# define __NR_getgroups 80 -# endif -# ifndef __NR_setgroups -# define __NR_setgroups 81 -# endif -# ifndef __NR_select -# define __NR_select 82 -# endif -# ifndef __NR_symlink -# define __NR_symlink 83 -# endif -# ifndef __NR_oldlstat -# define __NR_oldlstat 84 -# endif -# ifndef __NR_readlink -# define __NR_readlink 85 -# endif -# ifndef __NR_uselib -# define __NR_uselib 86 -# endif -# ifndef __NR_swapon -# define __NR_swapon 87 -# endif -# ifndef __NR_reboot -# define __NR_reboot 88 -# endif -# ifndef __NR_readdir -# define __NR_readdir 89 -# endif -# ifndef __NR_mmap -# define __NR_mmap 90 -# endif -# ifndef __NR_munmap -# define __NR_munmap 91 -# endif -# ifndef __NR_truncate -# define __NR_truncate 92 -# endif -# ifndef __NR_ftruncate -# define __NR_ftruncate 93 -# endif -# ifndef __NR_fchmod -# define __NR_fchmod 94 -# endif -# ifndef __NR_fchown -# define __NR_fchown 95 -# endif -# ifndef __NR_getpriority -# define __NR_getpriority 96 -# endif -# ifndef __NR_setpriority -# define __NR_setpriority 97 -# endif -# ifndef __NR_profil -# define __NR_profil 98 -# endif -# ifndef __NR_statfs -# define __NR_statfs 99 -# endif -# ifndef __NR_fstatfs -# define __NR_fstatfs 100 -# endif -# ifndef __NR_ioperm -# define __NR_ioperm 101 -# endif -# ifndef __NR_socketcall -# define __NR_socketcall 102 -# endif -# ifndef __NR_syslog -# define __NR_syslog 103 -# endif -# ifndef __NR_setitimer -# define __NR_setitimer 104 -# endif -# ifndef __NR_getitimer -# define __NR_getitimer 105 -# endif -# ifndef __NR_stat -# define __NR_stat 106 -# endif -# ifndef __NR_lstat -# define __NR_lstat 107 -# endif -# ifndef __NR_fstat -# define __NR_fstat 108 -# endif -# ifndef __NR_olduname -# define __NR_olduname 109 -# endif -# ifndef __NR_iopl -# define __NR_iopl 110 -# endif -# ifndef __NR_vhangup -# define __NR_vhangup 111 -# endif -# ifndef __NR_idle -# define __NR_idle 112 -# endif -# ifndef __NR_vm86old -# define __NR_vm86old 113 -# endif -# ifndef __NR_wait4 -# define __NR_wait4 114 -# endif -# ifndef __NR_swapoff -# define __NR_swapoff 115 -# endif -# ifndef __NR_sysinfo -# define __NR_sysinfo 116 -# endif -# ifndef __NR_ipc -# define __NR_ipc 117 -# endif -# ifndef __NR_fsync -# define __NR_fsync 118 -# endif -# ifndef __NR_sigreturn -# define __NR_sigreturn 119 -# endif -# ifndef __NR_clone -# define __NR_clone 120 -# endif -# ifndef __NR_setdomainname -# define __NR_setdomainname 121 -# endif -# ifndef __NR_uname -# define __NR_uname 122 -# endif -# ifndef __NR_modify_ldt -# define __NR_modify_ldt 123 -# endif -# ifndef __NR_adjtimex -# define __NR_adjtimex 124 -# endif -# ifndef __NR_mprotect -# define __NR_mprotect 125 -# endif -# ifndef __NR_sigprocmask -# define __NR_sigprocmask 126 -# endif -# ifndef __NR_create_module -# define __NR_create_module 127 -# endif -# ifndef __NR_init_module -# define __NR_init_module 128 -# endif -# ifndef __NR_delete_module -# define __NR_delete_module 129 -# endif -# ifndef __NR_get_kernel_syms -# define __NR_get_kernel_syms 130 -# endif -# ifndef __NR_quotactl -# define __NR_quotactl 131 -# endif -# ifndef __NR_getpgid -# define __NR_getpgid 132 -# endif -# ifndef __NR_fchdir -# define __NR_fchdir 133 -# endif -# ifndef __NR_bdflush -# define __NR_bdflush 134 -# endif -# ifndef __NR_sysfs -# define __NR_sysfs 135 -# endif -# ifndef __NR_personality -# define __NR_personality 136 -# endif -# ifndef __NR_afs_syscall -# define __NR_afs_syscall 137 -# endif -# ifndef __NR_setfsuid -# define __NR_setfsuid 138 -# endif -# ifndef __NR_setfsgid -# define __NR_setfsgid 139 -# endif -# ifndef __NR_getdents -# define __NR_getdents 141 -# endif -# ifndef __NR_flock -# define __NR_flock 143 -# endif -# ifndef __NR_msync -# define __NR_msync 144 -# endif -# ifndef __NR_readv -# define __NR_readv 145 -# endif -# ifndef __NR_writev -# define __NR_writev 146 -# endif -# ifndef __NR_getsid -# define __NR_getsid 147 -# endif -# ifndef __NR_fdatasync -# define __NR_fdatasync 148 -# endif -# ifndef __NR_mlock -# define __NR_mlock 150 -# endif -# ifndef __NR_munlock -# define __NR_munlock 151 -# endif -# ifndef __NR_mlockall -# define __NR_mlockall 152 -# endif -# ifndef __NR_munlockall -# define __NR_munlockall 153 -# endif -# ifndef __NR_sched_setparam -# define __NR_sched_setparam 154 -# endif -# ifndef __NR_sched_getparam -# define __NR_sched_getparam 155 -# endif -# ifndef __NR_sched_setscheduler -# define __NR_sched_setscheduler 156 -# endif -# ifndef __NR_sched_getscheduler -# define __NR_sched_getscheduler 157 -# endif -# ifndef __NR_sched_yield -# define __NR_sched_yield 158 -# endif -# ifndef __NR_sched_get_priority_max -# define __NR_sched_get_priority_max 159 -# endif -# ifndef __NR_sched_get_priority_min -# define __NR_sched_get_priority_min 160 -# endif -# ifndef __NR_sched_rr_get_interval -# define __NR_sched_rr_get_interval 161 -# endif -# ifndef __NR_nanosleep -# define __NR_nanosleep 162 -# endif -# ifndef __NR_mremap -# define __NR_mremap 163 -# endif -# ifndef __NR_setresuid -# define __NR_setresuid 164 -# endif -# ifndef __NR_getresuid -# define __NR_getresuid 165 -# endif -# ifndef __NR_vm86 -# define __NR_vm86 166 -# endif -# ifndef __NR_query_module -# define __NR_query_module 167 -# endif -# ifndef __NR_poll -# define __NR_poll 168 -# endif -# ifndef __NR_nfsservctl -# define __NR_nfsservctl 169 -# endif -# ifndef __NR_setresgid -# define __NR_setresgid 170 -# endif -# ifndef __NR_getresgid -# define __NR_getresgid 171 -# endif -# ifndef __NR_prctl -# define __NR_prctl 172 -# endif -# ifndef __NR_rt_sigreturn -# define __NR_rt_sigreturn 173 -# endif -# ifndef __NR_rt_sigaction -# define __NR_rt_sigaction 174 -# endif -# ifndef __NR_rt_sigprocmask -# define __NR_rt_sigprocmask 175 -# endif -# ifndef __NR_rt_sigpending -# define __NR_rt_sigpending 176 -# endif -# ifndef __NR_rt_sigtimedwait -# define __NR_rt_sigtimedwait 177 -# endif -# ifndef __NR_rt_sigqueueinfo -# define __NR_rt_sigqueueinfo 178 -# endif -# ifndef __NR_rt_sigsuspend -# define __NR_rt_sigsuspend 179 -# endif -# ifndef __NR_pread64 -# define __NR_pread64 180 -# endif -# ifndef __NR_pwrite64 -# define __NR_pwrite64 181 -# endif -# ifndef __NR_chown -# define __NR_chown 182 -# endif -# ifndef __NR_getcwd -# define __NR_getcwd 183 -# endif -# ifndef __NR_capget -# define __NR_capget 184 -# endif -# ifndef __NR_capset -# define __NR_capset 185 -# endif -# ifndef __NR_sigaltstack -# define __NR_sigaltstack 186 -# endif -# ifndef __NR_sendfile -# define __NR_sendfile 187 -# endif -# ifndef __NR_getpmsg -# define __NR_getpmsg 188 -# endif -# ifndef __NR_putpmsg -# define __NR_putpmsg 189 -# endif -# ifndef __NR_vfork -# define __NR_vfork 190 -# endif -# ifndef __NR_ugetrlimit -# define __NR_ugetrlimit 191 -# endif -# ifndef __NR_mmap2 -# define __NR_mmap2 192 -# endif -# ifndef __NR_truncate64 -# define __NR_truncate64 193 -# endif -# ifndef __NR_ftruncate64 -# define __NR_ftruncate64 194 -# endif -# ifndef __NR_stat64 -# define __NR_stat64 195 -# endif -# ifndef __NR_lstat64 -# define __NR_lstat64 196 -# endif -# ifndef __NR_fstat64 -# define __NR_fstat64 197 -# endif -# ifndef __NR_lchown32 -# define __NR_lchown32 198 -# endif -# ifndef __NR_getuid32 -# define __NR_getuid32 199 -# endif -# ifndef __NR_getgid32 -# define __NR_getgid32 200 -# endif -# ifndef __NR_geteuid32 -# define __NR_geteuid32 201 -# endif -# ifndef __NR_getegid32 -# define __NR_getegid32 202 -# endif -# ifndef __NR_setreuid32 -# define __NR_setreuid32 203 -# endif -# ifndef __NR_setregid32 -# define __NR_setregid32 204 -# endif -# ifndef __NR_getgroups32 -# define __NR_getgroups32 205 -# endif -# ifndef __NR_setgroups32 -# define __NR_setgroups32 206 -# endif -# ifndef __NR_fchown32 -# define __NR_fchown32 207 -# endif -# ifndef __NR_setresuid32 -# define __NR_setresuid32 208 -# endif -# ifndef __NR_getresuid32 -# define __NR_getresuid32 209 -# endif -# ifndef __NR_setresgid32 -# define __NR_setresgid32 210 -# endif -# ifndef __NR_getresgid32 -# define __NR_getresgid32 211 -# endif -# ifndef __NR_chown32 -# define __NR_chown32 212 -# endif -# ifndef __NR_setuid32 -# define __NR_setuid32 213 -# endif -# ifndef __NR_setgid32 -# define __NR_setgid32 214 -# endif -# ifndef __NR_setfsuid32 -# define __NR_setfsuid32 215 -# endif -# ifndef __NR_setfsgid32 -# define __NR_setfsgid32 216 -# endif -# ifndef __NR_pivot_root -# define __NR_pivot_root 217 -# endif -# ifndef __NR_mincore -# define __NR_mincore 218 -# endif -# ifndef __NR_madvise -# define __NR_madvise 219 -# endif -# ifndef __NR_madvise1 -# define __NR_madvise1 219 -# endif -# ifndef __NR_getdents64 -# define __NR_getdents64 220 -# endif -# ifndef __NR_fcntl64 -# define __NR_fcntl64 221 -# endif -# ifndef __NR_gettid -# define __NR_gettid 224 -# endif -# ifndef __NR_readahead -# define __NR_readahead 225 -# endif -# ifndef __NR_setxattr -# define __NR_setxattr 226 -# endif -# ifndef __NR_lsetxattr -# define __NR_lsetxattr 227 -# endif -# ifndef __NR_fsetxattr -# define __NR_fs... [truncated message content] |
From: Cui B. <cui...@hu...> - 2015-09-07 00:36:00
|
Add testcase 'sched_getattr01' to test sched_getattr function Signed-off-by: Cui Bixuan <cui...@hu...> --- V2: * Add the test to syscalls/sched_getattr and rename it to "sched_getattr01"; * Change "LDLIBS" to "CFLAGS" in sched_getattr/Makefile; * Delete "#define gettid() ..." which is not need in case; * Add "__NR_sched_setattr" and "__NR_sched_getattr" to arm.in,i386.in,x86_64.in in testcases/kernel/include/; * Create lapi/sched.h and add "struct sched_attr" and "sched_setattr", "sched_getattr" to it; * uint32_t/uint64_t/int32_t instead of __u32/__u64/__s32; * Delete printf() in case and change "TFAIL" to "TFAIL | TERRNO" in tst_brkm(); * define RUNTIME_VAL PERIOD_VAL DEADLINE_VAL for comparing and split one if to three ifs; * Delete sleep(1) and tst_resm(TPASS,..) in main. include/lapi/sched.h | 57 ++++++++++++ runtest/sched | 2 + testcases/kernel/include/arm.in | 2 + testcases/kernel/include/i386.in | 2 + testcases/kernel/include/x86_64.in | 2 + testcases/kernel/syscalls/.gitignore | 1 + testcases/kernel/syscalls/sched_getattr/Makefile | 25 ++++++ .../syscalls/sched_getattr/sched_getattr01.c | 92 ++++++++++++++++++++ 8 files changed, 183 insertions(+), 0 deletions(-) create mode 100644 include/lapi/sched.h create mode 100644 testcases/kernel/syscalls/sched_getattr/Makefile create mode 100644 testcases/kernel/syscalls/sched_getattr/sched_getattr01.c diff --git a/include/lapi/sched.h b/include/lapi/sched.h new file mode 100644 index 0000000..5e43dcd --- /dev/null +++ b/include/lapi/sched.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2015 Cui Bixuan <cui...@hu...> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it would be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __SCHED_H__ +#define __SCHED_H__ + +#include "linux_syscall_numbers.h" + +struct sched_attr { + uint32_t size; + + uint32_t sched_policy; + uint64_t sched_flags; + + /* SCHED_NORMAL, SCHED_BATCH */ + int32_t sched_nice; + + /* SCHED_FIFO, SCHED_RR */ + uint32_t sched_priority; + + /* SCHED_DEADLINE (nsec) */ + uint64_t sched_runtime; + uint64_t sched_deadline; + uint64_t sched_period; +}; + +int sched_setattr(pid_t pid, + const struct sched_attr *attr, + unsigned int flags) +{ + return syscall(__NR_sched_setattr, pid, attr, flags); +} + +int sched_getattr(pid_t pid, + struct sched_attr *attr, + unsigned int size, + unsigned int flags) +{ + return syscall(__NR_sched_getattr, pid, attr, size, flags); +} + +#endif /* __SCHED_H__ */ diff --git a/runtest/sched b/runtest/sched index 16877a3..10a1648 100644 --- a/runtest/sched +++ b/runtest/sched @@ -9,6 +9,8 @@ trace_sched01 trace_sched -c 1 hackbench01 hackbench 50 process 1000 hackbench02 hackbench 20 thread 1000 +sched_getattr01 sched_getattr01 + sched_cli_serv run_sched_cliserv.sh # Run this stress test for 2 minutes sched_stress sched_stress.sh diff --git a/testcases/kernel/include/arm.in b/testcases/kernel/include/arm.in index 841b064..8588de7 100644 --- a/testcases/kernel/include/arm.in +++ b/testcases/kernel/include/arm.in @@ -333,4 +333,6 @@ accept4 (__NR_SYSCALL_BASE+366) fanotify_init (__NR_SYSCALL_BASE+367) fanotify_mark (__NR_SYSCALL_BASE+368) prlimit64 (__NR_SYSCALL_BASE+369) +sched_setattr (__NR_SYSCALL_BASE+380) +sched_getattr (__NR_SYSCALL_BASE+381) getrandom (__NR_SYSCALL_BASE+384) diff --git a/testcases/kernel/include/i386.in b/testcases/kernel/include/i386.in index a4585c2..2fdeaf1 100644 --- a/testcases/kernel/include/i386.in +++ b/testcases/kernel/include/i386.in @@ -333,4 +333,6 @@ recvmmsg 337 fanotify_init 338 fanotify_mark 339 prlimit64 340 +sched_setattr 351 +sched_getattr 352 getrandom 355 diff --git a/testcases/kernel/include/x86_64.in b/testcases/kernel/include/x86_64.in index 860e726..90b898b 100644 --- a/testcases/kernel/include/x86_64.in +++ b/testcases/kernel/include/x86_64.in @@ -300,4 +300,6 @@ recvmmsg 299 fanotify_init 300 fanotify_mark 301 prlimit64 302 +sched_setattr 314 +sched_getattr 315 getrandom 318 diff --git a/testcases/kernel/syscalls/.gitignore b/testcases/kernel/syscalls/.gitignore index f3a18ab..98a9c49 100644 --- a/testcases/kernel/syscalls/.gitignore +++ b/testcases/kernel/syscalls/.gitignore @@ -733,6 +733,7 @@ /sched_get_priority_min/sched_get_priority_min01 /sched_get_priority_min/sched_get_priority_min02 /sched_getaffinity/sched_getaffinity01 +/sched_getattr/sched_getattr01 /sched_getparam/sched_getparam01 /sched_getparam/sched_getparam02 /sched_getparam/sched_getparam03 diff --git a/testcases/kernel/syscalls/sched_getattr/Makefile b/testcases/kernel/syscalls/sched_getattr/Makefile new file mode 100644 index 0000000..30d6cf3 --- /dev/null +++ b/testcases/kernel/syscalls/sched_getattr/Makefile @@ -0,0 +1,25 @@ +# +# Copyright (c) International Business Machines Corp., 2008 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +# the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +top_srcdir ?= ../../../.. + +include $(top_srcdir)/include/mk/testcases.mk + +CFLAGS += -lpthread + +include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c new file mode 100644 index 0000000..6570e86 --- /dev/null +++ b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c @@ -0,0 +1,92 @@ +#define _GNU_SOURCE +#include <unistd.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> +#include <linux/unistd.h> +#include <linux/kernel.h> +#include <linux/types.h> +#include <sys/syscall.h> +#include <pthread.h> +#include <sched.h> +#include <errno.h> + +#include "test.h" +#include "linux_syscall_numbers.h" +#include "lapi/sched.h" + +char *TCID = "edf_test01"; +int TST_TOTAL = 1; + +#define SCHED_DEADLINE 6 +#define RUNTIME_VAL 10000000 +#define PERIOD_VAL 30000000 +#define DEADLINE_VAL 30000000 + +void *run_deadline(void *data) +{ + struct sched_attr attr, attr_copy; + int ret; + unsigned int flags = 0; + unsigned int size; + + attr.size = sizeof(attr); + attr.sched_flags = 0; + attr.sched_nice = 0; + attr.sched_priority = 0; + + /* This creates a 10ms/30ms reservation */ + attr.sched_policy = SCHED_DEADLINE; + attr.sched_runtime = 10 * 1000 * 1000; + attr.sched_period = 30 * 1000 * 1000; + attr.sched_deadline = 30 * 1000 * 1000; + + ret = sched_setattr(0, &attr, flags); + if (ret < 0) + tst_brkm(TFAIL | TERRNO, NULL, "sched_setattr error\n"); + + size = sizeof(attr_copy); + ret = sched_getattr(0, &attr_copy, size, flags); + if (ret < 0) + tst_brkm(TFAIL | TERRNO, NULL, "sched_getattr error\n"); + + int fail = 0; + + if (attr_copy.sched_runtime != RUNTIME_VAL) { + tst_resm(TINFO, "sched_runtime is incorrect (%llu),expected" + " %u", attr.sched_runtime, RUNTIME_VAL); + fail++; + } + if (attr_copy.sched_period != PERIOD_VAL) { + tst_resm(TINFO, "sched_period is incorrect (%llu),expected" + " %u", attr.sched_period, PERIOD_VAL); + fail++; + } + if (attr_copy.sched_deadline != DEADLINE_VAL) { + tst_resm(TINFO, "sched_deadline is incorrect (%llu),expected" + " %u", attr.sched_deadline, DEADLINE_VAL); + fail++; + } + + if (fail) + tst_resm(TFAIL, "attributes were read back incorrectly"); + else + tst_resm(TPASS, "attributes were read back correctly"); + + return NULL; +} + +int main(int argc, char **argv) +{ + pthread_t thread; + + if ((tst_kvercmp(3, 14, 0)) < 0) + tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher\n"); + + pthread_create(&thread, NULL, run_deadline, NULL); + + pthread_join(thread, NULL); + + tst_exit(); +} -- 1.6.0.2 |
From: Yuriy K. <yur...@sy...> - 2015-09-04 17:03:34
|
It's necessary for correct cleaning. E.g. open_posix_testsuite is not cleaned without including these .mk files. However it's not an error if these files does not exist while cleaning. Signed-off-by: Yuriy Kolerov <yur...@sy...> --- include/mk/env_pre.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) |
From: Guangwen F. <fen...@cn...> - 2015-09-04 07:31:51
|
Hello! ping. Best Regards, Guangwen Feng On 2015/08/24 18:04, Guangwen Feng wrote: > In shell, function's return value can not exceed 255, if we run > the test on machines which have more than 255 cpus, the result > will be incorrect, so fix that by using global variable instead. > > Signed-off-by: Guangwen Feng <fen...@cn...> > --- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh | 2 +- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh | 2 +- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh | 2 +- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh | 4 ++-- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh | 2 +- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh | 2 +- > testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh | 2 +- > .../kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh | 8 ++++---- > 8 files changed, 12 insertions(+), 12 deletions(-) > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh > index 8ae1379..e75da21 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug01.sh > @@ -112,7 +112,7 @@ LOOP_COUNT=1 > tst_check_cmds perl > > get_present_cpus_num > -if [ $? -lt 2 ]; then > +if [ $PRESENT_CPUS_NUM -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh > index c42cc1b..f6b4345 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug02.sh > @@ -55,7 +55,7 @@ done > LOOP_COUNT=1 > > get_present_cpus_num > -if [ $? -lt 2 ]; then > +if [ $PRESENT_CPUS_NUM -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh > index 3469b10..a68ac7d 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug03.sh > @@ -64,7 +64,7 @@ done > LOOP_COUNT=1 > > get_present_cpus_num > -cpus_num=$? > +cpus_num=${PRESENT_CPUS_NUM} > if [ $cpus_num -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh > index 58a822e..3ecbb36 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug04.sh > @@ -49,13 +49,13 @@ done > LOOP_COUNT=1 > > get_present_cpus_num > -cpus_num=$? > +cpus_num=${PRESENT_CPUS_NUM} > if [ $cpus_num -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > > get_hotplug_cpus_num > -if [ $? -lt 1 ]; then > +if [ $HOTPLUG_CPUS_NUM -lt 1 ]; then > tst_brkm TCONF "system doesn't have at least one hotpluggable CPU" > fi > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > index 60382c8..8009af2 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug05.sh > @@ -56,7 +56,7 @@ LOOP_COUNT=1 > tst_check_cmds sar > > get_present_cpus_num > -if [ $? -lt 2 ]; then > +if [ $PRESENT_CPUS_NUM -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh > index 6710fad..5e71abf 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug06.sh > @@ -50,7 +50,7 @@ done > LOOP_COUNT=1 > > get_present_cpus_num > -if [ $? -lt 2 ]; then > +if [ $PRESENT_CPUS_NUM -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh > index 7edb3a9..81dc225 100755 > --- a/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/functional/cpuhotplug07.sh > @@ -56,7 +56,7 @@ done > LOOP_COUNT=1 > > get_present_cpus_num > -if [ $? -lt 2 ]; then > +if [ $PRESENT_CPUS_NUM -lt 2 ]; then > tst_brkm TCONF "system doesn't have required CPU hotplug support" > fi > > diff --git a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh > index 6920393..be8bce2 100644 > --- a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh > +++ b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_hotplug.sh > @@ -165,11 +165,11 @@ get_present_cpus() > > # get_present_cpus_num() > # > -# Prints the number of present CPUs > +# Gets the number of present CPUs > # > get_present_cpus_num() > { > - return $(get_present_cpus | wc -w) > + PRESENT_CPUS_NUM=`get_present_cpus | wc -w` > } > > # get_hotplug_cpus() > @@ -192,11 +192,11 @@ get_hotplug_cpus() > > # get_hotplug_cpus_num() > # > -# Prints the number of hotpluggable CPUs > +# Gets the number of hotpluggable CPUs > # > get_hotplug_cpus_num() > { > - return $(get_hotplug_cpus | wc -w) > + HOTPLUG_CPUS_NUM=`get_hotplug_cpus | wc -w` > } > > # get_all_cpu_states() > |
From: Cyril H. <ch...@su...> - 2015-09-03 13:47:35
|
Good news everyone, the Linux Test Project test suite stable release for *September 2015* has been released. Since the last release 272 patches by 27 authors were merged. Notable changes are: * Network namespace testcases were rewritten from scratch * New user namespaces testcases * New testcases for various virtual network interfaces * New umount2() testcases (for UMOUNT_NOFOLLOW, MNT_EXPIRE and MNT_DETACH flags) * New open() testcase (for O_PATH flag) * New getrandom() testcases * New inotify, cpuset, futex_wake() and recvmsg() regression tests + The usual number of fixes and enhancements The latest version of the test-suite contains 3000+ tests for the Linux and can be downloaded at: https://github.com/linux-test-project/ltp/releases/tag/20150903 The project pages as well as GIT repository are hosted on GitHub: https://github.com/linux-test-project/ltp http://linux-test-project.github.io/ If you ever wondered how to write a LTP testcase, don't miss our (continuously updated) developer documentation at: https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines https://github.com/linux-test-project/ltp/wiki/BuildSystem Patches, new tests, bugs, comments or questions should go to to our mailing list at ltp...@li.... PS: We had numerous troubles with mailing list on sourceforge, if you are aware of good and free mailing list hosting service please let us know. -- Cyril Hrubis ch...@su... |
From: $<ri...@nt...> - 2015-09-03 12:50:22
|
Yes i am trying to cross compile it for ARM and installed libaio-dev on hostmachine. Ok.. i will try cross compiling libaio and try to compile it again by pointing to the right path. On Thu, Sep 3, 2015 at 5:47 PM, Cyril Hrubis <ch...@su...> wrote: > Hi! >> I haven't modified any of the config files at all. Even i cross >> checked on couple machines and faced similar issues. > > Hmm, you are cross compiling right? Have you installed the libaio-dev on > the host machine? Because that will not work since that contains native > binaries and you cannot link against them. > > If that is the case you can either cross compile the libaio and set > right path for linker etc. or set up an arm virtual machine or chroot > with qemu arm emulation and compile LTP there. > > -- > Cyril Hrubis > ch...@su... -- Thanks & Regards, M.Srikanth Kumar. |