Re: [PATCH v1] commands: Add dhrystone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fr, 2015-07-24 at 13:41 +0200, Daniel Schultz wrote:
> At the end of the do_dhrystone function:
> 
>      if (user_time < TOO_SMALL_TIME) {
>          number_of_runs = number_of_runs * 10;
>          new_argv[0] = argv[0];
>          sprintf(tmp_str, "%i", number_of_runs);
>          new_argv[1] = tmp_str;
>          printf("Measured time too small to obtain meaningful results\n");
>          printf("or a timer wrap happend. I will increase the number\n");
>          printf("of runs by *10 to %d\n", number_of_runs);
>          printf("user_time: %llu ns\n", user_time);
>          do_dhrystone(2, new_argv);
>          ...
> 
> I'm sure there is a better solution.

Why not just loop for a few seconds?

Regards,
Jan
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux