diff options
| author | David Finkel <[email protected]> | 2024-07-29 14:37:43 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-02 03:25:53 +0000 |
| commit | d075bccec082be326e08d8b4f7cd491029438f0b (patch) | |
| tree | 8cc3c72a3389b48f929c3466c84a93a6c7ef4d88 /tools/testing/radix-tree/linux.c | |
| parent | mm, memcg: cg2 memory{.swap,}.peak write handlers (diff) | |
| download | kernel-d075bccec082be326e08d8b4f7cd491029438f0b.tar.gz kernel-d075bccec082be326e08d8b4f7cd491029438f0b.zip | |
mm, memcg: cg2 memory{.swap,}.peak write tests
Extend two existing tests to cover extracting memory usage through the
newly mutable memory.peak and memory.swap.peak handlers.
In particular, make sure to exercise adding and removing watchers with
overlapping lifetimes so the less-trivial logic gets tested.
The new/updated tests attempt to detect a lack of the write handler by
fstat'ing the memory.peak and memory.swap.peak files and skip the tests if
that's the case. Additionally, skip if the file doesn't exist at all.
[[email protected]: update tests]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Finkel <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Michal Koutný <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Zefan Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
0 files changed, 0 insertions, 0 deletions
