mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
have fun
This commit is contained in:
@@ -12194,7 +12194,7 @@ We then try to see if it is any better when you have a bunch of dump events:
|
||||
./run --arch aarch64 --emulator gem5 --userland userland/c/m5ops.c --userland-args 'd 1000'
|
||||
....
|
||||
|
||||
and there yes, we see that the file size fell from 39MB on `stats.txt` to 3.2MB on `stats.m5`, so the increase observed previously was just due to some initial size overhead.
|
||||
and there yes, we see that the file size fell from 39MB on `stats.txt` to 3.2MB on `stats.m5`, so the increase observed previously was just due to some initial size overhead (considering the patched gem5 with no spaces in the text file).
|
||||
|
||||
We also note however that the stat dump made the such a simulation that just loops and dumps considerably slower, from 3s to 15s on <<p51>>. Fascinating, we are definitely not disk bound there.
|
||||
|
||||
|
||||
11
common.py
11
common.py
@@ -28,6 +28,7 @@ import urllib
|
||||
import urllib.request
|
||||
|
||||
from shell_helpers import LF
|
||||
import china_dictatorship
|
||||
import cli_function
|
||||
import path_properties
|
||||
import shell_helpers
|
||||
@@ -227,6 +228,13 @@ Valid archs: {}
|
||||
default=True,
|
||||
help='''\
|
||||
Enable or disable ccache: https://cirosantilli.com/linux-kernel-module-cheat#ccache
|
||||
'''
|
||||
)
|
||||
self.add_argument(
|
||||
'--china',
|
||||
default=False,
|
||||
help='''\
|
||||
To have some fun when the kernel starts to beat you.
|
||||
'''
|
||||
)
|
||||
self.add_argument(
|
||||
@@ -1349,6 +1357,9 @@ lunch aosp_{}-eng
|
||||
return that. Otherwise, return 0.
|
||||
'''
|
||||
env = kwargs.copy()
|
||||
if env['china']:
|
||||
print(china_dictatorship.get_data())
|
||||
sys.exit(0)
|
||||
self.input_args = env.copy()
|
||||
env.update(consts)
|
||||
real_all_archs = env['all_archs']
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
Cython==0.29.15
|
||||
china-dictatorship==0.0.52
|
||||
pexpect==4.6.0
|
||||
|
||||
Reference in New Issue
Block a user