lkml.org 
[lkml]   [2012]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/5] ftrace: Synchronize variable setting with breakpoints
From
Date
On Thu, 2012-05-31 at 16:37 -0400, Steven Rostedt wrote:
> On Thu, 2012-05-31 at 22:26 +0200, Peter Zijlstra wrote:
>
> > Right, but when you loose stop-machine you could simply do 30k
> > kmap_atomic/kunmap_atomic's consecutively since you're not holding
> > anybody up.
>
> It requires 3 IPIs per update too. Thus that's 90,000 IPIs you are
> blasting^Wsending to all CPUs.

Uhm, no.

for_each() {
kmap_atomic()
frob int3
kunmap_atomic();
}

sync-ipi-broadcast();

for_each() {
kmap_atomic();
frob tail
kunmap_atomic();
}

sync-ipi-broadcast();

for_each() {
kmap_atomic();
frob head
kunmap_atomic();
};

sync-ipi-broadcast();

How is that sending 90k ipis?


\
 
 \ /
  Last update: 2012-05-31 23:01    [W:0.137 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site