Repository navigation
Commit 9f0c4fa
perf/core: Add a new PERF_EV_CAP_SIBLING event capability
Current perf assumes that events in a group are independent. Close an
event doesn't impact the value of the other events in the same group.
If the closed event is a member, after the event closure, other events
are still running like a group. If the closed event is a leader, other
events are running as singleton events.
Add PERF_EV_CAP_SIBLING to allow events to indicate they require being
part of a group, and when the leader dies they cannot exist
independently.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200723171117.9918-8-kan.liang@linux.intel.com1 parent 58da7db commit 9f0c4fa
2 files changed
Lines changed: 37 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| 585 | + | |
582 | 586 | | |
583 | 587 | | |
584 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2133 | 2133 | | |
2134 | 2134 | | |
2135 | 2135 | | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
2136 | 2151 | | |
2137 | 2152 | | |
| 2153 | + | |
2138 | 2154 | | |
2139 | 2155 | | |
2140 | 2156 | | |
| |||
2153 | 2169 | | |
2154 | 2170 | | |
2155 | 2171 | | |
2156 | | - | |
| 2172 | + | |
2157 | 2173 | | |
2158 | 2174 | | |
2159 | 2175 | | |
| |||
2166 | 2182 | | |
2167 | 2183 | | |
2168 | 2184 | | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
2169 | 2188 | | |
2170 | 2189 | | |
2171 | 2190 | | |
| |||
2183 | 2202 | | |
2184 | 2203 | | |
2185 | 2204 | | |
2186 | | - | |
2187 | | - | |
2188 | | - | |
| 2205 | + | |
2189 | 2206 | | |
| 2207 | + | |
| 2208 | + | |
2190 | 2209 | | |
2191 | 2210 | | |
2192 | 2211 | | |
| |||
2979 | 2998 | | |
2980 | 2999 | | |
2981 | 3000 | | |
| 3001 | + | |
2982 | 3002 | | |
2983 | 3003 | | |
2984 | 3004 | | |
| |||
2990 | 3010 | | |
2991 | 3011 | | |
2992 | 3012 | | |
2993 | | - | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
2994 | 3021 | | |
| 3022 | + | |
2995 | 3023 | | |
2996 | 3024 | | |
2997 | 3025 | | |
| |||
0 commit comments