[PATCH 5.0 134/246] perf trace: Check if the fd is negative when mapping it to pathname