[PATCH openEuler-5.10-LTS-SP1 222/263] perf tools: Fixup get_current_dir_name() compilation