Fix: tests: skip UST perf tests if not root
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 17 Sep 2015 18:10:50 +0000 (14:10 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 21 Sep 2015 15:52:28 +0000 (11:52 -0400)
commitcabd6e55e74ae97aa090133143ae53bf71dbad86
tree06bf1abbabb4a19bd465b34aed3e21613a5bf5fd
parent308a0a2d4b7da308fa72d3b00561b4cdb14e0920
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 <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/fast_regression
tests/regression/ust/test_event_perf
tests/root_regression
This page took 0.024681 seconds and 4 git commands to generate.