summaryrefslogtreecommitdiff
path: root/apps/plugins/test_mem.c
AgeCommit message (Collapse)Author
2011-01-01Higher precision for test_mem plugin.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28939 a1c6a512-1295-4272-9138-f99709370657
2010-12-02Changes to test_mem. Improve readability for smaller displays, increase loop ↵Andree Buschmann
count by a factor of 2, if needed, git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28726 a1c6a512-1295-4272-9138-f99709370657
2010-12-02Change the gcc options for sdl builds to allow for gnu99 features, it needs ↵Thomas Martitz
some fixes in other places. Fixes test_mem compilation failure on cygwin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28723 a1c6a512-1295-4272-9138-f99709370657
2010-12-02Some improvements for test_mem:Thomas Martitz
* increase loop count if tests are too fast to be accurate * refactor lots of code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28720 a1c6a512-1295-4272-9138-f99709370657
2010-11-27Use MEM_ALIGN_ATTR in test_mem plugin.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28681 a1c6a512-1295-4272-9138-f99709370657
2010-11-14Use same loop count for writing and memset'ing in test_mem to have same ↵Andree Buschmann
precision in the result. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28583 a1c6a512-1295-4272-9138-f99709370657
2010-08-24Second try: Introduce plugin_crt0.c that every plugin links.Thomas Martitz
It handles exit() properly, calling the handler also when the plugin returns normally (also make exit() more standard compliant while at it). It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore. To work better together with callbacks passed to rb->default_event_handler_ex() introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it. In most cases rb->default_event_handler_ex() was passed a callback which was manually called at all other return points. This can now be done via atexit(). In future plugin_crt0.c could also handle clearing bss, initializing iram and more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27873 a1c6a512-1295-4272-9138-f99709370657
2010-08-23Revert "Introduce plugin_crt0.c that every plugin links."Thomas Martitz
Too much errors and no time to fix them now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
2010-08-23Introduce plugin_crt0.c that every plugin links.Thomas Martitz
It handles exit() properly, calling the handler also when the plugin returns normally (also it makes exit() more standard compliant while at it). It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore. To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it. In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit(). In future plugin_crt0.c could also handle clearing bss, initializing iram and more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-06-21Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Fix test_mem for the archos plugin buffer size and for charcell.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26273 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Correct new memcpy/memset functionality in test_mem plugin. Use appropriate ↵Andree Buschmann
clobber list for arm asm. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26255 a1c6a512-1295-4272-9138-f99709370657
2010-05-18Add memset/memcpy benches to test_mem pluginMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26135 a1c6a512-1295-4272-9138-f99709370657
2010-05-09Submit FS#11253. Rework of test_mem plugin to bench DRAM and IRAM. Also add ↵Andree Buschmann
ARM assembler and change the result format. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25918 a1c6a512-1295-4272-9138-f99709370657
2010-05-07Use 'HZ' and remove 'volatile' as suggested by kugel.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25893 a1c6a512-1295-4272-9138-f99709370657
2010-05-07Changes in test_mem plugin: Use correct formula to calculate KB/s, ↵Andree Buschmann
reasonable unrolling of read/write loops to better match memory bandwidth. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25892 a1c6a512-1295-4272-9138-f99709370657
2010-04-05test_mem: fix r25464: button_get() can't be used with actionsRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25474 a1c6a512-1295-4272-9138-f99709370657
2010-04-03Make test_mem.c and test_boost.c compilable on targets without BUTTON_UP.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25464 a1c6a512-1295-4272-9138-f99709370657
2010-04-03Move delta calculation up so that only the loop time counts.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25452 a1c6a512-1295-4272-9138-f99709370657
2010-04-03Memory benchmark plugin. Tests memory speeds and prints the kB/s.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25450 a1c6a512-1295-4272-9138-f99709370657