[PATCH v11 0/3] Add support for Lua scripting

Victor Krapivensky krapivenskiy.va at phystech.edu
Mon Aug 14 22:09:20 UTC 2017


Changelog:
 * Moved hooking logic from func_next_sc() to
dispatch_event()/trace_syscall(), as suggested by Eugene.
 * Fixed simultaneous injection of signal and return value by different
injection mechanisms (command-line inject options and Lua).
 * Fixed calling strace.C.monitor after strace.C.monitor_all.
 * New function strace.get_ioctl_code.
 * New function strace.get_sig_name.
 * Added tests for these two.
 * All pers_spec arguments were renamed to pers and are now just
personality numbers.
 * Updated man page section (BTW, I've discovered lcpp [1] and it looks
quite interesting; mentioned it in the man page).
 * Added support for two standalone FFI library implementations.
 * Fixed style issues.

Next week, I'm going to: write up a NEWS entry; add more examples to the
man page; work on merging my code.

1. https://github.com/m-schmoock/lcpp

Victor Krapivensky (3):
  Initial support for LuaJIT scripting
  Introduce upoken function and expose it to LuaJIT scripts
  tests: check LuaJIT scripting support

 .gitignore               |   1 +
 Makefile.am              |  17 ++
 basic_filters.c          |  84 ++++--
 configure.ac             |  37 +++
 defs.h                   |  76 +++--
 defs_shared.h            |  66 +++++
 ffi.h                    |  19 ++
 filter_qualify.c         |  57 +++-
 luajit.h                 | 319 ++++++++++++++++++++
 luajit_lib.lua           | 397 +++++++++++++++++++++++++
 strace.1                 | 754 +++++++++++++++++++++++++++++++++++++++++++++++
 strace.c                 |  95 +++++-
 syscall.c                | 234 +++++++++++----
 sysent.h                 |  24 +-
 tests/.gitignore         |   1 +
 tests/Makefile.am        |  13 +-
 tests/lua-basics.test    | 268 +++++++++++++++++
 tests/lua-qual.test      |  59 ++++
 tests/lua-tampering.test | 199 +++++++++++++
 tests/lua.c              | 115 ++++++++
 tests/lua.sh             |  11 +
 ucopy.c                  | 177 +++++++++++
 22 files changed, 2859 insertions(+), 164 deletions(-)
 create mode 100644 defs_shared.h
 create mode 100644 ffi.h
 create mode 100644 luajit.h
 create mode 100644 luajit_lib.lua
 create mode 100755 tests/lua-basics.test
 create mode 100755 tests/lua-qual.test
 create mode 100755 tests/lua-tampering.test
 create mode 100644 tests/lua.c
 create mode 100644 tests/lua.sh

-- 
2.11.0





More information about the Strace-devel mailing list