From: David Goulet Date: Thu, 7 Mar 2013 20:39:10 +0000 (-0500) Subject: Support per UID buffers X-Git-Tag: v2.2.0-rc1~56 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=7972aab22f74b18faa168c0482216a3dd711a075;hp=45893984238b2e2c12fc0d84b90336c98a6d98c9 Support per UID buffers This is a rather large commit. It adds the support for per UID buffers for the user space tracer. The --buffers-uid option is added to the lttng enable-channel command which will set the session to use per UID buffers. So, all other channel in that session MUST be set with the same buffer type or else an error will be returned. For instance, here is an invalid use case: $ lttng create $ lttng enable-channel -u --buffers-uid chan1 $ lttng enable-channel -u chan2 The default is per PID (--buffers-pid). With no buffer type option, the per PID is used for the UST tracer and global buffers for the kernel being the only supported type for it (--buffers-global). The tracing directory path are also changed to support this. For per UID buffers, the path is now: ~/lttng-traces/ust/uid/1000/64-bit/* For per PID buffers: ~/lttng-traces/--