Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-18 Thread Songshan Gong
在 7/19/2016 9:50 AM, Songshan Gong 写道: 在 7/19/2016 9:37 AM, Songshan Gong 写道: 在 7/18/2016 10:07 PM, Jiri Olsa 写道: On Fri, Jul 15, 2016 at 06:15:11PM +0800, Song Shan Gong wrote: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-18 Thread Songshan Gong
在 7/19/2016 9:50 AM, Songshan Gong 写道: 在 7/19/2016 9:37 AM, Songshan Gong 写道: 在 7/18/2016 10:07 PM, Jiri Olsa 写道: On Fri, Jul 15, 2016 at 06:15:11PM +0800, Song Shan Gong wrote: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-18 Thread Songshan Gong
在 7/19/2016 9:37 AM, Songshan Gong 写道: 在 7/18/2016 10:07 PM, Jiri Olsa 写道: On Fri, Jul 15, 2016 at 06:15:11PM +0800, Song Shan Gong wrote: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-18 Thread Songshan Gong
在 7/19/2016 9:37 AM, Songshan Gong 写道: 在 7/18/2016 10:07 PM, Jiri Olsa 写道: On Fri, Jul 15, 2016 at 06:15:11PM +0800, Song Shan Gong wrote: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-18 Thread Jiri Olsa
On Fri, Jul 15, 2016 at 06:15:11PM +0800, Song Shan Gong wrote: > At preset, when creating module's map, perf gets 'start' address by parsing > '/proc/modules', but it's module base address, isn't the start address of > '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and >

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-18 Thread Jiri Olsa
On Fri, Jul 15, 2016 at 06:15:11PM +0800, Song Shan Gong wrote: > At preset, when creating module's map, perf gets 'start' address by parsing > '/proc/modules', but it's module base address, isn't the start address of > '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and >

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-17 Thread Songshan Gong
在 7/15/2016 6:15 PM, Song Shan Gong 写道: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and 'PLT' relocations before

Re: [RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-17 Thread Songshan Gong
在 7/15/2016 6:15 PM, Song Shan Gong 写道: At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and 'PLT' relocations before

[RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-15 Thread Song Shan Gong
At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and 'PLT' relocations before '.text' section. So there exists an offset

[RFC PATCH V2] s390/perf: fix 'start' address of module's map

2016-07-15 Thread Song Shan Gong
At preset, when creating module's map, perf gets 'start' address by parsing '/proc/modules', but it's module base address, isn't the start address of '.text' section. In most archs, it's OK. But for s390, it places 'GOT' and 'PLT' relocations before '.text' section. So there exists an offset