intel/tools/aub: print better error message when mmap fails
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Wed, 10 Feb 2021 11:22:11 +0000 (12:22 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Feb 2021 11:35:23 +0000 (11:35 +0000)
commit0893f6f03fee90f4e4303f881840e7e23c9646b3
treeb2bb395d1d16edbc1bf737e1f5cdd81bcd568ab9
parent93824b6451a4cc3eece1d7afa77e9a440ee41ee3
intel/tools/aub: print better error message when mmap fails

Aubinator creates lots of 4k mappings, so for large traces it's
possible to hit system limit on the number of mappings created
by a single process.

Ideally, aubinator should merge those mappings, but that's tricky
and I'm not sure it's worth spending time on.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8988>
src/intel/tools/aub_mem.c