Hi, Here is v5 of the RISU record/replay patches. The big changes are:
- new patch to sync coding standards - handle stdin/out as a trace input/destination - remove fprintf's from signal handlers - swapped the static build flag with docker I've left the "build with docker" patches in but they can be easily dropped if you want as the --static build patch goes in first. I still think it is a handy solution if the users host cross-arch setup is broken. The alternative is to use the stdin/out pipeline and pass trace data through a (potentially native) compression binary. Details in the commits. Alex Bennée (13): .gitignore: ignore build directories README: document the coding style used for risu all: fix up code consitency build-all-archs: support --static flag build-all-archs: support cross building via docker risu: a bit more verbosity when starting risu: paramterise send/receive functions risu: add header to trace stream risu: add simple trace and replay support risu: handle trace through stdin/stdout risu: add support compressed tracefiles new: record_traces.sh helper script new: run_risu.sh script .dir-locals.el | 2 + .gitignore | 1 + Makefile | 4 +- README | 9 + build-all-archs | 76 +++++++- comms.c | 325 ++++++++++++++++------------------ configure | 55 +++++- record_traces.sh | 32 ++++ reginfo.c | 189 +++++++++++--------- risu.c | 465 ++++++++++++++++++++++++++++++++----------------- risu.h | 27 ++- risu_aarch64.c | 5 + risu_arm.c | 63 +++---- risu_i386.c | 150 ++++++++-------- risu_m68k.c | 7 +- risu_ppc64.c | 7 +- risu_reginfo_aarch64.c | 60 ++++--- risu_reginfo_aarch64.h | 3 +- risu_reginfo_arm.c | 290 +++++++++++++++--------------- risu_reginfo_arm.h | 3 +- risu_reginfo_m68k.c | 20 +-- risu_reginfo_m68k.h | 3 +- risu_reginfo_ppc64.c | 29 ++- risu_reginfo_ppc64.h | 3 +- run_risu.sh | 66 +++++++ 25 files changed, 1150 insertions(+), 744 deletions(-) create mode 100644 .dir-locals.el create mode 100755 record_traces.sh create mode 100755 run_risu.sh -- 2.13.0