Commit adc38b4
perf/core: Introduce perf_free_addr_filters()
Replace _free_event()'s use of perf_addr_filters_splice()s use with an
explicit perf_free_addr_filters() with the explicit propery that it is
able to be called a second time without ill effect.
Most notable, referencing event->pmu must be avoided when there are no
filters left (from eg a previous call).
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.868460518@infradead.org1 parent b2996f5 commit adc38b4
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5339 | 5339 | | |
5340 | 5340 | | |
5341 | 5341 | | |
5342 | | - | |
5343 | | - | |
| 5342 | + | |
5344 | 5343 | | |
5345 | 5344 | | |
5346 | 5345 | | |
| |||
5439 | 5438 | | |
5440 | 5439 | | |
5441 | 5440 | | |
5442 | | - | |
| 5441 | + | |
5443 | 5442 | | |
5444 | 5443 | | |
5445 | 5444 | | |
| |||
11004 | 11003 | | |
11005 | 11004 | | |
11006 | 11005 | | |
| 11006 | + | |
| 11007 | + | |
| 11008 | + | |
| 11009 | + | |
| 11010 | + | |
| 11011 | + | |
| 11012 | + | |
| 11013 | + | |
| 11014 | + | |
| 11015 | + | |
| 11016 | + | |
11007 | 11017 | | |
11008 | 11018 | | |
11009 | 11019 | | |
| |||
0 commit comments