From patchwork Sun Oct 27 17:24:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 286352 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 8B24E2C0091 for ; Mon, 28 Oct 2013 04:24:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A26B88ABCC; Sun, 27 Oct 2013 17:24:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gTnRTJNY-Wqb; Sun, 27 Oct 2013 17:24:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C096F8AC01; Sun, 27 Oct 2013 17:24:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9203B1BF838 for ; Sun, 27 Oct 2013 17:24:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8F24A86FC4 for ; Sun, 27 Oct 2013 17:24:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mlUnLP+Nwf6S for ; Sun, 27 Oct 2013 17:24:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by whitealder.osuosl.org (Postfix) with ESMTPS id A86AA8AA73 for ; Sun, 27 Oct 2013 17:24:14 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id ex4so533255wid.5 for ; Sun, 27 Oct 2013 10:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=qP+ZQxCTJJh1OmgmA8pO6D129xP3vrfHnUZN5+JtNKU=; b=QTmFTc9auwDhrw7whsLI/38IyYoHIfThhlZLGS27mW0534/AbgvBUEb1EjqQRtTuAx PevanhlTrHPKWMgoZabA5QhsB+K4NRkepmAOfxJGisb3qI/xLNC0iciTLkWNYUMEvANN zxG9eIdUZHiD9TP+cymWXrUqfQcCdUYZmoBE3WWqlU7cXQQkPM0F34hOBp34VeNSlrhA UzOOTygfl1pt+FCFKuS/dAw+NLaagIP5LKJbh56NaQHQZuFRnD+1lSmfxyKrCAJDhXcb 2vBUVuDc1lw+G17WN/JIig0MEUFy/JbKzgx8YbgenDsFGvm+FdKv6ecgNo0kRu86J6wE /taQ== X-Received: by 10.180.37.162 with SMTP id z2mr5814303wij.58.1382894653181; Sun, 27 Oct 2013 10:24:13 -0700 (PDT) Received: from localhost.localdomain (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id fb4sm27398035wib.8.2013.10.27.10.24.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Oct 2013 10:24:12 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sun, 27 Oct 2013 17:24:05 +0000 Message-Id: X-Mailer: git-send-email 1.8.1.2 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [pull request v2] Pull request for branch yem/instrument-build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" Hello All! This series is an RFC to add support for instrumenting the build process, reworked after discussion both on the ML and during the developpers' day. It works as thus; - we register a set of hooks - hooks are called before and after each steps There are currently two hooks defined: - log steps with timings (as an example of hos to do a hook) - call a user-supplied script This is just a RFC for now, and if it is accepted, new hooks can be defined later on. I'm planning on adding at least one other hook, that runs all scripts present in support/step-hooks/ (or whatever its name). Open for comments! ;-) Changes v1 -> v2: - removed the intra-steps instrumentation (Thomas, Peter) - accept a list of user-supplied hooks, not only one hook (Thomas) Regards, Yann E. MORIN. The following changes since commit 200bf74e8e4686c3f132a6600ae6803eda8b588a: Update config.guess and config.sub scripts to latest versions. (2013-10-27 15:29:38 +0100) are available in the git repository at: git://gitorious.org/buildroot/buildroot.git yem/instrument-build for you to fetch changes up to a4b9a0c71f89f16b00a75ba0b37f19c71c0300c3: pkg-infra: add user-supplied step-hooks (2013-10-27 16:51:34 +0000) ---------------------------------------------------------------- Yann E. MORIN (4): post-{build,images} hooks: export BUILD_DIR too pkg-infra: introduce pre/post-step hooks pkg-infra: add hook to log timing of steps pkg-infra: add user-supplied step-hooks Makefile | 4 +-- docs/manual/customize-rootfs.txt | 5 ++-- docs/manual/debugging-buildroot.txt | 33 +++++++++++++++++++++ docs/manual/developer-guide.txt | 2 ++ package/Makefile.in | 5 ++++ package/pkg-generic.mk | 59 +++++++++++++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 docs/manual/debugging-buildroot.txt