mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
Fix import_path circular dependency by splitting it out.
Use import thread_pool instead from, from is evil. Fix poweroff.out path for ./trace-boot.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import common
|
||||
from shell_helpers import LF
|
||||
import common
|
||||
import lkmc.import_path
|
||||
|
||||
class Main(common.LkmcCliFunction):
|
||||
def __init__(self):
|
||||
@@ -14,7 +15,7 @@ More information at: https://github.com/cirosantilli/linux-kernel-module-cheat#t
|
||||
|
||||
def timed_main(self):
|
||||
args = self.get_common_args()
|
||||
run = common.import_path_main('run')
|
||||
run = lkmc.import_path.import_path_main('run')
|
||||
if self.env['emulator'] == 'gem5':
|
||||
args['trace'] = 'Exec,-ExecSymbol,-ExecMicro'
|
||||
run(**args)
|
||||
@@ -23,7 +24,7 @@ More information at: https://github.com/cirosantilli/linux-kernel-module-cheat#t
|
||||
run_args['trace'] = 'exec_tb'
|
||||
run_args['quit_after_boot'] = True
|
||||
run(**run_args)
|
||||
qemu_trace2txt = common.import_path_main('qemu-trace2txt')
|
||||
qemu_trace2txt = lkmc.import_path.import_path_main('qemu-trace2txt')
|
||||
qemu_trace2txt(**args)
|
||||
# Instruction count.
|
||||
# We could put this on a separate script, but it just adds more arch boilerplate to a new script.
|
||||
|
||||
Reference in New Issue
Block a user