perf tools: Fix buildid processing

After recording, 'perf record' post-processes the data to determine
which buildids are needed.

That processing must process the data in time order, if possible,
because otherwise dependent events, like forks and mmaps, will not make

Signed-off-by: Adrian Hunter <>
Tested-by: Jiri Olsa <>
Cc: Linus Torvalds <>
[ Moved the sample_id_add to after trying to open the events, use pr_warning ]
Signed-off-by: Arnaldo Carvalho de Melo <>
1 file changed