From 7972aab22f74b18faa168c0482216a3dd711a075 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 7 Mar 2013 15:39:10 -0500 Subject: [PATCH] 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/--