| 32 | === Beagleboard setup === |
| 33 | |
| 34 | The beagleboard was configured to boot via nfsroot over usb-ethernet. This has the benefit of easily sharing files between the beagleboard and the host, e.g. for installing new software. The possible disadvantage is that during the tests new parts of the binary need to be loaded which will force to share the network between HTTP download and NFS. |
| 35 | |
| 36 | The '''/etc/hosts''' file was adjusted to point to the server and a custom built version of Qt with `-fno-omit-frame-pointer` and the test applications were installed. |
| 37 | |
| 38 | === Running the tests === |
| 39 | {{{ |
| 40 | # prepare the setup |
| 41 | $ rm -rf /var/lib/oprofile |
| 42 | $ opcontrol --start-daemon -p library -c 10 |
| 43 | |
| 44 | # run the app once to force loading it from nfs into the cache |
| 45 | $ ./tst_something |
| 46 | |
| 47 | # start profiling |
| 48 | $ opcontrol --start |
| 49 | $ ./tst_something -iterations enough |
| 50 | |
| 51 | # stop profiling |
| 52 | $ opcontrol -h |
| 53 | |
| 54 | # generate reports |
| 55 | $ opreport -l |
| 56 | $ opreport -c ... |
| 57 | |
| 58 | # archiving it, it needs to be opimported on a x86 system |
| 59 | $ oparchive -o /some/archive |
| 60 | }}} |