mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 21:14:27 +01:00
CliFunction
This commit is contained in:
@@ -5,22 +5,23 @@ import subprocess
|
||||
import sys
|
||||
|
||||
import common
|
||||
from shell_helpers import LF
|
||||
|
||||
def main():
|
||||
return common.run_cmd(
|
||||
return self.sh.run_cmd(
|
||||
[
|
||||
os.path.join(common.qemu_src_dir, 'scripts/simpletrace.py'), common.Newline,
|
||||
os.path.join(common.qemu_build_dir, 'trace-events-all'), common.Newline,
|
||||
os.path.join(common.qemu_trace_file), common.Newline,
|
||||
os.path.join(kwargs['qemu_src_dir'], 'scripts/simpletrace.py'), LF,
|
||||
os.path.join(kwargs['qemu_build_dir'], 'trace-events-all'), LF,
|
||||
os.path.join(kwargs['qemu_trace_file']), LF,
|
||||
],
|
||||
cmd_file=os.path.join(common.run_dir, 'qemu-trace2txt'),
|
||||
out_file=common.qemu_trace_txt_file,
|
||||
cmd_file=os.path.join(kwargs['run_dir'], 'qemu-trace2txt'),
|
||||
out_file=kwargs['qemu_trace_txt_file'],
|
||||
show_stdout=False,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = common.get_argparse(argparse_args={
|
||||
parser = self.get_argparse(argparse_args={
|
||||
'description': 'Convert a QEMU `-trace exec_tb` to text form.'
|
||||
})
|
||||
args = common.setup(parser)
|
||||
args = self.setup(parser)
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user