Re: [tip:perf/core] perf probe: Add --list option for listing currentprobe events

From: Wang Liming
Date: Wed Dec 02 2009 - 01:21:10 EST


Frederic Weisbecker wrote:
On Wed, Dec 02, 2009 at 01:35:39PM +0800, Wang Liming wrote:
Yes, my glibc is old so that "perf" can't be built. I'm using ubuntu 8.04.

Thanks a lot.



What is your glibc version?
%m appears to be supported since 2.7
I'm using ubuntu 8.04, and glibc version seems to be 2.7.

$dpkg -l |grep libc|less
ii libc6 2.7-10ubuntu4 GNU C Library: Shared libraries
ii libc6-dev 2.7-10ubuntu4 GNU C Library: Development Libraries and Header

$gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)


But if possible we would like perf to be buildable on most
boxes. May be should we use %a instead there.
I think so. We couldn't assume that all users use the latest glibc.

Liming Wang

odd gcc versions will whine because of the confusion with the %a for
floating point things but that can be worked around with (float *) casts (sigh).
Well, since we also have strict aliasing checks, we'll actually need:

scanf("%a", (float *)(void *)str);

We do that in util/trace-event-parse.c



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