From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755875AbbBRSkh (ORCPT ); Wed, 18 Feb 2015 13:40:37 -0500 Received: from terminus.zytor.com ([198.137.202.10]:41673 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753117AbbBRSkf (ORCPT ); Wed, 18 Feb 2015 13:40:35 -0500 Date: Wed, 18 Feb 2015 10:39:44 -0800 From: tip-bot for Jiri Olsa Message-ID: Cc: tglx@linutronix.de, acme@redhat.com, linux-kernel@vger.kernel.org, cjashfor@linux.vnet.ibm.com, will.deacon@arm.com, hpa@zytor.com, sukadev@linux.vnet.ibm.com, eranian@google.com, paulus@samba.org, mingo@kernel.org, dsahern@gmail.com, jolsa@kernel.org, fweisbec@gmail.com, peterz@infradead.org, namhyung@kernel.org, alexis.berlemont@gmail.com, bp@alien8.de Reply-To: eranian@google.com, paulus@samba.org, mingo@kernel.org, cjashfor@linux.vnet.ibm.com, hpa@zytor.com, will.deacon@arm.com, sukadev@linux.vnet.ibm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, acme@redhat.com, namhyung@kernel.org, bp@alien8.de, alexis.berlemont@gmail.com, dsahern@gmail.com, jolsa@kernel.org, fweisbec@gmail.com, peterz@infradead.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf build: Add build documentation Git-Commit-ID: f819f703a42eed63443cef796b1852e6baf985bd X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: f819f703a42eed63443cef796b1852e6baf985bd Gitweb: http://git.kernel.org/tip/f819f703a42eed63443cef796b1852e6baf985bd Author: Jiri Olsa AuthorDate: Wed, 14 Jan 2015 19:05:27 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 Feb 2015 17:53:00 -0300 perf build: Add build documentation Adding file describing the basics of perf build process. Signed-off-by: Jiri Olsa Tested-by: Sukadev Bhattiprolu Tested-by: Will Deacon Cc: Alexis Berlemont Cc: Borislav Petkov Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-ibgf7vxyduwohlqqfayl11xb@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/Build.txt | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/tools/perf/Documentation/Build.txt b/tools/perf/Documentation/Build.txt new file mode 100644 index 0000000..f6fc650 --- /dev/null +++ b/tools/perf/Documentation/Build.txt @@ -0,0 +1,49 @@ + +1) perf build +============= +The perf build process consists of several separated building blocks, +which are linked together to form the perf binary: + - libperf library (static) + - perf builtin commands + - traceevent library (static) + - GTK ui library + +Several makefiles govern the perf build: + + - Makefile + top level Makefile working as a wrapper that calls the main + Makefile.perf with a -j option to do parallel builds. + + - Makefile.perf + main makefile that triggers build of all perf objects including + installation and documentation processing. + + - tools/build/Makefile.build + main makefile of the build framework + + - tools/build/Build.include + build framework generic definitions + + - Build makefiles + makefiles that defines build objects + +Please refer to tools/build/Documentation/Build.txt for more +information about build framework. + + +2) perf build +============= +The Makefile.perf triggers the build framework for build objects: + perf, libperf, gtk + +resulting in following objects: + $ ls *-in.o + gtk-in.o libperf-in.o perf-in.o + +Those objects are then used in final linking: + libperf-gtk.so <- gtk-in.o libperf-in.o + perf <- perf-in.o libperf-in.o + + +NOTE this description is omitting other libraries involved, only + focusing on build framework outcomes