Re: [BUG] perf: bogus correlation of kernel symbols

From: Ingo Molnar
Date: Thu May 12 2011 - 17:55:06 EST



* Stephane Eranian <eranian@xxxxxxxxxx> wrote:

> >> [...] So much for having perf in the kernel source tree to keep things in
> >> sync...
> >
> > What do you mean?
>
> I meant that when this kptr feature was added, people should have scanned the
> entire tree (include tools/perf) to look for potential impact on programs
> relying on /proc/kallsyms. Having perf in the tree should have made this
> easier to catch. That's all.

It was noticed in another case when there was kallsyms twiddling going on so it
depends. What wasnt noticed here was how the present but zero value symbols:

0000000000000000 D irq_stack_union
0000000000000000 D __per_cpu_start
0000000000000000 D gdt_page
0000000000000000 d exception_stacks
0000000000000000 d tlb_vector_offset
0000000000000000 d shared_msrs
0000000000000000 d cpu_tsc_khz

caused the symbol code of perf consider them non-existing.

Perf being in-tree wont magically avoid all bugs, so you should not expect that
magical effect from tool integration into the kernel tree.

Thanks,

Ingo
--
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/