lkml.org 
[lkml]   [2016]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 35/46] perf/x86/intel/cmt: use PERF_EV_CAP_CGROUP_NO_RECURSION in intel_cmt
Date
Use newly added flag.

Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
---
arch/x86/events/intel/cmt.c | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/arch/x86/events/intel/cmt.c b/arch/x86/events/intel/cmt.c
index 614b2f4..194038b 100644
--- a/arch/x86/events/intel/cmt.c
+++ b/arch/x86/events/intel/cmt.c
@@ -1734,6 +1734,14 @@ static int intel_cmt_event_init(struct perf_event *event)
INIT_LIST_HEAD(&event->hw.cmt_list);

/*
+ * CMT hw only allows one rmid per core at the time and therefore
+ * it is not compatible with the way generic code handles cgroup
+ * dependencies.
+ */
+ if (event->cgrp)
+ event->event_caps |= PERF_EV_CAP_CGROUP_NO_RECURSION;
+
+ /*
* Task events can be read in any CPU in any package. CPU events
* only in CPU's package. Both can read even if inactive.
*/
--
2.8.0.rc3.226.g39d4020
\
 
 \ /
  Last update: 2016-10-30 02:44    [W:0.402 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site