[PATCH V2 13/20] perf buildid-cache: kcore_copy: Keep phdr data in a list

2018-05-17 Thread Adrian Hunter
Currently, kcore_copy makes 2 program headers, one for the kernel text (namely kernel_map) and one for the modules (namely modules_map). Now more program headers are needed, but treating each program header as a special case results in much more code. Instead, in preparation to add more program

[PATCH V2 13/20] perf buildid-cache: kcore_copy: Keep phdr data in a list

2018-05-17 Thread Adrian Hunter
Currently, kcore_copy makes 2 program headers, one for the kernel text (namely kernel_map) and one for the modules (namely modules_map). Now more program headers are needed, but treating each program header as a special case results in much more code. Instead, in preparation to add more program