mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
readme: gem5 failed python script without rebuild attempt
This commit is contained in:
17
README.adoc
17
README.adoc
@@ -4493,7 +4493,7 @@ Guest:
|
||||
|
||||
....
|
||||
touch /tmp/execfile
|
||||
chmoe +x /tmp/execfile
|
||||
chmod +x /tmp/execfile
|
||||
m5 execfile
|
||||
....
|
||||
|
||||
@@ -4530,6 +4530,21 @@ Unfortunately-we didn't manage to find an ARM analogue: link:kernel_module/pmccn
|
||||
* https://stackoverflow.com/questions/31620375/arm-cortex-a7-returning-pmccntr-0-in-kernel-mode-and-illegal-instruction-in-u/31649809#31649809
|
||||
* https://blog.regehr.org/archives/794
|
||||
|
||||
=== gem5 Python scripts without rebuild
|
||||
|
||||
TODO
|
||||
|
||||
Currently, when you modify the python scripts under `gem5/gem5`, you still have to run `./build` to copy the updated scripts to the `out/<arch>/buildroot` directory, which kind of defeats the purpose of having an interpreted language as Python.
|
||||
|
||||
We would like to solve that, but are blocked on either of the following:
|
||||
|
||||
* build in-tree and skip the Buildroot sync step. If sync is not skipped, it would copy all builds to all archs, which is huge.
|
||||
+
|
||||
But then we have to deal specially with the `m5` tool, which has to be cross compiled
|
||||
* gem5 out of tree build. Is there support? Looks like SCons does not have anything generic as usual and leaves the burden on project developers:
|
||||
** https://stackoverflow.com/questions/3720142/how-to-force-scons-output-exe-obj-lib-dll-to-specific-build-directory
|
||||
** https://stackoverflow.com/questions/1762044/how-to-do-an-out-of-source-build-with-scons
|
||||
|
||||
== Insane action
|
||||
|
||||
=== Run on host
|
||||
|
||||
Reference in New Issue
Block a user