From: Mathieu Desnoyers Date: Thu, 17 Sep 2015 18:10:50 +0000 (-0400) Subject: Fix: tests: skip UST perf tests if not root X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=bc2d01d26d95aabf930e91df0450142ea8103b47;hp=bc2d01d26d95aabf930e91df0450142ea8103b47 Fix: tests: skip UST perf tests if not root Some distributions like Debian (e.g. Debian kernel 4.1.0-2-amd64) have some grsecurity options enabled, such as CONFIG_GRKERNSEC_PERF_HARDEN. Unfortunately, this option makes it impossible to use the SW page-fault perf event as a normal user. It only leaves some HW events. However, we can only use SW events within virtual machines. Therefore, only run this test as root for now until we find a better approach. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---