perf trace: Split fd -> pathname array handling