summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-22 01:08:08 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-05-13 00:22:30 -0400
commit35752ca1507c1c4b68e47c479bf4ad8d70944077 (patch)
tree7290c2fa6b94e47bd4b5010434d977151ce590eb /tools/perf/scripts/python/call-graph-from-postgresql.py
parentcf1d4b24b33912db0d365c618bbf6dc42786a1ee (diff)
mm: Add a .to_text() method for shrinkers
This adds a new callback method to shrinkers which they can use to describe anything relevant to memory reclaim about their internal state, for example object dirtyness. This uses the new printbufs to output to heap allocated strings, so that the .to_text() methods can be used both for messages logged to the console, and also sysfs/debugfs. This patch also adds shrinkers_to_text(), which reports on the top 10 shrinkers - by object count - in sorted order, to be used in OOM reporting. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions