Blame SOURCES/oprofile-captest.patch

05a5b2
diff --git a/libpe_utils/op_pe_utils.cpp b/libpe_utils/op_pe_utils.cpp
05a5b2
index c5b6ee7..0550fa7 100644
05a5b2
--- a/libpe_utils/op_pe_utils.cpp
05a5b2
+++ b/libpe_utils/op_pe_utils.cpp
05a5b2
@@ -174,6 +174,8 @@ int op_pe_utils::op_check_perf_events_cap(bool use_cpu_minus_one)
05a5b2
         memset(&attr, 0, sizeof(attr));
05a5b2
         attr.size = sizeof(attr);
05a5b2
         attr.sample_type = PERF_SAMPLE_IP;
05a5b2
+	/* avoid kernel events so test works when perf_event_paranoid = 2 */
05a5b2
+	attr.exclude_kernel =1;
05a5b2
 
05a5b2
 	pid = getpid();
05a5b2
 	syscall(__NR_perf_event_open, &attr, pid, cpu_to_try, -1, 0);