[lttng-dev] Enable UST probes only in specific process

Dmitri Shubin sbn at tbricks.com
Wed Jul 30 09:58:25 EDT 2014


Is it possible to enable user-space tracepoint in specific process (of
given PID)?

lttng enable-event -u prov:probe --filter '$ctx.vpid==12345'
enables probe for all processes and then drops unmatched.

In my case I'm doing rather heavyweight thing in probe (getting stack
trace) and want to do that only in the process of interest.

Is it possible?

The only way I can do it now is playing with LTTNG_HOME variable setting it
to different paths for each process.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140730/d98d89d7/attachment.html>

More information about the lttng-dev mailing list