[PATCH v12 6/6] ring-buffer/selftest: Add ring-buffer mapping test