OLD | NEW |
| (Empty) |
1 print "Testing default event" | |
2 job.profilers.add('oprofile') | |
3 job.run_test('sleeptest', seconds=1, tag='default') | |
4 job.profilers.delete('oprofile') | |
5 | |
6 print "Testing specified vmlinux" | |
7 job.profilers.add('oprofile', '/boot/vmlinux-autotest') | |
8 job.run_test('sleeptest', seconds=1, tag='vmlinux') | |
9 job.profilers.delete('oprofile') | |
10 | |
11 print "Testing one event" | |
12 job.profilers.add('oprofile', None, ['PM_RUN_CYC_GRP153:100000']) | |
13 job.run_test('sleeptest', seconds=1, tag='one') | |
14 job.profilers.delete('oprofile') | |
15 | |
16 print "Testing multiple events" | |
17 job.profilers.add('oprofile', None, ['PM_RUN_CYC_GRP153:100000', 'PM_INST_CMPL_G
RP153:10000']) | |
18 job.run_test('sleeptest', seconds=1, tag='multi') | |
19 job.profilers.delete('oprofile') | |
20 | |
21 print "Testing other args" | |
22 job.profilers.add('oprofile', None, ['PM_RUN_CYC_GRP153:150000', 'PM_INST_CMPL_G
RP153:150000'], '--callgraph=3') | |
23 job.run_test('sleeptest', seconds=1, tag='other') | |
24 job.profilers.delete('oprofile') | |
OLD | NEW |