aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorPeter Xu <[email protected]>2024-03-21 17:50:47 -0400
committerAndrew Morton <[email protected]>2024-04-25 20:56:02 -0700
commit2e47a445d7b3904d0dd6a1401357e3d5ac1a6440 (patch)
treead09c6989e62ad4444da358bdbcae01a688b457c /tools/perf/scripts/python/flamegraph.py
parent64c2e895df14c642fbb05e5ac7f55044cd4913a3 (diff)
selftests/mm: run_vmtests.sh: fix hugetlb mem size calculation
The script calculates a mininum required size of hugetlb memories, but it'll stop working with <1MB huge page sizes, reporting all zeros even if huge pages are available. In reality, the calculation doesn't really need to be as complicated either. Make it simpler and work for KB-level hugepages too. [[email protected]: run_vmtests.sh: fix hugetlb mem size calculation] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: Muchun Song <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Tested-by: Ryan Roberts <[email protected]> Cc: Nico Pache <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions