mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
test-userland: rename to test-userland-full-system and port to LkmcCliFunction
This commit is contained in:
11
trace-boot
11
trace-boot
@@ -15,18 +15,13 @@ More information at: https://github.com/cirosantilli/linux-kernel-module-cheat#t
|
||||
def timed_main(self):
|
||||
args = self.get_common_args()
|
||||
run = self.import_path_main('run')
|
||||
self.common_args['kernel_cli'] = self.env['quit_init']
|
||||
if self.env['emulator'] == 'gem5':
|
||||
args.update({
|
||||
'eval': 'm5 exit',
|
||||
'trace': 'Exec,-ExecSymbol,-ExecMicro',
|
||||
})
|
||||
args['trace'] = 'Exec,-ExecSymbol,-ExecMicro'
|
||||
run.main(**args)
|
||||
elif self.env['emulator'] == 'qemu':
|
||||
run_args = args.copy()
|
||||
run_args.update({
|
||||
'kernel_cli': 'init=/poweroff.out',
|
||||
'trace': 'exec_tb',
|
||||
})
|
||||
args['trace'] = 'exec_tb'
|
||||
run.main(**run_args)
|
||||
qemu_trace2txt = self.import_path_main('qemu-trace2txt')
|
||||
qemu_trace2txt.main(**args)
|
||||
|
||||
Reference in New Issue
Block a user