]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - kernel/events/core.c
perf: Remove include of cgroup.h from perf_event.h
[mirror_ubuntu-jammy-kernel.git] / kernel / events / core.c
index b0cd86501c30db1a1320d284f2d52eb1ec499f2b..5976a2a6b4ce27a1cf1849ba5092916fd4f9a225 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/ftrace_event.h>
 #include <linux/hw_breakpoint.h>
 #include <linux/mm_types.h>
+#include <linux/cgroup.h>
 
 #include "internal.h"
 
@@ -233,6 +234,20 @@ static void perf_ctx_unlock(struct perf_cpu_context *cpuctx,
 
 #ifdef CONFIG_CGROUP_PERF
 
+/*
+ * perf_cgroup_info keeps track of time_enabled for a cgroup.
+ * This is a per-cpu dynamically allocated data structure.
+ */
+struct perf_cgroup_info {
+       u64                             time;
+       u64                             timestamp;
+};
+
+struct perf_cgroup {
+       struct cgroup_subsys_state      css;
+       struct perf_cgroup_info         *info;
+};
+
 /*
  * Must ensure cgroup is pinned (css_get) before calling
  * this function. In other words, we cannot call this function