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

From: Peter Zijlstra
Date: Tue Mar 20 2012 - 11:34:03 EST


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