3750bdad20cb54252af92f96265e664965342a02 |
|
19-Aug-2015 |
Yuan Sun <sunyuan3@huawei.com> |
Use cpuctl_test* as TCID for cpuctl_test*.c. Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
fdce7d5e2a219d201a2b0e3bab6b61b01ec1d716 |
|
04-Apr-2013 |
Cyril Hrubis <chrubis@suse.cz> |
Another semiautomated cleanup. Remove comments such as: - /* Test program identifier. */ - /* Total number of test cases. */ - /* Extern Global Variables */ - /* Harness Specific Include Files. */ - /* Standard Include Files */ - /* Parse standard options given to run the test. */ - etc. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
354ebb48db8e66a853a58379a4808d5dcd1ceac3 |
|
07-Dec-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
cleanup code indent Cleanup the code indent using: find . -name *.c -exec Lindent {} \; It's really a big change, but can fix almost all of the indent problem in C code, although we can't ensure all of the changes are right, but the error changes are really few. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 |
|
19-Oct-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
Update FSF address find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
b6ff02cd9592e40c4b435ff7755cb69572a23f47 |
|
20-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Fix all remaining warnings. These warnings were mostly caused by the fact that tst_brk* is now reentrant and thus, the noreturn attribute is removed. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
72521cf0741034f67dd17107453cda9a9819264c |
|
18-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Fix more tests; remove more Tst_count externs. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
2c28215423293e443469a07ae7011135d058b671 |
|
16-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Style and conformance changes. 1. Strip all leading space. 2. Move tst_exit() to main(). 3. Remove tst_exit() from cleanup(). 4. Remove cluebat comments. 5. Reduce some unnecessary whitespace. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
575839ea989d07d4efa8816256469da86c2dab5c |
|
09-Sep-2009 |
subrata_modak <subrata_modak> |
cpuctl of controllers: fix the bug of while loop: When running the ltp tool by "./runltp -f controllers", I found "while" loop cannot stop in following files of cpuctl test. File list: cpuctl_def_task01.c cpuctl_def_task02.c cpuctl_def_task03.c cpuctl_def_task04.c cpuctl_test01.c cpuctl_test02.c cpuctl_test03.c cpuctl_test04.c Key code: timer_expired=0; while(!timer_expired) f=sqrt(f*f); Reason: During the compilation of these files, gcc's O2 mechanism causes the change of variable "timer_expired" to be omitted, hence the loop, "while(!timer_expired) f=sqrt(f*f);" cannot get out from itself. Change the type of "timer_expired" from "int" to "volatile int" to fix this bug. By the way, it is necessary to modify the file, ltp-full-xxxxxxxx/testcases/kernel/controllers/libcontrollers/ libcontrollers.h for compilation. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>, Signed-off-by: Liu Bo <liubo-fnst@cn.fujitsu.com>,
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
bd1f58065370eddeea275a238b0a439451c8b70e |
|
25-Nov-2008 |
subrata_modak <subrata_modak> |
CONTROLLERS: pass the argument to the function: The function scan_shares_files() modifies a global variable, which in the current way was confusing, so passing the variable as argument. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
c50bfa605c087cfe73911d33187dc424e4b3a2f4 |
|
25-Nov-2008 |
subrata_modak <subrata_modak> |
CONTROLLERS: Modify test to reflect kernel MAX_SHARES limit: The tests takes too long if we keep the time interval 60 seconds. Hence changing to 30 seconds. Also the kernel has now the max linit on shares values (1UL <<18). So taking readings upto 7th set will reach the max limit very soon(specialy on high end machines). Therefore we keep the multiplier to multiply at max 4 times. Hence we will reach till GROUP_NUM * 10^4. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
37aed20773b801a903517a7ef896176d0d93a4ef |
|
25-Nov-2008 |
subrata_modak <subrata_modak> |
CONTROLLERS: replace numbers by FILENAME_MAX: 32 bytes are really unsufficient for hoding dir names, changing it to FILENAME_MAX. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
b15aafd4f07a07e790ac504343cf8d9bd77963af |
|
20-Oct-2008 |
subrata_modak <subrata_modak> |
Hi, This patch fixes most of warnings and badness including the following, libnetns.c: In function ‘create_net_namespace’: libnetns.c:65: warning: implicit declaration of function ‘tst_kvercmp’ shmnstest.c: In function ‘main’: shmnstest.c:71: warning: unused variable ‘pid’ pidns03.c: In function ‘main’: pidns03.c:83: warning: passing argument 4 of ‘do_clone_unshare_test’ makes pointer from integer without a cast cpuctl_test01.c: In function ‘main’: cpuctl_test01.c:133: warning: implicit declaration of function ‘open’ cpuctl_test01.c:195: warning: unknown conversion type character ‘)’ in format cpuctl_test01.c:195: warning: unknown conversion type character ‘)’ in format cpuctl_test02.c: In function ‘main’: cpuctl_test02.c:146: warning: implicit declaration of function ‘open’ cpuctl_test02.c:207: warning: unknown conversion type character ‘)’ in format cpuctl_test02.c:207: warning: unknown conversion type character ‘)’ in format cpuctl_test02.c:207: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 8 has type ‘unsigned int’ cpuctl_test03.c: In function ‘main’: cpuctl_test03.c:144: warning: implicit declaration of function ‘open’ cpuctl_test03.c:205: warning: unknown conversion type character ‘)’ in format cpuctl_test03.c:205: warning: unknown conversion type character ‘)’ in format cpuctl_test04.c: In function ‘main’: cpuctl_test04.c:147: warning: implicit declaration of function ‘open’ cpuctl_test04.c:208: warning: unknown conversion type character ‘)’ in format cpuctl_test04.c:208: warning: unknown conversion type character ‘)’ in format cpuctl_test04.c:208: warning: format ‘%3lu’ expects type ‘long unsigned int’, but argument 8 has type ‘unsigned int’ memctl_test01.c: In function ‘allocate_memory’: memctl_test01.c:171: warning: assignment from incompatible pointer type doio.c: In function ‘main’: doio.c:477: warning: ‘sigblock’ is deprecated (declared at /usr/include/signal.h:181) growfiles.c: In function ‘growfile’: growfiles.c:2064: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2066: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2068: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2070: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2072: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness growfiles.c:2074: warning: pointer targets in passing argument 2 of ‘databingen’ differ in signedness childmain.c: In function ‘ChildMain’: childmain.c:551: warning: cast to pointer from integer of different size childmain.c:559: warning: cast to pointer from integer of different size childmain.c:569: warning: cast to pointer from integer of different size childmain.c:838: warning: cast to pointer from integer of different size dump.c: In function ‘format_str’: dump.c:54: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:55: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:55: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:55: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c:57: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:57: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:58: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:58: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:59: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:60: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:60: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:60: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c:63: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:63: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:64: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:64: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:65: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:65: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:67: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:67: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:69: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:70: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:70: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:70: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c: In function ‘format_raw’: dump.c:91: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:92: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:92: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:92: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness dump.c:94: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness dump.c:95: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness dump.c:95: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness dump.c:95: warning: pointer targets in passing argument 2 of ‘__builtin_strncat’ differ in signedness main.c: In function ‘threadedMain’: main.c:258: warning: cast to pointer from integer of different size main.c:259: warning: cast to pointer from integer of different size main.c:266: warning: cast to pointer from integer of different size main.c:365: warning: cast to pointer from integer of different size timer.c: In function ‘ChildTimer’: timer.c:196: warning: cast to pointer from integer of different size signal_test_01.c: In function ‘main’: signal_test_01.c:195: warning: ‘sigsetmask’ is deprecated (declared at /usr/include/signal.h:184) signal_test_01.c:232: warning: ‘sigblock’ is deprecated (declared at /usr/include/signal.h:181) signal_test_03.c: In function ‘main’: signal_test_03.c:119: warning: ‘sigblock’ is deprecated (declared at /usr/include/signal.h:181) signal_test_03.c:144: warning: ‘sigsetmask’ is deprecated (declared at /usr/include/signal.h:184) libipc.c: In function ‘init_buf’: libipc.c:120: warning: cast from pointer to integer of different size mallocstress.c: In function ‘alloc_mem’: mallocstress.c:272: warning: cast from pointer to integer of different size mallocstress.c:275: warning: cast from pointer to integer of different size mallocstress.c:276: warning: cast to pointer from integer of different size mallocstress.c: In function ‘main’: mallocstress.c:316: warning: cast from pointer to integer of different size mallocstress.c:327: warning: cast from pointer to integer of different size mallocstress.c:368: warning: cast to pointer from integer of different size shm_test.c: In function ‘shmat_rd_wr’: shm_test.c:207: warning: cast to pointer from integer of different size shm_test.c:221: warning: cast to pointer from integer of different size shm_test.c:266: warning: cast to pointer from integer of different size shm_test.c:270: warning: cast to pointer from integer of different size shm_test.c: In function ‘main’: shm_test.c:315: warning: cast from pointer to integer of different size shm_test.c:326: warning: cast from pointer to integer of different size pthserv.c: In function ‘main’: pthserv.c:146: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness pthserv.c:156: warning: cast to pointer from integer of different size trace_sched.c: In function ‘get_proc_num’: trace_sched.c:154: warning: cast from pointer to integer of different size trace_sched.c: In function ‘main’: trace_sched.c:348: warning: cast from pointer to integer of different size trace_sched.c:381: warning: cast from pointer to integer of different size check_simple_capset.c:23:28: error: sys/capability.h: No such file or directory check_simple_capset.c: In function ‘main’: check_simple_capset.c:27: error: ‘cap_t’ undeclared (first use in this function) check_simple_capset.c:27: error: (Each undeclared identifier is reported only once check_simple_capset.c:27: error: for each function it appears in.) check_simple_capset.c:27: error: expected ‘;’ before ‘caps’ check_simple_capset.c:30: error: ‘caps’ undeclared (first use in this function) check_simple_capset.c:31: error: ‘caps2’ undeclared (first use in this function) clone03.c: In function ‘main’: clone03.c:138: warning: cast from pointer to integer of different size clone04.c: In function ‘main’: clone04.c:147: warning: cast from pointer to integer of different size clone06.c: In function ‘main’: clone06.c:143: warning: cast from pointer to integer of different size fmtmsg01.c: In function ‘clearbuf’: fmtmsg01.c:82: warning: cast from pointer to integer of different size libipc.c: In function ‘init_buf’: libipc.c:116: warning: cast from pointer to integer of different size msgget01.c: In function ‘check_functionality’: msgget01.c:144: warning: cast from pointer to integer of different size lib.c: In function ‘test_ENAMETOOLONG_path’: lib.c:224: warning: cast from pointer to integer of different size lib64.c: In function ‘test_ENAMETOOLONG_path’: lib64.c:224: warning: cast from pointer to integer of different size endian_switch01.c:64: warning: ‘setup’ defined but not used crash01.c: In function ‘badboy_loop’: crash01.c:344: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness crash01.c: In function ‘compute_badboy’: crash01.c:529: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness crash01.c:537: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness crash01.c:543: warning: pointer targets in passing argument 1 of ‘castaway’ differ in signedness netsync.c: In function ‘setupConnectionServeur’: netsync.c:80: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness test_1_to_1_threads.c: In function ‘main’: test_1_to_1_threads.c:177: warning: cast to pointer from integer of different size test_sctp_sendrecvmsg.c: In function ‘main’: test_sctp_sendrecvmsg.c:150: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_sctp_sendrecvmsg.c:224: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c: In function ‘main’: test_timetolive.c:152: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c:260: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_sctp_sendrecvmsg.c: In function ‘main’: test_sctp_sendrecvmsg.c:150: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_sctp_sendrecvmsg.c:224: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c: In function ‘main’: test_timetolive.c:152: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness test_timetolive.c:260: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness ltpClient.c: In function ‘network_listener’: ltpClient.c:377: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpClient.c: In function ‘ping_network’: ltpClient.c:507: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpClient.c: In function ‘ltp_traceroute’: ltpClient.c:596: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpServer.c: In function ‘ltp_udp_server_queue’: ltpServer.c:235: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpServer.c: In function ‘ltp_tcp_server_queue’: ltpServer.c:268: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness ltpServer.c: In function ‘tcp_receive_buffer’: ltpServer.c:318: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness ltpServer.c: In function ‘ltp_multi_server_queue’: ltpServer.c:383: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness Compiled successfully on Fedora 10 Beta x86_64. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
d3ba25b3d046e18320734e03dbcfe42b089115f8 |
|
30-Apr-2008 |
subrata_modak <subrata_modak> |
Some Cleanups for CPU Controller Test Cases by Sudhir Kumar. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>, Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
8e843c6a701cc4de95ca6cc501ba5ee901be3a5a |
|
28-Feb-2008 |
subrata_modak <subrata_modak> |
Initial Set of CPU CONTROLLERS Test Cases. This patch does some cleanup. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
edac899ad67ae1c32494b65859fdceca310a43d7 |
|
28-Feb-2008 |
subrata_modak <subrata_modak> |
Initial Set of CPU CONTROLLERS Test Cases. This patch adds the library routines in cpu controller test case 4th and 5th. It also does minor cleanup. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
09d26b603798522db151ba51647de0fbbb4d139c |
|
28-Feb-2008 |
subrata_modak <subrata_modak> |
This patch adds the fourth and fifth testcases for cpu controller (ie Nice value test and task migration test). Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
6c12c3a509ce62b5f6a5c863e416df6716523dc5 |
|
28-Feb-2008 |
subrata_modak <subrata_modak> |
Initial Set of CPU CONTROLLERS Test Cases. This patch changes the way parameters are passed from script to c file. Also does some cleanup. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|
50531e457418c6cb26597b5a4cb48d31161f8f16 |
|
28-Feb-2008 |
subrata_modak <subrata_modak> |
Initial Set of CPU CONTROLLERS Test Cases. This patch adds the fourth testcase for cpu controller. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_test02.c
|