Files
Sarthak Sharma 84821e7676 tools/mm: make gup_bench a benchmark only tool
Remove the functional modes (GUP_BASIC_TEST, PIN_BASIC_TEST and
DUMP_USER_PAGES_TEST) from gup_bench.  Drop the kselftest dependency and
use normal diagnostics and exit statuses.

When no arguments are supplied, run a single GUP_FAST_BENCHMARK with the
existing default values.  Let users select other configurations through
command-line options.  Report ioctl failures and handle errors without
relying on assert().

Link: https://lore.kernel.org/[email protected]
Signed-off-by: Sarthak Sharma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Suggested-by: David Hildenbrand (Arm) <[email protected]>
Acked-by: Mike Rapoport (Microsoft) <[email protected]>
Acked-by: David Hildenbrand (Arm) <[email protected]>
Tested-by: Muhammad Usama Anjum <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Barry Song <[email protected]>
Cc: Dev Jain <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Lance Yang <[email protected]>
Cc: Leon Romanovsky <[email protected]>
Cc: Liam R. Howlett <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Nico Pache <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Ryan Roberts <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Zi Yan <[email protected]>
2026-10-12 21:26:30 -07:00
..