perf doc: Fix mmap failure checks in topdown example

Use MAP_FAILED instead of NULL to detect mmap errors, and fix the
slots_p variable name typo in the sample code.

Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
Hongfu Li 2026-07-13 17:36:26 +08:00 • committed by Namhyung Kim
commit d30f2d869b