aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorChongxi Zhao <[email protected]>2022-03-24 18:08:47 -0700
committerLinus Torvalds <[email protected]>2022-03-24 19:06:44 -0700
commit8f9c447e2e2b53c2db4fac85fc42ecada8b39e52 (patch)
tree13a92533ef5e9497ee4b450b0193cb5165cf4570 /tools/perf/scripts/python/event_analyzing_sample.py
parentcd75ea0e32620c622aeaef531ef7b9f59c67f7a6 (diff)
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/[email protected] Signed-off-by: Chongxi Zhao <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions