Re: [BUGFIX PATCH] tracing/kprobes: Fix to check notrace function with correct range

2018-08-22 Thread Steven Rostedt
On Thu, 23 Aug 2018 10:18:31 +0900 Masami Hiramatsu wrote: > On Wed, 22 Aug 2018 08:58:09 -0400 > Steven Rostedt wrote: > > > On Tue, 21 Aug 2018 09:42:49 -0400 > > Steven Rostedt wrote: > > > > > On Tue, 21 Aug 2018 22:04:57 +0900 > > > Masami Hiramatsu wrote: > > > > > > > Fix within_

Re: [BUGFIX PATCH] tracing/kprobes: Fix to check notrace function with correct range

2018-08-22 Thread Masami Hiramatsu
On Wed, 22 Aug 2018 08:58:09 -0400 Steven Rostedt wrote: > On Tue, 21 Aug 2018 09:42:49 -0400 > Steven Rostedt wrote: > > > On Tue, 21 Aug 2018 22:04:57 +0900 > > Masami Hiramatsu wrote: > > > > > Fix within_notrace_func() to check notrace function correctly. > > > > > > Since the ftrace_loc

Re: [BUGFIX PATCH] tracing/kprobes: Fix to check notrace function with correct range

2018-08-22 Thread Steven Rostedt
On Tue, 21 Aug 2018 09:42:49 -0400 Steven Rostedt wrote: > On Tue, 21 Aug 2018 22:04:57 +0900 > Masami Hiramatsu wrote: > > > Fix within_notrace_func() to check notrace function correctly. > > > > Since the ftrace_location_range(start, end) function checks > > the range inclusively (start <= f

Re: [BUGFIX PATCH] tracing/kprobes: Fix to check notrace function with correct range

2018-08-21 Thread Steven Rostedt
On Tue, 21 Aug 2018 22:04:57 +0900 Masami Hiramatsu wrote: > Fix within_notrace_func() to check notrace function correctly. > > Since the ftrace_location_range(start, end) function checks > the range inclusively (start <= ftrace-loc <= end), the end > address must not include the entry address o

[BUGFIX PATCH] tracing/kprobes: Fix to check notrace function with correct range

2018-08-21 Thread Masami Hiramatsu
Fix within_notrace_func() to check notrace function correctly. Since the ftrace_location_range(start, end) function checks the range inclusively (start <= ftrace-loc <= end), the end address must not include the entry address of next function. However, within_notrace_func() uses kallsyms_lookup_s