Skip symbols from IRQ stack.

There is a bug in the kernel where it includes the stack of the IRQ
that generated the event, so that the stack ends up looking like this:

	[ip] [irq stack] [real stack].

As a temporary workaround, this patch filters out the irq stack
symbols.
This commit is contained in:
Søren Sandmann Pedersen
2009-10-29 07:31:31 -04:00
parent 7fc23589a2
commit ae77f078d3
2 changed files with 44 additions and 2 deletions

View File

@ -362,7 +362,7 @@ counter_new (Collector *collector,
{
attr.type = PERF_TYPE_SOFTWARE;
attr.config = PERF_COUNT_SW_CPU_CLOCK;
attr.sample_period = 2000000;
attr.sample_period = 1000000;
fd = sysprof_perf_counter_open (&attr, -1, cpu, -1, 0);
}