[PATCH 3.16 355/366] perf thread_map: Use readdir() instead of deprecated readdir_r()