summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorKairui Song <kasong@tencent.com>2025-09-17 00:00:57 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-09-21 14:22:25 -0700
commit8b47299a411a178d572aaac31ff7ab33a8bd27e2 (patch)
tree62873288090510ab1f16b10843b221584aa69125 /tools/perf/scripts/python/event_analyzing_sample.py
parent8578e0c00dcf0c58fbc32d4904ecaf8e802a6590 (diff)
downloadkernel-8b47299a411a178d572aaac31ff7ab33a8bd27e2.tar.gz
mm, swap: mark swap address space ro and add context debug check
Swap cache is now backed by swap table, and the address space is not holding any mutable data anymore. And swap cache is now protected by the swap cluster lock, instead of the XArray lock. All access to swap cache are wrapped by swap cache helpers. Locking is mostly handled internally by swap cache helpers, only a few __swap_cache_* helpers require the caller to lock the cluster by themselves. Worth noting that, unlike XArray, the cluster lock is not IRQ safe. The swap cache was very different compared to filemap, and now it's completely separated from filemap. Nothing wants to mark or change anything or do a writeback callback in IRQ. So explicitly document this and add a debug check to avoid further potential misuse. And mark the swap cache space as read-only to avoid any user wrongly mixing unexpected filemap helpers with swap cache. Link: https://lkml.kernel.org/r/20250916160100.31545-13-ryncsn@gmail.com Signed-off-by: Kairui Song <kasong@tencent.com> Acked-by: Chris Li <chrisl@kernel.org> Acked-by: David Hildenbrand <david@redhat.com> Suggested-by: Chris Li <chrisl@kernel.org> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Baoquan He <bhe@redhat.com> Cc: Barry Song <baohua@kernel.org> Cc: "Huang, Ying" <ying.huang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Kemeng Shi <shikemeng@huaweicloud.com> Cc: kernel test robot <oliver.sang@intel.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Nhat Pham <nphamcs@gmail.com> Cc: Yosry Ahmed <yosryahmed@google.com> Cc: Zi Yan <ziy@nvidia.com> Cc: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
>2021-05-07drivers/char: remove /dev/kmem for goodDavid Hildenbrand 2021-05-05mm/ksm: remove unused parameter from remove_trailing_rmap_items()Chengyang Fan 2021-05-05ksm: fix potential missing rmap_item for stable_nodeMiaohe Lin 2021-05-05ksm: remove dedicated macro KSM_FLAG_MASKMiaohe Lin 2021-05-05ksm: use GET_KSM_PAGE_NOLOCK to get ksm page in remove_rmap_item_from_tree()Miaohe Lin 2021-05-05ksm: remove redundant VM_BUG_ON_PAGE() on stable_tree_search()Miaohe Lin 2020-12-15mm: cleanup kstrto*() usageAlexey Dobriyan 2020-12-15mm: use sysfs_emit for struct kobject * usesJoe Perches 2020-10-15docs: get rid of :c:type explicit declarations for structsMauro Carvalho Chehab 2020-09-19ksm: reinstate memcg charge on copied pagesHugh Dickins 2020-09-04Merge branch 'simplify-do_wp_page'Linus Torvalds 2020-09-04mm/ksm: Remove reuse_ksm_page()Peter Xu 2020-08-24Revert "powerpc/64s: Remove PROT_SAO support"Shawn Anastasio 2020-08-12mm: do page fault accounting in handle_mm_faultPeter Xu 2020-08-07Merge tag 'powerpc-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds 2020-07-22powerpc/64s: Remove PROT_SAO supportNicholas Piggin 2020-07-16treewide: Remove uninitialized_var() usageKees Cook