lkml.org 
[lkml]   [2004]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Date
From
SubjectRe: [0/3]kprobes-base-268-rc3.patch
On Sun, Aug 08, 2004 at 10:23:15PM -0400, S Vamsikrishna wrote:
> Hi,
>
> A few comments/questions on this patch:
>
> - An unconditional call is added in the do_page_fault hot path. Is this
> ok?
> The version of kprobes that hooks directly into the do_page_fault is
> better
> in the common case of page fault occuring outside of the kprobe handler,
> the overhead is only a global variable load and compare.

If this should be a problem the notifier can be changed again to do
a quick check inline if the notifier list is empty or not.

The old notifiers were fully inline, but that was changed later.

>
> - Would the absence of any locking on the read-side of the notifier chains
> cause any problems, especially when it is in a frequently hit place
> like the do_page_fault?

The notifiers were intended to not be unloaded originally. But with RCU
you could unload them anyways

(ok would probably need some depends memory barriers in the notifier
walk on Alpha, should work everywhere else)

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.021 / U:12.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site