public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Is it ok to insert a module multiple times with staprun?
@ 2017-03-30  4:41 Shiyao Ma
  2017-03-30  5:40 ` Arkady
  0 siblings, 1 reply; 10+ messages in thread
From: Shiyao Ma @ 2017-03-30  4:41 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-04-01  6:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30  4:41 Is it ok to insert a module multiple times with staprun? Shiyao Ma
2017-03-30  5:40 ` Arkady
     [not found]   ` <e7f616ba-eb90-47ee-b784-ea02fdf519ff@Spark>
2017-03-30  8:22     ` Arkady
2017-03-30 14:53       ` David Smith
2017-03-31  3:51         ` Shiyao Ma
2017-03-31  4:08           ` Arkady
2017-03-31 14:50           ` David Smith
2017-03-31 15:40             ` David Smith
2017-03-31 15:46               ` Shiyao Ma
2017-04-01  6:15               ` Shiyao Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).