From patchwork Fri Dec 2 04:57:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 2515 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp649007wrr; Thu, 1 Dec 2022 20:58:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7351mGCtfxaJOUCJ2v7Eft1N1AC9YYl88TnqDtKlZHj23/YxzZ5e2Rj3a/892ZoaOvkc8T X-Received: by 2002:a17:907:986b:b0:7ad:b7c2:a2f7 with SMTP id ko11-20020a170907986b00b007adb7c2a2f7mr43359205ejc.227.1669957136913; Thu, 01 Dec 2022 20:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669957136; cv=none; d=google.com; s=arc-20160816; b=HIcOl0+lHOiuFAIOkmy+/r6qshPPGlXVqHTnq+xW1AV1ScdvNl0P0SQSgCDUze0hS1 SAA4nSYmlYiSXg9+Eo2uA612I/fyipLRqLgDGK4sbzsSj1GMjkVa2wTR+AX8bj6j64lx T+9W9pAXN49SmiRrMtvkzMq/26Mf36PKiujMg+2oeIHk1vG6Gt+c/oXPc+K5KStM11P5 oKvN/jGrdrYfhwMEgLNDDd95FOAjgP/I3yKyjr4IXeo76HuYB3FPR6KD8qNHNN4rLWEk 4FMNMPFVx7pXK8ovt7oMp4BVLcvvz9nfrF5PJ8sUTzP/vmBXrQ6SH9Iwr4Upg4r7uwc/ F6iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=0BZrtu6a4uY0PQiXNtiOGBfNeRj9TpPw09DbPuRe0Eg=; b=kKGINCHRMlqMgjZWoZgl5s4gArm8I7dj8AZoELYo2ONETVvV8yr1vMGnVUyywMxJtf ilOSgy//7BkosDoxgXCNOI7eqwsDtODGyPJNaOH/Ep95TAL6B4MNa3fMYgxDWl8sGfpR i97XE/aap59aeYJXdoS5WEkDLocyYb09n5BIK3Nw5WFoHY9P2Ux1o4kqRc7hrc+Di8kj p2Zrhf7/fhy0+sDXtJ0zYvQ2Bm4HriGmiYio9GuQau1c0z3Oc8w0mjlw4f0XKIYxhz8d H/jTrJaNJR0feBj4o15l0vzLIfeJnKNYiPAhSw+v9hBcW8o/u/SdQZe6YkuqjZsyh1y4 +x8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=X4m7nIQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh8-20020a1709076e8800b007aee592fd06si2988499ejc.203.2022.12.01.20.58.33; Thu, 01 Dec 2022 20:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=X4m7nIQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbiLBE6D (ORCPT + 99 others); Thu, 1 Dec 2022 23:58:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbiLBE6B (ORCPT ); Thu, 1 Dec 2022 23:58:01 -0500 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D7EB2A717 for ; Thu, 1 Dec 2022 20:57:59 -0800 (PST) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-3b4eb124be5so38083017b3.19 for ; Thu, 01 Dec 2022 20:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=0BZrtu6a4uY0PQiXNtiOGBfNeRj9TpPw09DbPuRe0Eg=; b=X4m7nIQ+QvDHeTb0ha5tBcYbrBQDFWJW2lsYSWb+uqOeXSfgqk77lGCxeuIMXLwMlT q/4vMEZeFJSlLF2ADUr2StBpjojZUi+QvA/YbVuEUxKO21f72Ck/EqwOMQv3YELK2UWX T+Z4sgXOrcSVxRTgD0iZSbG0sPIExiR3lVyDNrzH3qaj2+amwE662AQONkaie/Ww8qob 8sqcdhZyAJj3vDbUax8l28/BdoqMKcSpSpp/aQlmUR0Lf+Uq7kP45MgqtlwvQqzdS4Je ++SZ5gIIaCcyDn0SiNgUSUyXoQKqNZhNWvVFoiCzjONvbiVV5lk4UTwNm+y/zuz1qLXt /YZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0BZrtu6a4uY0PQiXNtiOGBfNeRj9TpPw09DbPuRe0Eg=; b=AiXU8mjVlqNHzv4GuyQmhlC5DBWEY25CRddne0yylw/gc8hz4FzgV2dtP6OWDWGSje csi2615MVeOSgRQ4fIwKHdQbzweduCkTivbg4KPZl3D33GZ4iUqFPPzZD4qGFnNPGPE9 9/r0oQgsvM1LfgiGP6EAa6YwcToprbaOodsdJi/uABLWpeLUvp4HJsgh6lnhjE/6LpYC WsuFsy69/XFvP7DH3O382F7zH/r4MDCZNVQ71qXN3KEnIPHhbaKK6PPJpp3vtPxDYN0F uayjjNChsZV4XfMRYNrp9+QMcWrUxiQpH0nRnVuyqbtEBlQf9TRR7ij/JVqthpk80vlH fnOg== X-Gm-Message-State: ANoB5plzdhHU6iyhlyJdnEaa1+PZe0VlBe/D+pP7kJfbVqBjkqsdRDA+ kvDzcPWBFW9Wl/p/kolcgiSGkpJKkic6 X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:e3b0:e3d1:6040:add2]) (user=irogers job=sendgmr) by 2002:a25:ba8a:0:b0:6cc:6a92:7a17 with SMTP id s10-20020a25ba8a000000b006cc6a927a17mr48131719ybg.282.1669957078446; Thu, 01 Dec 2022 20:57:58 -0800 (PST) Date: Thu, 1 Dec 2022 20:57:38 -0800 Message-Id: <20221202045743.2639466-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog Subject: [PATCH 0/5] Improvements to incremental builds From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Josh Poimboeuf , Nathan Chancellor , Nick Desaulniers , Tom Rix , Masahiro Yamada , Nicolas Schier , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev Cc: Stephane Eranian , Ian Rogers X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751076974866995904?= X-GMAIL-MSGID: =?utf-8?q?1751076974866995904?= Switching to using install_headers caused incremental builds to always rebuild most targets. This was caused by the headers always being reinstalled and then getting new timestamps causing dependencies to be rebuilt. Follow the convention in libbpf where the install targets are separated and trigger when the target isn't present or is out-of-date. Further, fix an issue in the perf build with libpython where python/perf.so was also regenerated as the target name was incorrect. Ian Rogers (5): tools lib api: Add dependency test to install_headers tools lib perf: Add dependency test to install_headers tools lib subcmd: Add dependency test to install_headers tools lib symbol: Add dependency test to install_headers perf build: Fix python/perf.so library's name tools/lib/api/Makefile | 38 ++++++++++++++++++++++----------- tools/lib/perf/Makefile | 43 +++++++++++++++++++------------------- tools/lib/subcmd/Makefile | 23 +++++++++++--------- tools/lib/symbol/Makefile | 21 ++++++++++++------- tools/perf/Makefile.config | 4 +++- tools/perf/Makefile.perf | 2 +- 6 files changed, 79 insertions(+), 52 deletions(-)