Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1908dc9

Browse files
author
Peter Zijlstra
committed
perf: Tweak perf_event_attr::exclusive semantics
Currently perf_event_attr::exclusive can be used to ensure anevent(group) is the sole group scheduled on the PMU. One consequenceis that when you have a pinned event (say the watchdog) you can nolonger have regular exclusive event(group)s.Inspired by the fact that !pinned events are considered less strict,allow !pinned,exclusive events to share the PMU with pinned,!exclusiveevents.Pinned,exclusive is still fully exclusive.Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>Link:https://lkml.kernel.org/r/20201029162902.105962225@infradead.org
1 parent2714c39 commit1908dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎kernel/events/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ static int group_can_go_on(struct perf_event *event,
26372637
* If this group is exclusive and there are already
26382638
* events on the CPU, it can't go on.
26392639
*/
2640-
if (event->attr.exclusive&&cpuctx->active_oncpu)
2640+
if (event->attr.exclusive&&!list_empty(get_event_list(event)))
26412641
return0;
26422642
/*
26432643
* Otherwise, try to add it if all previous groups were able

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp