[PATCH v10 0/3] Support for LuaJIT scripting

Victor Krapivensky krapivenskiy.va at phystech.edu
Wed Aug 2 09:50:47 UTC 2017


Changelog:
* Moved C cdata functions and constants to a separate strace.C namespace 
to reduce confusion (which functions return Lua booleans and which
boxed ones?) and get rid of weird names like "path_match_arr".
* New strace.C.{pers_names,pers_wordsize,pers_klongsize} constants.
* Fixed case when strace.read_obj/strace.write_obj is passed a
pointer-sized variable-length (T [?]) array: strangely, on such arrays,
ffi.typeof raises an error, but ffi.sizeof works as expected.
* Now, Lua functions that previously raised errors on failure, indicate
it by return value. This is needed to make them more consistent with
another Lua functions and the C API. Now, Lua functions only raise
errors when inappropriate arguments are passed.
* Adjusted man page.
* Fixed tests.
* Other minor fixes.

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 ++
 configure.ac             |  36 +++++
 defs.h                   |  65 ++++----
 defs_shared.h            |  66 ++++++++
 ffi.h                    |  19 +++
 luajit.h                 | 376 ++++++++++++++++++++++++++++++++++++++++++++
 luajit_lib.lua           | 380 ++++++++++++++++++++++++++++++++++++++++++++
 qualify.c                | 107 +++++++++----
 strace.1                 | 400 +++++++++++++++++++++++++++++++++++++++++++++++
 strace.c                 |  36 ++++-
 syscall.c                | 186 ++++++++++++++++------
 sysent.h                 |  24 ++-
 tests/.gitignore         |   1 +
 tests/Makefile.am        |  13 +-
 tests/lua-basics.test    | 250 +++++++++++++++++++++++++++++
 tests/lua-qual.test      |  58 +++++++
 tests/lua-tampering.test | 149 ++++++++++++++++++
 tests/lua.c              | 115 ++++++++++++++
 tests/lua.sh             |  11 ++
 util.c                   | 172 ++++++++++++++++++++
 21 files changed, 2360 insertions(+), 122 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