Re: [PATCH] perf uprobe: Skip prologue if program compiled without optimization

2016-08-03 Thread Ravi Bangoria
Thanks Masami, On Tuesday 02 August 2016 08:22 PM, Masami Hiramatsu wrote: On Mon, 1 Aug 2016 14:19:28 +0530 Ravi Bangoria wrote: Function prologue prepares stack and registers before executing function logic. When target program is compiled without

Re: [PATCH] perf uprobe: Skip prologue if program compiled without optimization

2016-08-03 Thread Ravi Bangoria
Thanks Masami, On Tuesday 02 August 2016 08:22 PM, Masami Hiramatsu wrote: On Mon, 1 Aug 2016 14:19:28 +0530 Ravi Bangoria wrote: Function prologue prepares stack and registers before executing function logic. When target program is compiled without optimization, function parameter

Re: [PATCH] perf uprobe: Skip prologue if program compiled without optimization

2016-08-02 Thread Masami Hiramatsu
On Mon, 1 Aug 2016 14:19:28 +0530 Ravi Bangoria wrote: > Function prologue prepares stack and registers before executing function > logic. When target program is compiled without optimization, function > parameter information is only valid after prologue. When

Re: [PATCH] perf uprobe: Skip prologue if program compiled without optimization

2016-08-02 Thread Masami Hiramatsu
On Mon, 1 Aug 2016 14:19:28 +0530 Ravi Bangoria wrote: > Function prologue prepares stack and registers before executing function > logic. When target program is compiled without optimization, function > parameter information is only valid after prologue. When we probe entrypc > of the

[PATCH] perf uprobe: Skip prologue if program compiled without optimization

2016-08-01 Thread Ravi Bangoria
Function prologue prepares stack and registers before executing function logic. When target program is compiled without optimization, function parameter information is only valid after prologue. When we probe entrypc of the function, and try to record function parameter, it contains garbage value.

[PATCH] perf uprobe: Skip prologue if program compiled without optimization

2016-08-01 Thread Ravi Bangoria
Function prologue prepares stack and registers before executing function logic. When target program is compiled without optimization, function parameter information is only valid after prologue. When we probe entrypc of the function, and try to record function parameter, it contains garbage value.