[PATCH 12/24] perf record: Make record__mmap_read generic

2017-10-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It becomes a perf_mmap method, "push", that build reads from a mmap and "pushes" it to a consumer, that in the initial case, for 'perf record', just writes it to the perf.data file descriptor, but may be used by 'top', etc. Cc: Adrian Hunter

[PATCH 12/24] perf record: Make record__mmap_read generic

2017-10-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It becomes a perf_mmap method, "push", that build reads from a mmap and "pushes" it to a consumer, that in the initial case, for 'perf record', just writes it to the perf.data file descriptor, but may be used by 'top', etc. Cc: Adrian Hunter Cc: David Ahern Cc: