Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1399571 > unrolled thread
| Started by | David Carrillo-Cisneros <davidcc@google.com> |
|---|---|
| First post | 2016-05-12 01:10 +0200 |
| Last post | 2016-05-12 01:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 27/32] perf/core: add perf_event cgroup hooks for subsystem attributes David Carrillo-Cisneros <davidcc@google.com> - 2016-05-12 01:10 +0200
| From | David Carrillo-Cisneros <davidcc@google.com> |
|---|---|
| Date | 2016-05-12 01:10 +0200 |
| Subject | [PATCH v2 27/32] perf/core: add perf_event cgroup hooks for subsystem attributes |
| Message-ID | <rxLqq-1mv-15@gated-at.bofh.it> |
Allow architectures to define additional attributes for the perf cgroup.
Reviewed-by: Stephane Eranian <eranian@google.com>
Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
---
include/linux/perf_event.h | 4 ++++
kernel/events/core.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 3f4ac36..9b13add 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1390,4 +1390,8 @@ static struct device_attribute format_attr_##_name = __ATTR_RO(_name)
# define perf_cgroup_arch_css_free(css) do { } while (0)
#endif
+#ifndef PERF_CGROUP_ARCH_CGRP_SUBSYS_ATTS
+#define PERF_CGROUP_ARCH_CGRP_SUBSYS_ATTS
+#endif
+
#endif /* _LINUX_PERF_EVENT_H */
diff --git a/kernel/events/core.c b/kernel/events/core.c
index da05fa2..e48afb6 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -10487,5 +10487,7 @@ struct cgroup_subsys perf_event_cgrp_subsys = {
.css_released = perf_cgroup_css_released,
.css_free = perf_cgroup_css_free,
.attach = perf_cgroup_attach,
+ /* Expand architecture specific attributes. */
+ PERF_CGROUP_ARCH_CGRP_SUBSYS_ATTS
};
#endif /* CONFIG_CGROUP_PERF */
--
2.8.0.rc3.226.g39d4020
Back to top | Article view | linux.kernel
csiph-web