Re: bisected: 'perf top' causing soft lockups under Xen

Peter Zijlstra
2012-03-20T15:34:05Z

On Tue, 2012-03-20 at 11:23 -0400, Konrad Rzeszutek Wilk wrote:

> But in the meantime, are there any good docs to look over to get a good idea
> of how the perf code works?

Nope.. I don't think anybody bothered to write it down, and if they did
keep it up to date.

Best option is to just ask specific questions, either via email or irc.

But in particular the self-ipi stuff is contained in kernel/irq_work.c.
Its a lock-less list of work-items to be ran from irq-context on the cpu
that queues them. Typical usage would be from NMI context, although you
could equally well use it from any other context.