Is it ok to insert a module multiple times with staprun?
Shiyao Ma
i@introo.me
Thu Mar 30 04:41:00 GMT 2017
Hi,
In the staprun manpage, I saw this:
-R Rename the module to a unique name before inserting it.
So looks like it's safe to insert it multiple times as long as the -R
gives a different name.
My application scenario is to log information on different tcp
connections, and separately output them to different files.
The invocation is like this:
# first insertion
sudo staprun /path/to/module -o /path/to/tcp-2003 filterport=2003 -R tcp-2003
# second insertion
sudo staprun /path/to/module -o /path/to/tcp-2004 filterport=2004 -R tcp-2004
Does the above approach look natural?
Regards.
More information about the Systemtap
mailing list