From: Subrata <sub...@us...> - 2008-11-28 10:30:18
|
Update of /cvsroot/ltp/ltp/testcases/realtime/func/matrix_mult In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2065/ltp/testcases/realtime/func/matrix_mult Modified Files: matrix_mult.c Log Message: Remove references of jvmsim from the tests: Most of the testcases, have an option (-j) which runs the jvmsim as a background load so as to simulate the behavior of the JVM.This patch removes the references of jvmsim from all the testcases. Signed-Off-By: Chirag <ch...@li...>, Acked-by: Sripathi Kodi <sri...@in...>. Index: matrix_mult.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/func/matrix_mult/matrix_mult.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** matrix_mult.c 3 Nov 2008 06:09:47 -0000 1.11 --- matrix_mult.c 28 Nov 2008 10:30:13 -0000 1.12 *************** *** 27,31 **** * USAGE: * Use run_auto.sh script in current directory to build and run test. - * Use "-j" to enable jvm simulator. * * AUTHOR --- 27,30 ---- *************** *** 42,46 **** #include <math.h> #include <librttest.h> - #include <libjvmsim.h> #include <libstats.h> --- 41,44 ---- *************** *** 61,65 **** #define THREAD_SLEEP 1 * NS_PER_US - static int run_jvmsim = 0; static int ops = DEF_OPS; static int numcpus; --- 59,62 ---- *************** *** 80,84 **** rt_help(); printf("matrix_mult specific options:\n"); - printf(" -j enable jvmsim\n"); printf(" -l# #: number of multiplications per iteration (load)\n"); printf(" -i# #: number of iterations\n"); --- 77,80 ---- *************** *** 89,95 **** int handled = 1; switch (c) { - case 'j': - run_jvmsim = 1; - break; case 'i': iterations = atoi(v); --- 85,88 ---- *************** *** 318,322 **** setup(); pass_criteria = PASS_CRITERIA; ! rt_init("jl:i:h", parse_args, argc, argv); numcpus = sysconf(_SC_NPROCESSORS_ONLN); /* the minimum avg concurrent multiplier to pass */ --- 311,315 ---- setup(); pass_criteria = PASS_CRITERIA; ! rt_init("l:i:h", parse_args, argc, argv); numcpus = sysconf(_SC_NPROCESSORS_ONLN); /* the minimum avg concurrent multiplier to pass */ *************** *** 349,359 **** printf("Number of CPUs: %u\n", numcpus); - if (run_jvmsim) { - printf("jvmsim enabled\n"); - jvmsim_init(); /* Start the JVM simulation */ - } else { - printf("jvmsim disabled\n"); - } - set_priority(PRIO); main_thread(); --- 342,345 ---- |