Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5554759ybp; Tue, 8 Oct 2019 04:55:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ6cAIpwmZrgy04SCLtaILNm4y6G4yAUjPEndE0QWWzT+olp+PswDQoBCTIPMqgg814r5f X-Received: by 2002:a50:918d:: with SMTP id g13mr33472682eda.64.1570535719715; Tue, 08 Oct 2019 04:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570535719; cv=none; d=google.com; s=arc-20160816; b=yyR7WxrAQpONQoMWzUfCbNG3LPtKLnuG/ySeW5RqbLu3qovX+ADM1zjU3j+qKhvuET Cr/Nm6HLGEoP38bPG3PLkmjdDYhrZNp6A+4wE+Stel6sN3hyfbx1HgpHECUXvyoFam9o /p7EbENz6CsP8RJBpKxIfU0gHAvRHHx/Vi/YIu3gc9Zkcc873pEf4ZG52aYQbljQQpo1 M75I7Gy7S2CeTJlZJTyq4qDLqt1LS8FO7J9Mu+K2zggKhgEpez1GVcEkf18bJyQMBYzW wiWKQNBg5mGCRyO6k3PGQcsrehdISdEXPg7JgZpM9xaf3MM/38iB8wt5JoGuIYIA1viv OMwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WjFERVD2eTPkOXTVUvFzOPaSR1OkOfUptOfWkK26sRA=; b=EUzCFe/PeLeRc2oHXtQZ5wCbuSNH245BYW8+X0R5Q42HUuFaN5/fxLthUjsCjbgSmw /bOgXKu6+OVGBY8bZZTVMw7t2EtzRo3cosbEjt0StYgh8eVDTS6n+k6IwR/XHNETy3dU vgw+RSa7IvxGu36tFsyTaEw7ZqUU4ViZ6uPYbze8gGSxTZMW047DJfCz5Ru548onSDa7 5+F0sO9td81i5rzjrT6GhLhkQfcD1fzMmSQAwx6vHg44OfjvdE3d+14T3lxdFHZuyq/Z WU6FU1NgHziNQ0wso47n+Vdqp2QG0q3Kja/cKBd1UTqvS1FzCcLPHMZyKffCt2l3IpGu 76Ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si8739983ejh.281.2019.10.08.04.54.56; Tue, 08 Oct 2019 04:55:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730648AbfJHLwn (ORCPT + 99 others); Tue, 8 Oct 2019 07:52:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55824 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730317AbfJHLwn (ORCPT ); Tue, 8 Oct 2019 07:52:43 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E9B6D121D; Tue, 8 Oct 2019 11:52:42 +0000 (UTC) Received: from krava (unknown [10.40.205.103]) by smtp.corp.redhat.com (Postfix) with SMTP id 8917B60BE0; Tue, 8 Oct 2019 11:52:41 +0000 (UTC) Date: Tue, 8 Oct 2019 13:52:40 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH] perf data: Fix babeltrace detection Message-ID: <20191008115240.GE10009@krava> References: <20191007174120.12330-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191007174120.12330-1-andi@firstfloor.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 08 Oct 2019 11:52:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 07, 2019 at 10:41:20AM -0700, Andi Kleen wrote: > From: Andi Kleen > > The symbol the feature file checks for is now actually in -lbabeltrace, > not -lbabeltrace-ctf, at least as of libbabeltrace-1.5.6-2.fc30.x86_64 > > Always add both libraries to fix the feature detection. well, we link with libbabeltrace-ctf.so which links with libbabeltrace.so I guess we can link it as well, but where do you see it fail? jirka > > Signed-off-by: Andi Kleen > --- > tools/perf/Makefile.config | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index bf8caa7d17f6..71638917e18a 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -155,7 +155,7 @@ ifdef LIBBABELTRACE_DIR > LIBBABELTRACE_LDFLAGS := -L$(LIBBABELTRACE_DIR)/lib > endif > FEATURE_CHECK_CFLAGS-libbabeltrace := $(LIBBABELTRACE_CFLAGS) > -FEATURE_CHECK_LDFLAGS-libbabeltrace := $(LIBBABELTRACE_LDFLAGS) -lbabeltrace-ctf > +FEATURE_CHECK_LDFLAGS-libbabeltrace := $(LIBBABELTRACE_LDFLAGS) -lbabeltrace-ctf -lbabeltrace > > ifdef LIBZSTD_DIR > LIBZSTD_CFLAGS := -I$(LIBZSTD_DIR)/lib > @@ -895,7 +895,7 @@ ifndef NO_LIBBABELTRACE > ifeq ($(feature-libbabeltrace), 1) > CFLAGS += -DHAVE_LIBBABELTRACE_SUPPORT $(LIBBABELTRACE_CFLAGS) > LDFLAGS += $(LIBBABELTRACE_LDFLAGS) > - EXTLIBS += -lbabeltrace-ctf > + EXTLIBS += -lbabeltrace-ctf -lbabeltrace > $(call detected,CONFIG_LIBBABELTRACE) > else > msg := $(warning No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev); > -- > 2.21.0 >