On Sun, Sep 03, 2017 at 04:15:06PM +0300, Victor Krapivensky wrote: > We could make all the functions we currently provide to FFI non-static, > feed their definitions to ffi.cdef, and build strace with -rdynamic, > instead of providing function pointers to Lua(JIT). > > This would improve the performance, as LuaJIT's FFI inlines calls to > such functions, though this is surely not the bottleneck anyway. > > What are the downsides of such approach?
-rdynamic would increase the dynamic symbol table section of strace: without-rdynamic$ readelf --dyn-syms ./strace |grep contains Symbol table '.dynsym' contains 136 entries: with-rdynamic$ readelf --dyn-syms ./strace |grep contains Symbol table '.dynsym' contains 965 entries: GNU ld has --dynamic-list option to specify the list of symbols that should be added to the dynamic symbol table. This option should be used instead of -rdynamic whenever possible. -- ldv
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel