Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp822416lqb; Fri, 15 Mar 2024 07:26:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEXkm1Z3RH5oH7OQhG+rwcAlG1XgcS6uKt4rK9PZYvJeffCiIpKFtPLdAlZjiARGM2h1fOlDK7W/KwX952vAB1tZofKzR/F+Yru/UcZw== X-Google-Smtp-Source: AGHT+IHccy3or/13DXOlAk9XHy5Sh/7c22zWsVb7dqJkQW/i0l/NLPe/W/zIeSGtLuf5O95kKVYG X-Received: by 2002:a17:907:8dcc:b0:a46:7509:2425 with SMTP id tg12-20020a1709078dcc00b00a4675092425mr3932704ejc.63.1710512763354; Fri, 15 Mar 2024 07:26:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710512763; cv=pass; d=google.com; s=arc-20160816; b=DmVz7xzSZ7dUVD1NUT2jimTSCvlt5U0LDrq24xfJ/Qo32elHVDJH4+ao4s9Jh7IKZZ lnH4PBYfA15kkyGISuKhZldBk2b6QWqrCHAlB9jC0C9h8mLwYAI/kG7NiUE2+wwndWYZ RRMdNXQux94v7mfhACbgHIpcjUm15B853OBD91fxWSwGUrzcN52qwYfdt/3l1YDW0UqJ V2kJKrudsUXtvGZ0OkghtKSPP/tyfH261txouqFkIQtF94Xg0GeLPkerA1s8k3ZkSgGs wDq8nnu64ZvBcX6djA0w87E9bD2LAk13LBQlHnQWYefZ0AJglCQYb2x9njUYXzs52dT9 jFbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zwSwJ7JPQALgcgDG1HP88/9vXPWsSUJV3wZLXVM2TD4=; fh=CMtRrK48xhsgZIBOhYR+WhjKRvfK7+ozDVwv4ITuT8Q=; b=AdRy29Bs0N1jQp81KzJH6kqz9ZjotXIMNJ5UfY0KelbVJdh+fL8EqJH93HQeRFvZ/w 5ypT6ACIKZSzHr2qPiiG547QGZ22sK+YZNFaZWdpWCrKwxtQJUQNFZeQV/HeJ0Kt7cJR /TNwEEL/bEtsTzIv1iqO9M70d3wf15f21WSdxB+BA0P5ZX56hacdLFCQtaTgvXBONL5v F8GKYxFxDbIGTQwzPOxownGrsuWrL+HiZ2SzKUNRZgzZ2ZTYhBd2ELCsgQrrFUNIw4jF DSSHmRdRIu35G3lKm8s2MaXYWL+9FvX6W4rel/defybtooJznDw38to0Uy7CjL4IVZeP lTCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPOp7OJ8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s3-20020a170906354300b00a4678f28502si1221022eja.789.2024.03.15.07.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 07:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPOp7OJ8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EAA871F22C8F for ; Fri, 15 Mar 2024 14:26:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A24143BB33; Fri, 15 Mar 2024 14:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RPOp7OJ8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1714376FA; Fri, 15 Mar 2024 14:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710512719; cv=none; b=G0QJeFi18C80Hojw3n5yzWgKOO8tF6e7dX7mgAiu8jG6SIY5NG45trbPhmN9E18V8oFiRfeqmXg+xXoFHoit9DC5J1FYiPhJGT841JxcVNBGDK1gVIywyUrD96G1xZ3uhyD3i05h9JucfW5leariWvW7rcYJiFGKs497ZT6d4m0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710512719; c=relaxed/simple; bh=9hw7RnvGG3Q7ZFI+nLxWE8ECutGHjIkAHNGB4cII4EE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u/3pAllhG8YOGQnc8al9M6LkhPsal29tWjK8lc8zZbJaVcd9GCFhOPQIj+l0Hoopai0a++ybDQT2xU9WI248SmK5aWQU7oSvfn44VhpBBH1gf6MVTqh9j5gye9NVep3oZopzEYIo8uk7i0hCkUCeixo/VxsOiHVSogdBQ20THTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RPOp7OJ8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C2A8C433F1; Fri, 15 Mar 2024 14:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710512719; bh=9hw7RnvGG3Q7ZFI+nLxWE8ECutGHjIkAHNGB4cII4EE=; h=From:To:Cc:Subject:Date:From; b=RPOp7OJ8xHFNrdRUkvJDmY740IvM6wB6FmCDwrmmRUwZElRWgt4kbBdinA/SgjK4c FI84FJCkfBHa8IsEfZwtMdIBDFzL1y6GLTChxteZh/MlUwFS2yrdcfy1natWqhOU4Z 77X1vObnzMqTXqYMBrV1shSqxaE4AfXqwlw+Fzrf7Sj0gp+ZlpmYUlkKgctOCckVQN wg3vitZbXL95kwKdvmnwY7CdBSteOHQHD1nP/SJhd3kwwt15dC1fu/X3IxRFy+jKhU VlRD3h36sVGgczG1bdbFXJWzsguxqFeIkqCiw9IKFulwpHVhKf/h+86zCTUDq1Hv/b 7LJvPxJwYOEEg== From: Daniel Bristot de Oliveira To: Linus Torvalds , Steven Rostedt , Arnaldo Carvalho de Melo Cc: Daniel Bristot de Oliveira , Josh Poimboeuf , John Kacur , Namhyung Kim , Jiri Olsa , linux-perf-users@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/3] tools/tracing: Use tools/build makefiles like perf Date: Fri, 15 Mar 2024 15:24:58 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit tools/tracing and tools/verification/rv are using standalone Makefiles and this approach has some drawbacks. For example, code duplication and lack of proper dependency handling, making things harder for users. Linus suggested using perf's build system, and it is indeed the best way to go. This series replaces tools/tracing and tools/verification/rv makefiles with makefiles inspired by perf and objtool that use tools/build/ infrastructure. Thanks, Arnaldo, for the pointers via chat. Link: https://lore.kernel.org/lkml/CAHk-=wjQ9BJKBPi3sJN2Dy5jVwPO03u9aOc6-g8AnLcGq-E4-g@mail.gmail.com/ Changes from V1: - Link: https://lore.kernel.org/lkml/cover.1709914259.git.bristot@kernel.org/ - Proper handle O= and OUTPUT= flags fixing "make tools/tracing" - Cleanups Daniel Bristot de Oliveira (3): tools/tracing: Use tools/build makefiles on latency-collector tools/rtla: Use tools/build makefiles to build rtla tools/verification: Use tools/build makefiles on rv tools/tracing/latency/.gitignore | 5 +- tools/tracing/latency/Build | 1 + tools/tracing/latency/Makefile | 105 ++++++++++-- tools/tracing/latency/Makefile.config | 30 ++++ tools/tracing/rtla/.gitignore | 7 +- tools/tracing/rtla/Build | 1 + tools/tracing/rtla/Makefile | 217 +++++++++---------------- tools/tracing/rtla/Makefile.config | 47 ++++++ tools/tracing/rtla/Makefile.rtla | 80 +++++++++ tools/tracing/rtla/Makefile.standalone | 26 +++ tools/tracing/rtla/src/Build | 11 ++ tools/verification/rv/.gitignore | 6 + tools/verification/rv/Build | 1 + tools/verification/rv/Makefile | 207 +++++++++-------------- tools/verification/rv/Makefile.config | 47 ++++++ tools/verification/rv/Makefile.rv | 51 ++++++ tools/verification/rv/src/Build | 4 + 17 files changed, 549 insertions(+), 297 deletions(-) create mode 100644 tools/tracing/latency/Build create mode 100644 tools/tracing/latency/Makefile.config create mode 100644 tools/tracing/rtla/Build create mode 100644 tools/tracing/rtla/Makefile.config create mode 100644 tools/tracing/rtla/Makefile.rtla create mode 100644 tools/tracing/rtla/Makefile.standalone create mode 100644 tools/tracing/rtla/src/Build create mode 100644 tools/verification/rv/.gitignore create mode 100644 tools/verification/rv/Build create mode 100644 tools/verification/rv/Makefile.config create mode 100644 tools/verification/rv/Makefile.rv create mode 100644 tools/verification/rv/src/Build -- 2.44.0