Re: [PATCH] perf tools: Fix perf_evlist__mmap_read event overflow

2013-10-07 Thread David Ahern
On 10/2/13 7:46 AM, Jiri Olsa wrote: The perf_evlist__mmap_read used 'union perf_event' as a placeholder for event crossing the mmap boundary. This is ok for sample shorter than ~PATH_MAX. However we could grow up to the maximum sample size which is 16 bits max. I hit this overflow issue when u

[PATCH] perf tools: Fix perf_evlist__mmap_read event overflow

2013-10-02 Thread Jiri Olsa
The perf_evlist__mmap_read used 'union perf_event' as a placeholder for event crossing the mmap boundary. This is ok for sample shorter than ~PATH_MAX. However we could grow up to the maximum sample size which is 16 bits max. I hit this overflow issue when using 'perf top -G dwarf' which produces