[PATCH v5 1/1] Initial support for LuaJIT scripting

2017-07-04 Thread Victor Krapivensky
* Makefile.am: Build with LuaJIT if configured so. (strace_SOURCES): Add defs_shared.h, ffi.h. * configure.ac: Add new --with-luajit configure option. * defs.h (TCB_AD_HOC_INJECT): new TCB flag. (QUAL_HOOK_ENTRY, QUAL_HOOK_EXIT): new qual flags. (struct tcb): If built with LuaJIT support, include c

[PATCH v5 0/1] Initial support for LuaJIT scripting

2017-07-04 Thread Victor Krapivensky
Now with a section in the man page and theoretical support for non-LuaJIT Lua interpreters (no support for this in the helper library yet). Victor Krapivensky (1): Initial support for LuaJIT scripting Makefile.am | 8 ++ configure.ac | 36 +++ defs.h| 53 +++-- defs_shar

Victor Krapivensky's GSoC status report - #5 of 13

2017-07-04 Thread Victor Krapivensky
Hello, strace community! Project: advanced syscall tampering and filtering with Lua/LuaJIT. Accomplishments: this week I've written the LUAJIT SCRIPTING section for the strace man page, cleaned up some things (got rid of struct strace_luajit_funcs), and written strace.read_obj, strace.read_str, a

Edgar Kaziakhmedov's - #5 of 13

2017-07-04 Thread Edgar Kaziahmedov
Hello, strace community! For now, I have passed all my exam, and this week I am about to add support of personalities to asinfo tool. Besides, I am looking forward the review of my previous patch. Best regards, Edgar Kaziahmedov pgp0nSgSg7zbW.pgp Description: OpenPGP digital signature -

[PATCH] nios2/arch_regs: fix nios2_sp_ptr definition

2017-07-04 Thread Romain Naour
The patch [1] introduced in streace 1.17 use the old way to access SP register as defined for kernel headers < 4.0. The kernel headers for nios2 has been changed in commit [2]. Use the new kernel header. Fixes: http://autobuild.buildroot.net/results/b9f/b9fc25b82f3280872fe1593ac252a8529ba83576

Re: [PATCH] nios2/arch_regs: fix nios2_sp_ptr definition

2017-07-04 Thread Dmitry V. Levin
On Tue, Jul 04, 2017 at 06:37:18PM +0200, Romain Naour wrote: > The patch [1] introduced in streace 1.17 use the old way to access SP > register as defined > for kernel headers < 4.0. > The kernel headers for nios2 has been changed in commit [2]. > > Use the new kernel header. > > Fixes: > http:

Re: [PATCH v5 1/1] Initial support for LuaJIT scripting

2017-07-04 Thread Dmitry V. Levin
On Tue, Jul 04, 2017 at 01:25:23PM +0300, Victor Krapivensky wrote: [...] > diff --git a/luajit_lib.h b/luajit_lib.h > new file mode 100644 > index ..16e49610 > --- /dev/null > +++ b/luajit_lib.h > @@ -0,0 +1,260 @@ > +"do\n\ > + local ffi = require(strace._ffilibname)\n\ > + local

Re: [PATCH v3 2/6] Introduce new filtering architecture

2017-07-04 Thread Dmitry V. Levin
On Thu, Jun 29, 2017 at 02:46:11PM +0700, Nikolay Marchuk wrote: [...] > --- a/defs.h > +++ b/defs.h > @@ -228,7 +228,7 @@ struct tcb { > void (*_free_priv_data)(void *); /* Callback for freeing priv_data */ > const struct_sysent *s_ent; /* sysent[scno] or dummy struct for bad > scno *