Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp964813ybp; Fri, 11 Oct 2019 07:07:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXH1GTg0+/WWWG6DeMXLwxnMEiXdyvxlGnbOaNO2+cR91hCWHMFhmZq/Hcwr1XCQheMQEp X-Received: by 2002:a05:6402:296:: with SMTP id l22mr13849515edv.86.1570802860987; Fri, 11 Oct 2019 07:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570802860; cv=none; d=google.com; s=arc-20160816; b=yw480PoQJD5Wi8TO8vKQztC/j/wHd9BovMj9Iq5+pvhuu/RGrmz/RDxDD5uIfvn0ZN tW6pKZNc4eKX0nf4d2loRMAhEp+2O2M7VQWyGUc/743CfC6uzw68WpxduEFO/MkGTpyv 2ffHNBJPdVqqOOWcFYm30L+B/WaEmgUk35aYNmpWmayAIlkolXJuiNoaU1U18xZFDC86 GdVYJ/olz+0C3VJRysj0sFc2bzx9PSbOV8PoDx7vV8AfDcSFbtOSSlOPhF52yclnopDg qxa0jR8SPSiBSbMe+Yt81Oz08BlW33VshKF7olhjvh7mu/+CELv5BLuccaHWZ7ir4Yi4 ztWQ== 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=rOe4lmKTu+k3ydP4uW2Ue8kMKhkHo76C6dZcAqe+cZo=; b=TzLrpVKViDiWyx+nTGahE2Ix3O9zs210aFgiLHB5ztar39n3+eYnbpw94KFkUmhC9F bkB2ol//lZXZEAUsLHndsF7RNATST9yBInBgsLL966kHvozZyomOC40X42zFnjT7h600 NsGboCsUh2jLNRB0GSvbn5YGZaorrJptfdCvtSIifItHNMk03AAUbN9qe0TFqbP14ONR NLHVePbv9eydDAr8hYVpij9roP9HEsQz9awD4LuPCjLrmMtTL6sPmECl9ddZYtFkOXAt oT2KRus3zZqVkp5KHFupRwMl3NxVizVmRqBcmQvNP8/sn4zWZgoC4fOrszZ/b1XaFKbg +Qmw== 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 nh5si5242708ejb.154.2019.10.11.07.07.16; Fri, 11 Oct 2019 07:07:40 -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 S1728668AbfJKOGH (ORCPT + 99 others); Fri, 11 Oct 2019 10:06:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48740 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728483AbfJKOFv (ORCPT ); Fri, 11 Oct 2019 10:05:51 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E55A510C051D; Fri, 11 Oct 2019 14:05:50 +0000 (UTC) Received: from krava (unknown [10.40.206.21]) by smtp.corp.redhat.com (Postfix) with SMTP id 6CFEB45A3; Fri, 11 Oct 2019 14:05:49 +0000 (UTC) Date: Fri, 11 Oct 2019 16:05:48 +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: <20191011140548.GA20544@krava> References: <20191007174120.12330-1-andi@firstfloor.org> <20191008115240.GE10009@krava> <20191008142143.ts5se4pzwfnfnbsh@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008142143.ts5se4pzwfnfnbsh@two.firstfloor.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.65]); Fri, 11 Oct 2019 14:05:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2019 at 07:21:44AM -0700, Andi Kleen wrote: > On Tue, Oct 08, 2019 at 01:52:40PM +0200, Jiri Olsa wrote: > > 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? > > On FC30 the .so file is just a symlink, so it doesn't pull > in the other library. > > $ gcc test-libbabeltrace.c -lbabeltrace-ctf > /usr/bin/ld: > /usr/lib/gcc/x86_64-redhat-linux/9/../../../../lib64/libbabeltrace-ctf.so: > undefined reference to `bt_packet_seek_get_error' > /usr/bin/ld: > /usr/lib/gcc/x86_64-redhat-linux/9/../../../../lib64/libbabeltrace-ctf.so: > undefined reference to `bt_packet_seek_set_error' > collect2: error: ld returned 1 exit status I'm confused, the test-libbabeltrace.c checks for bt_ctf_stream_class_get_packet_context_type which is in libbabeltrace-ctf: [jolsa@dell-r440-01 feature]$ nm -D /usr/lib64/libbabeltrace-ctf.so | grep bt_ctf_stream_class_get_packet_context_type 0000000000032960 T bt_ctf_stream_class_get_packet_context_type [jolsa@dell-r440-01 feature]$ cat /etc/redhat-release Fedora release 30 (Thirty) [jolsa@dell-r440-01 feature]$ rpm -qa | grep libbabeltrace-1.5.6-2.fc30.x86_64 libbabeltrace-1.5.6-2.fc30.x86_64 I also get proper feature detection on F30: $ make VF=1 ... libbabeltrace: [ on ] jirka > > $ ls -l /usr/lib64/libbabeltrace-ctf.so > lrwxrwxrwx 1 root root 26 Jan 31 2019 /usr/lib64/libbabeltrace-ctf.so > -> libbabeltrace-ctf.so.1.0.0 > > $ rpm -qf /usr/lib64/libbabeltrace-ctf.so > libbabeltrace-devel-1.5.6-2.fc30.x86_64 > > -Andi