diff options
| author | Wang Wensheng <wsw9603@163.com> | 2026-07-26 21:35:01 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-06 18:57:25 -0700 |
| commit | 6be12ddb52f9a3fa62f078a0b61573416de5ff5c (patch) | |
| tree | c5b5a3febb0bbe1bfa4a3779bb4843aecdb620e4 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 41f2c0f716e19b932a0653eaa462999e5e0d8126 (diff) | |
ksm: stop iterating VMAs when ksm_test_exit returns true
In scan_get_next_rmap_item() the break statement only exits the inner
while loop, leaving remaining VMAs to be iterated even if ksm_test_exit()
returns true. Replace it with a goto statement to avoid the unnecessary
work.
Link: https://lore.kernel.org/20260726133501.504048-1-wsw9603@163.com
Signed-off-by: Wang Wensheng <wsw9603@163.com>
Reviewed-by: Xu Xin <xu.xin16@zte.com.cn>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
