summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChongxi Zhao <zhaochongxi2019@email.szu.edu.cn>2022-03-24 18:08:47 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-24 19:06:44 -0700
commit8f9c447e2e2b53c2db4fac85fc42ecada8b39e52 (patch)
tree13a92533ef5e9497ee4b450b0193cb5165cf4570 /tools/perf/scripts/python
parentcd75ea0e32620c622aeaef531ef7b9f59c67f7a6 (diff)
downloadcachepc-linux-8f9c447e2e2b53c2db4fac85fc42ecada8b39e52.tar.gz
cachepc-linux-8f9c447e2e2b53c2db4fac85fc42ecada8b39e52.zip
tools/vm/page_owner_sort.c: support sorting pid and time
When viewing the page owner information, we expect that the information can be sorted by PID, so that we can quickly combine PID with the program to check the information together. We also expect that the information can be sorted by time. Time sorting helps to view the running status of the program according to the time interval when the program hangs up. Finally, we hope to pass the page_ owner_ Sort. C can reduce part of the output and only output the plate information whose memory has not been released, which can make us locate the problem of the program faster. Therefore, the following adjustments have been made: 1. Add the static functions search_pattern and check_regcomp to improve the cleanliness. 2. Add member attributes and their corresponding sorting methods. In terms of comparison time, int will overflow because the data of ull is too large, so the ternary operator is used 3. Add the -f parameter to filter out the information of blocks whose memory has not been released Link: https://lkml.kernel.org/r/20211206165653.5093-1-zhaochongxi2019@email.szu.edu.cn Signed-off-by: Chongxi Zhao <zhaochongxi2019@email.szu.edu.cn> Reviewed-by: Sean Anderson <seanga2@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions