From: Chirag J. <ch...@li...> - 2008-05-05 15:13:07
|
* Gilles Carry <gil...@bu...> [2008-05-05 13:12:54]: > Modified pi_perf.c to consider pass criteria (-c) arg. > > Signed-off-by: Gilles Carry <gil...@bu...> > Cc: Darren Hart <dv...@us...> > Cc: Tim Chavez <ti...@us...> Acked-by: Chirag <ch...@li...> > --- > testcases/realtime/func/pi_perf/pi_perf.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/testcases/realtime/func/pi_perf/pi_perf.c b/testcases/realtime/func/pi_perf/pi_perf.c > index fbb54a4..2d41715 100644 > --- a/testcases/realtime/func/pi_perf/pi_perf.c > +++ b/testcases/realtime/func/pi_perf/pi_perf.c > @@ -224,6 +224,7 @@ int main(int argc, char *argv[]) > int ret; > setup(); > > + pass_criteria = THRESHOLD; > rt_init("hi:n:w:", parse_args, argc, argv); > > if (iterations < 100) { > @@ -263,10 +264,10 @@ int main(int argc, char *argv[]) > printf("Low prio lock held time (min) = %ld us\n", stats_min(&low_dat)); > printf("High prio lock wait time (max) = %ld us\n", stats_max(&lock_wait_dat)); > printf("Criteria: High prio lock wait time < " > - "(Low prio lock held time + %d us)\n", THRESHOLD); > + "(Low prio lock held time + %d us)\n", (int)pass_criteria); > > ret = 0; > - if (stats_max(&lock_wait_dat) > stats_min(&low_dat) + THRESHOLD) > + if (stats_max(&lock_wait_dat) > stats_min(&low_dat) + (int)pass_criteria) > ret = 1; > > printf("Result: %s\n", ret ? "FAIL" : "PASS"); > -- > 1.5.4.3.450.gb92176 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Ltp-list mailing list > Ltp...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list -- Cheers, Chirag Jog |