Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752187AbbB1JZN (ORCPT ); Sat, 28 Feb 2015 04:25:13 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:33551 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750825AbbB1JZI (ORCPT ); Sat, 28 Feb 2015 04:25:08 -0500 Date: Sat, 28 Feb 2015 10:25:03 +0100 From: Ingo Molnar To: 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 Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:perf/core] perf tools: Add feature check for libbabeltrace Message-ID: <20150228092503.GA28894@gmail.com> References: <1424470628-5969-2-git-send-email-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Content-Length: 2693 Lines: 64 * 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(). 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. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/