Closed rrnewton closed 5 years ago
what does --tool
do? allowing libfoo.so
replace libdet.so
?
Yes, abstract over the "systrace tool" (like a "Pin tool") that implements the instrumentation, i.e. implements the captured_syscall callback.
Add below command line arguments:
--library-path
: path where to find libsystrace.so
and libdet.so
; default value is $(cwd)/lib
--env-all
, pass host (systrace
itself) env vars--env
, add additional env var(s) to tracee
Changed pushed into f054f2b146ee2aa2041a14d97e3279fe499d7129
--tool
command line option to specify tool explicitly;--env-all
, now systrace inherits all environment variables from the tracer, unless specified with --no-host-envs
. commit: cb36976302f7485fef1cc84a2a332d195c9b9cde
Here is a list of CLI flags we could add. Please edit this description to add more, or check them off.
--tool libfoo.so
: allow the user to override the tool. I suggest examplesecho.so
(systrace) and maybecount.so
be included with this systrace repo.--env-all
pass through all env vars from the env, default "no".--env
: like the Docker option. Note this supports both--env X=3
and--env X
(inherit from environment).What else?