From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753264AbbCJQ7S (ORCPT ); Tue, 10 Mar 2015 12:59:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54705 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbbCJQ7O (ORCPT ); Tue, 10 Mar 2015 12:59:14 -0400 Date: Tue, 10 Mar 2015 12:03:25 -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] perf build: Fix libbabeltrace detection Message-ID: <20150310150325.GI14515@redhat.com> References: <20150225192344.GH18705@kernel.org> <20150301132043.GA17097@krava.redhat.com> <20150302153220.GD6723@redhat.com> <20150309121203.GF27885@krava.brq.redhat.com> <20150309215121.GB14515@redhat.com> <20150309231119.GD14515@redhat.com> <20150309232845.GE14515@redhat.com> <20150310120035.GA4333@krava.redhat.com> <20150310140134.GF14515@redhat.com> <20150310141111.GB4333@krava.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150310141111.GB4333@krava.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 Tue, Mar 10, 2015 at 03:11:11PM +0100, Jiri Olsa escreveu: > On Tue, Mar 10, 2015 at 11:01:34AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Mar 10, 2015 at 01:00:35PM +0100, Jiri Olsa escreveu: > > > On Mon, Mar 09, 2015 at 08:28:45PM -0300, Arnaldo Carvalho de Melo wrote: > > > > Em Mon, Mar 09, 2015 at 08:11:19PM -0300, Arnaldo Carvalho de Melo escreveu: > > > +#include > > Right, that was the fix I found as well, well, I was trying to include > > _just_ babeltrace/ctf-ir/stream-class.h, but that is buggy in that it > > doesn't include the header file with the uint32_t and int64_t types: > > yep, thats the 'libbabeltrace quirk' I mentioned in the changelog ;-) :-) > > +++ b/tools/perf/config/Makefile > > @@ -184,7 +184,7 @@ endif > > > > feature_check = $(eval $(feature_check_code)) > > define feature_check_code > > - feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C config/feature-checks test-$1.bin >/dev/null 2>/dev/null && echo 1 || > > + feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C config/feature-checks test-$1.bin > $(OUTPUT_FEATURES)make-$(1) 2>&1 > > endef > > ack, that seem usefull.. I always redirected this to '>> /tmp/krava' > never got enough will to make it nice and generic ;-) Ok, lemme do a stop-machine and collect all these fixes... - Arnaldo