Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Thomas writes:
"A single fix for a missing sanity check when a pinned event is tried
to be read on the wrong CPU due to a legit event scheduling failure."

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/core: Add sanity check to deal with pinned event failure

+6
+6
kernel/events/core.c
··· 3935 3935 goto out; 3936 3936 } 3937 3937 3938 + /* If this is a pinned event it must be running on this CPU */ 3939 + if (event->attr.pinned && event->oncpu != smp_processor_id()) { 3940 + ret = -EBUSY; 3941 + goto out; 3942 + } 3943 + 3938 3944 /* 3939 3945 * If the event is currently on this CPU, its either a per-task event, 3940 3946 * or local to this CPU. Furthermore it means its ACTIVE (otherwise