diff options
| author | Jiajian Ye <[email protected]> | 2022-03-24 18:09:29 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-24 19:06:45 -0700 |
| commit | 578d8f2761a828f6c3409d0931b036bf3a999246 (patch) | |
| tree | d35afcfdd5b2484907a3ccd90fb557659e0aa6fd /tools/perf/scripts/python/bin | |
| parent | cf3c2c8678a0b21052d00b64d7a5903f3b1d1197 (diff) | |
tools/vm/page_owner_sort: fix three trivival places
The following adjustments are made:
1. Instead of using another array to cull the blocks after sorting,
reuse the old array. So there is no need to malloc a new array.
2. When enabling '-f' option to filter out the blocks which have been
released, only add those have not been released in the list, rather
than add all of blocks in the list and then do the filtering when
printing the result.
3. When enabling '-c' option to cull the blocks by comparing
stacktrace, print the stacetrace rather than the total block.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiajian Ye <[email protected]>
Cc: <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Yixuan Cao <[email protected]>
Cc: <[email protected]>
Cc: Zhenliang Wei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions