From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753209AbbCIVvr (ORCPT ); Mon, 9 Mar 2015 17:51:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59283 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbbCIVvo (ORCPT ); Mon, 9 Mar 2015 17:51:44 -0400 Date: Mon, 9 Mar 2015 18:51:21 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Jiri Olsa , linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior , David Ahern , Frederic Weisbecker , Jeremie Galarneau , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Tom Zanussi , Wang Nan Subject: Re: [PATCH 05/11] perf data: Add tracepoint events fields CTF conversion support Message-ID: <20150309215121.GB14515@redhat.com> References: <1424470628-5969-1-git-send-email-jolsa@kernel.org> <1424470628-5969-6-git-send-email-jolsa@kernel.org> <20150225192344.GH18705@kernel.org> <20150301132043.GA17097@krava.redhat.com> <20150302153220.GD6723@redhat.com> <20150309121203.GF27885@krava.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150309121203.GF27885@krava.brq.redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Mar 09, 2015 at 01:12:04PM +0100, Jiri Olsa escreveu: > On Mon, Mar 02, 2015 at 12:32:20PM -0300, Arnaldo Carvalho de Melo wrote: > > SNIP > > > > > > > > > Can you try to reproduce this? The ctf-data/metadata file is below: > > > > > > hum, i just tried and can't reproduce this one.. anychance of mixed > > > babeltrace installations? How did you install babeltrace sources? > > > > I will recheck > > > > > I assume this was some standard Fedora latest something system right? > > > > This was on RHEL7 > > > > hum, how did you compile babeltrace on RHEL7 im getting following error: > > [root@intel-s3ea2-09 babeltrace]# ./bootstrap > + '[' '!' -e config ']' > + libtoolize --force --copy > libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. > libtoolize: copying file `config/ltmain.sh' > libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. > libtoolize: copying file `m4/libtool.m4' > libtoolize: copying file `m4/ltoptions.m4' > libtoolize: copying file `m4/ltsugar.m4' > libtoolize: copying file `m4/ltversion.m4' > libtoolize: copying file `m4/lt~obsolete.m4' > + autoreconf -i > configure.ac:48: warning: macro 'AM_PATH_GLIB_2_0' not found in library > configure.ac:48: warning: macro 'AM_PATH_GLIB_2_0' not found in library > configure.ac:48: error: possibly undefined macro: AM_PATH_GLIB_2_0 > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > autoreconf: /usr/bin/autoconf failed with exit status: 1 Trying again, freshly cloned babeltrace: [acme@ssdandy git]$ git clone git://git.efficios.com/babeltrace.git Cloning into 'babeltrace'... remote: Counting objects: 10295, done. remote: Compressing objects: 100% (3900/3900), done. remote: Total 10295 (delta 7295), reused 8784 (delta 6112) Receiving objects: 100% (10295/10295), 2.35 MiB | 537.00 KiB/s, done. Resolving deltas: 100% (7295/7295), done. [acme@ssdandy git]$ [acme@ssdandy linux]$ cd ../babeltrace/ [acme@ssdandy babeltrace]$ ./bootstrap + '[' '!' -e config ']' + mkdir config + libtoolize --force --copy libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. libtoolize: copying file `config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' + autoreconf -i configure.ac:11: installing 'config/config.guess' configure.ac:11: installing 'config/config.sub' configure.ac:13: installing 'config/install-sh' configure.ac:13: installing 'config/missing' bindings/python/Makefile.am: installing 'config/depcomp' bindings/python/Makefile.am:9: installing 'config/py-compile' configure.ac: installing 'config/ylwrap' [acme@ssdandy babeltrace]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.1 (Maipo) [acme@ssdandy babeltrace]$ [acme@ssdandy babeltrace]$ ./configure --prefix=/opt/libbabeltrace checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p config.status: creating babeltrace-ctf.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands [acme@ssdandy babeltrace]$ make prefix=/opt/libbabeltrace [acme@dandy babeltrace]$ sudo make install prefix=/opt/libbabeltrace All looks fine, trying to build... [acme@ssdandy linux]$ rm -rf /tmp/build/perf ; mkdir -p /tmp/build/perf ; time make LIBBABELTRACE_DIR=/opt/libbabeltrace O=/tmp/build/perf -C tools/perf install-bin make: Entering directory `/home/acme/git/linux/tools/perf' BUILD: Doing 'make -j8' parallel build config/Makefile:425: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR config/Makefile:709: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev Auto-detecting system features: ... dwarf: [ on ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ on ] ... libbfd: [ on ] ... libelf: [ on ] ... libnuma: [ on ] ... libperl: [ on ] ... libpython: [ on ] ... libslang: [ on ] ... libunwind: [ OFF ] ... libdw-dwarf-unwind: [ on ] ... libbabeltrace: [ OFF ] Doesn't work... Will try not using O=: [acme@ssdandy perf]$ time make LIBBABELTRACE_DIR=/opt/libbabeltrace install-bin BUILD: Doing 'make -j8' parallel build config/Makefile:425: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR config/Makefile:709: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev Auto-detecting system features: ... dwarf: [ on ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ on ] ... libbfd: [ on ] ... libelf: [ on ] ... libnuma: [ on ] ... libperl: [ on ] ... libpython: [ on ] ... libslang: [ on ] ... libunwind: [ OFF ] ... libdw-dwarf-unwind: [ on ] ... libbabeltrace: [ OFF ] ... zlib: [ on ] ... DWARF post unwind library: libdw Doesn't work as well... :-\ Will try debugging... - Arnaldo