Re: [PATCH] perf, tool: Treat all memory maps without dso file asloaded

From: Arnaldo Carvalho de Melo
Date: Thu Sep 29 2011 - 18:10:10 EST


Em Thu, Sep 29, 2011 at 06:11:03PM +0200, Jiri Olsa escreveu:
> > and here it is ;)
>
> hi,
> any feedback?

I'm applying it now because the warning is annoying, but recently I
noticed that at least for vdso:


[admin@felicio x86_64]$ rpm -ql kernel-2.6.35.14-96.fc14 | grep vdso
/lib/modules/2.6.35.14-96.fc14.x86_64/vdso
/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso.so
/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso32-int80.so
/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso32-syscall.so
/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso32-sysenter.so
[admin@felicio x86_64]$ readelf -s /lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso.so | head

Symbol table '.dynsym' contains 9 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: ffffffffff70030c 0 SECTION LOCAL DEFAULT 7
2: ffffffffff700830 133 FUNC WEAK DEFAULT 12 clock_gettime@@LINUX_2.6
3: 0000000000000000 0 OBJECT GLOBAL DEFAULT ABS LINUX_2.6
4: ffffffffff7008c0 139 FUNC GLOBAL DEFAULT 12 __vdso_gettimeofday@@LINUX_2.6
5: ffffffffff700950 61 FUNC GLOBAL DEFAULT 12 __vdso_getcpu@@LINUX_2.6
6: ffffffffff7008c0 139 FUNC WEAK DEFAULT 12 gettimeofday@@LINUX_2.6
[admin@felicio x86_64]$ rpm -ql kernel-debuginfo | grep vdso
/usr/lib/debug/lib/modules/2.6.35.14-96.fc14.x86_64/vdso
/usr/lib/debug/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso.so.debug
/usr/lib/debug/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso32-int80.so.debug
/usr/lib/debug/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso32-syscall.so.debug
/usr/lib/debug/lib/modules/2.6.35.14-96.fc14.x86_64/vdso/vdso32-sysenter.so.debug
[admin@felicio x86_64]$

So eventually we need to remove "[vdso]" from that function and make it use the
symtabs above.

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