From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751706AbbB1M3N (ORCPT ); Sat, 28 Feb 2015 07:29:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47486 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbbB1M3L (ORCPT ); Sat, 28 Feb 2015 07:29:11 -0500 Date: Sat, 28 Feb 2015 13:28:14 +0100 From: Jiri Olsa To: Ingo Molnar Cc: dsahern@gmail.com, jolsa@kernel.org, namhyung@kernel.org, acme@redhat.com, hpa@zytor.com, fweisbec@gmail.com, jgalar@efficios.com, linux-kernel@vger.kernel.org, wangnan0@huawei.com, bigeasy@linutronix.de, tzanussi@gmail.com, tglx@linutronix.de, paulus@samba.org, peterz@infradead.org, linux-tip-commits@vger.kernel.org Subject: Re: [tip:perf/core] perf tools: Add feature check for libbabeltrace Message-ID: <20150228122814.GA3185@krava.redhat.com> References: <1424470628-5969-2-git-send-email-jolsa@kernel.org> <20150228092503.GA28894@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150228092503.GA28894@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 28, 2015 at 10:25:03AM +0100, Ingo Molnar wrote: > > * tip-bot for Jiri Olsa wrote: > > > Commit-ID: 53d0a57343949b2af9b27229db534b98e5a0c4d0 > > Gitweb: http://git.kernel.org/tip/53d0a57343949b2af9b27229db534b98e5a0c4d0 > > Author: Jiri Olsa > > AuthorDate: Fri, 20 Feb 2015 23:16:58 +0100 > > Committer: Arnaldo Carvalho de Melo > > CommitDate: Wed, 25 Feb 2015 12:42:24 -0300 > > > > perf tools: Add feature check for libbabeltrace > > > > Adding feature check for babeltrace library [1], which will be used for > > perf data file CTF [2] conversion in following patches. > > So this doesn't work on recent Ubuntu systems: > > ... libbabeltrace: [ OFF ] > > triton:~/tip/tools/perf/config/feature-checks> make > test-libbabeltrace.bin > gcc -MD -Wall -Werror -o test-libbabeltrace.bin test-libbabeltrace.c > # -lbabeltrace provided by > test-libbabeltrace.c: In function ‘main’:test-libbabeltrace.c:6:2: error: implicit declaration of function ‘bt_ctf_stream_class_get_packet_context_type’ [-Werror=implicit-function-declaration] > bt_ctf_stream_class_get_packet_context_type((void *) 0); > ^ > cc1: all warnings being treated as errors > Makefile:140: recipe for target 'test-libbabeltrace.bin' failed > > I have all the requirements, libbabeltrace-ctf-dev and > libbabeltrace-dev installed, yet the writer.h file: > > -rw-r--r-- 1 root root 5283 Oct 7 14:44 /usr/include/babeltrace/ctf-writer/writer.h > > does not include a prototype for > bt_ctf_stream_class_get_packet_context_type(). hum, I have it in stream-class.h and it seems to be there since Jul 29 2014 What is the libbabeltrace package version on Ubuntu? > > If Ubuntu's writer.h is too old then either our API use should match > the ones available: > > triton:~/tip/tools/perf/config/feature-checks> grep extern > /usr/include/babeltrace/ctf-writer/writer.h > extern "C" { > extern struct bt_ctf_writer *bt_ctf_writer_create(const char *path); > extern struct bt_ctf_stream *bt_ctf_writer_create_stream( > extern int bt_ctf_writer_add_environment_field(struct bt_ctf_writer *writer, > extern int bt_ctf_writer_add_clock(struct bt_ctf_writer *writer, > extern char *bt_ctf_writer_get_metadata_string(struct bt_ctf_writer *writer); > extern void bt_ctf_writer_flush_metadata(struct bt_ctf_writer *writer); > extern int bt_ctf_writer_set_byte_order(struct bt_ctf_writer *writer, > extern void bt_ctf_writer_get(struct bt_ctf_writer *writer); > extern void bt_ctf_writer_put(struct bt_ctf_writer *writer); > > or CTF support should be removed from the default set of perf > features, because right now it blocks the 'all' build speedup. I'll try to get Ubuntu system and check, but I'd be ok to put it out of the default set until ditributions catch up.. I'll check next week and send patch or update thanks, jirka