Commit 4eabf53
perf/core: Detach 'struct perf_cpu_pmu_context' and 'struct pmu' lifetimes
In prepration for being able to unregister a PMU with existing events,
it becomes important to detach struct perf_cpu_pmu_context lifetimes
from that of struct pmu.
Notably struct perf_cpu_pmu_context embeds a struct perf_event_pmu_context
that can stay referenced until the last event goes.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com>
Link: https://lore.kernel.org/r/20241104135518.760214287@infradead.org1 parent 0983593 commit 4eabf53
2 files changed
Lines changed: 49 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
| 925 | + | |
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | | - | |
| 1222 | + | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| |||
5007 | 5007 | | |
5008 | 5008 | | |
5009 | 5009 | | |
5010 | | - | |
| 5010 | + | |
5011 | 5011 | | |
5012 | 5012 | | |
5013 | 5013 | | |
5014 | | - | |
| 5014 | + | |
| 5015 | + | |
| 5016 | + | |
| 5017 | + | |
5015 | 5018 | | |
5016 | 5019 | | |
5017 | 5020 | | |
| |||
5087 | 5090 | | |
5088 | 5091 | | |
5089 | 5092 | | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
5090 | 5102 | | |
5091 | 5103 | | |
5092 | 5104 | | |
| |||
5121 | 5133 | | |
5122 | 5134 | | |
5123 | 5135 | | |
5124 | | - | |
| 5136 | + | |
| 5137 | + | |
5125 | 5138 | | |
| 5139 | + | |
5126 | 5140 | | |
5127 | 5141 | | |
5128 | 5142 | | |
| |||
11752 | 11766 | | |
11753 | 11767 | | |
11754 | 11768 | | |
11755 | | - | |
| 11769 | + | |
11756 | 11770 | | |
11757 | 11771 | | |
11758 | 11772 | | |
| |||
11925 | 11939 | | |
11926 | 11940 | | |
11927 | 11941 | | |
11928 | | - | |
| 11942 | + | |
| 11943 | + | |
| 11944 | + | |
| 11945 | + | |
| 11946 | + | |
| 11947 | + | |
| 11948 | + | |
| 11949 | + | |
| 11950 | + | |
| 11951 | + | |
| 11952 | + | |
| 11953 | + | |
| 11954 | + | |
| 11955 | + | |
| 11956 | + | |
| 11957 | + | |
| 11958 | + | |
| 11959 | + | |
| 11960 | + | |
11929 | 11961 | | |
11930 | 11962 | | |
11931 | 11963 | | |
| |||
11964 | 11996 | | |
11965 | 11997 | | |
11966 | 11998 | | |
11967 | | - | |
| 11999 | + | |
11968 | 12000 | | |
11969 | 12001 | | |
11970 | 12002 | | |
11971 | 12003 | | |
11972 | | - | |
| 12004 | + | |
| 12005 | + | |
| 12006 | + | |
| 12007 | + | |
| 12008 | + | |
| 12009 | + | |
| 12010 | + | |
11973 | 12011 | | |
11974 | | - | |
| 12012 | + | |
11975 | 12013 | | |
11976 | 12014 | | |
11977 | 12015 | | |
| |||
0 commit comments