aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKairui Song <[email protected]>2022-08-02 01:31:55 +0800
committerAndrew Morton <[email protected]>2022-09-11 20:25:51 -0700
commit2fd86a07c9ac50dfbc5eef3c69ef6e5d370f3b28 (patch)
tree8ecfcf8df7387748a871e9396b05a76d33c0f49d /tools/perf/scripts/python/export-to-postgresql.py
parente933dc4a07b36b835f8ad7085e17cc21ed869051 (diff)
mm/util: reduce stack usage of folio_mapcount
folio_test_hugetlb() will call PageHeadHuge which is a function call, and blocks the compiler from recognizing this redundant load. After rearranging the code, stack usage is dropped from 32 to 24, and the function size is smaller (tested on GCC 12): Before: Stack usage: mm/util.c:845:5:folio_mapcount 32 static Size: 0000000000000ea0 00000000000000c7 T folio_mapcount After: Stack usage: mm/util.c:845:5:folio_mapcount 24 static Size: 0000000000000ea0 00000000000000b0 T folio_mapcount Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kairui Song <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions