lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B160769.2060802@windriver.com>
Date:	Wed, 02 Dec 2009 14:21:29 +0800
From:	Wang Liming <liming.wang@...driver.com>
To:	Frederic Weisbecker <fweisbec@...il.com>
CC:	Masami Hiramatsu <mhiramat@...hat.com>, mingo@...hat.com,
	peterz@...radead.org, linux-kernel@...r.kernel.org,
	acme@...hat.com, rostedt@...dmis.org, jbaron@...hat.com,
	tglx@...utronix.de, fche@...hat.com, jkenisto@...ibm.com,
	hch@...radead.org, ananth@...ibm.com, srikar@...ux.vnet.ibm.com,
	prasad@...ux.vnet.ibm.com
Subject: Re: [tip:perf/core] perf probe: Add --list option for listing	current
 probe events

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ