[PATCH v13 0/4] Add support for Lua scripting

Victor Krapivensky krapivenskiy.va at phystech.edu
Fri Sep 15 13:09:57 UTC 2017


Changelog:
 * Factored out the preparational part from the "initial support for Lua
   scripting" commit.
 * func_next_sc is no longer exposed as strace.C.next_sc; instead, it is
   passed as a part of private data table, and is now wrapped by
   strace.next_sc, which saves the current trace control pointer to a
   local variable.
 * Helper library function now don't take tcp arguments; instead, this
   local variable is used.
 * New function strace.inject_retval that wraps strace.C.inject_retval.
 * Added validations for personality numbers and various stuff that gets
   converted to cdata const char *. It is much more difficult to
   unintentionally crash strace process from a script now.
 * Other minor fixes.

Victor Krapivensky (4):
  Prepare for adding support for Lua scripting
  Add initial support for Lua scripting
  Introduce upoken function and expose it to Lua scripts
  tests: check Lua scripting support

 .gitignore               |   1 +
 Makefile.am              |  17 +
 NEWS                     |   2 +
 basic_filters.c          |  60 ++--
 configure.ac             |  37 +++
 defs.h                   |  68 ++--
 defs_shared.h            |  66 ++++
 ffi.h                    |  19 ++
 filter_qualify.c         |  64 +++-
 luajit.h                 | 363 ++++++++++++++++++++++
 luajit_lib.lua           | 443 ++++++++++++++++++++++++++
 number_set.c             |  47 +++
 number_set.h             |  16 +
 strace.1.in              | 784 +++++++++++++++++++++++++++++++++++++++++++++++
 strace.c                 |  95 +++++-
 syscall.c                | 233 ++++++++++----
 sysent.h                 |  24 +-
 tests/.gitignore         |   1 +
 tests/Makefile.am        |  13 +-
 tests/lua-basics.test    | 296 ++++++++++++++++++
 tests/lua-qual.test      |  58 ++++
 tests/lua-tampering.test | 199 ++++++++++++
 tests/lua.c              | 115 +++++++
 tests/lua.sh             |  11 +
 ucopy.c                  | 177 +++++++++++
 25 files changed, 3050 insertions(+), 159 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