diff --git a/README.adoc b/README.adoc index f382778..9ccce1d 100644 --- a/README.adoc +++ b/README.adoc @@ -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 <>. Fascinating, we are definitely not disk bound there. diff --git a/common.py b/common.py index 6cc6910..0c3ac1e 100644 --- a/common.py +++ b/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'] diff --git a/requirements.txt b/requirements.txt index 6fcb625..f802773 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ Cython==0.29.15 +china-dictatorship==0.0.52 pexpect==4.6.0