Re: [PATCH 1/4] perf tools: unwind: ensure unwind hooks return negative errorno.

2015-04-07 Thread Wang Nan
Hi folks, I'm rethinking --map-adjustment now, and I believe what we need should be something like 'perf inject', which allows us to inject fake mmap events into perf.data to make 'perf report' believe some //anon memory are file based mapping. Patch 2/4 - 4/4 seem not useful now. However, patch

Re: [PATCH 1/4] perf tools: unwind: ensure unwind hooks return negative errorno.

2015-04-01 Thread Wang Nan
On 2015/4/1 20:12, Jiri Olsa wrote: > On Wed, Apr 01, 2015 at 10:33:12AM +, Wang Nan wrote: >> According to man pages of libunwind, unwind hooks should return >> 'negative value of one of the unw_error_t error-codes', they are >> different from generic error code. In addition, access_dso_mem()

Re: [PATCH 1/4] perf tools: unwind: ensure unwind hooks return negative errorno.

2015-04-01 Thread Jiri Olsa
On Wed, Apr 01, 2015 at 10:33:12AM +, Wang Nan wrote: > According to man pages of libunwind, unwind hooks should return > 'negative value of one of the unw_error_t error-codes', they are > different from generic error code. In addition, access_dso_mem() > returns '!(size == sizeof(*data))', com