diff options
| author | Suren Baghdasaryan <surenb@google.com> | 2026-09-18 08:33:12 -0700 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-12 21:26:27 -0700 |
| commit | 87ee17d24a8963b46826743e0638323d72c62384 (patch) | |
| tree | 0380f30bab952d76734d8bff58f1389a5922b4f8 /tools/perf/scripts/python | |
| parent | 23fac055c21176f66ed453394b533bdfc00f7fba (diff) | |
proc/task_mmu: remove unnecessary helpers
Patch series "read proc/pid/smaps_rollup under per-vma lock", v5.
proc/pid/smaps_rollup can be read using the combination of RCU and VMA
read locks, similar to proc/pid/{maps|smaps|numa_maps}. RCU is required
to safely traverse the VMA tree and VMA lock stabilizes the VMA being
processed and the pagetable walk. Note that we have to keep the logic to
drop mmap_lock on contention because even when using per-VMA locks we
might have to fall back to holding the mmap_lock.
The first 5 patches are cleanups making later change simpler. The main
change is in patch 6. Patch 7 extends existing proc-maps-race tearing
test to verify smaps_rollup content.
This patch (of 7):
When per-vma locks were behind a config option, a number of helper
functions were needed to simplify the locking code. Now that these locks
are universally available, we can do a little cleanup. Remove
lock_vma_range(), unlock_vma_range(), query_vma_setup(),
query_vma_teardown() helpers.
No functional change intended.
Link: https://lore.kernel.org/20260918153318.758387-1-surenb@google.com
Link: https://lore.kernel.org/20260918153318.758387-2-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Liam R. Howlett (Oracle) <liam@infradead.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Acked-by: Usama Arif <usama.arif@linux.dev>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: "Paul E . McKenney" <paulmck@kernel.org>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Vlastimil Babka <vbabka@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
