mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
15 lines
381 B
Python
Executable File
15 lines
381 B
Python
Executable File
#!/usr/bin/env python3
|
|
import common
|
|
parser = common.get_argparse(
|
|
argparse_args={'description':'Get the value of a gem5 stat from the stats.txt file.'}
|
|
)
|
|
parser.add_argument(
|
|
'stat',
|
|
default=None,
|
|
help='Python regexp matching the full stat name of interest',
|
|
nargs='?',
|
|
)
|
|
args = common.setup(parser)
|
|
stats = common.get_stats(args.stat)
|
|
print('\n'.join(stats))
|