perf/core: Disallow uncore-cgroup events
authorPeter Zijlstra <peterz@infradead.org>
Wed, 6 Nov 2019 11:51:04 +0000 (12:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2019 07:16:39 +0000 (08:16 +0100)
commit09f4e8f05d85bfc98fe9227e988a7c1b3ec416ec
treea95408ac5163a56c4a1db970968d3ea3b77db7f5
parent485c05351312131f1c7486c623087e66bcacfbc0
perf/core: Disallow uncore-cgroup events

While discussing uncore event scheduling, I noticed we do not in fact
seem to dis-allow making uncore-cgroup events. Such events make no
sense what so ever because the cgroup is a CPU local state where
uncore counts across a number of CPUs.

Disallow them.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c