Skip to content

Commit

Permalink
have fun
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Mar 18, 2020
1 parent 33f9862 commit 082166a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
11 changes: 11 additions & 0 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import urllib.request

from shell_helpers import LF
import china_dictatorship
import cli_function
import path_properties
import shell_helpers
Expand Down Expand Up @@ -227,6 +228,13 @@ def __init__(
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(
Expand Down Expand Up @@ -1349,6 +1357,9 @@ def main(self, *args, **kwargs):
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']
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Cython==0.29.15
china-dictatorship==0.0.52
pexpect==4.6.0

0 comments on commit 082166a

Please sign in to comment.