From nobody Mon Feb 9 03:20:04 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 283EA1CEADB for ; Mon, 20 Oct 2025 16:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976571; cv=none; b=K7KmixBg0LiN5rT2f9KSKqstodiQZWAS27Y0Yde443UKgjRErKDBxvW/8eeCO0D7ddgAQuhWISf7Z6Qgnek06BmMJjRXZDfGy4VTFhAVB1j/Ylq5n2f9lwgf9zxU/ol4XksHT81xrXMtEgxmgFjUpGZnV5EYkn3uLJ5rIdKYByI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976571; c=relaxed/simple; bh=LkrZxVVmxt7Zv+cWgIEvpDWUjv7+Vq2hu0hGJRjI3E4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E59CqtLZF8Dd/5h4sKcw57Ay6d/4X/X4Ev5UWxyfv+AR6Qp45Bs4lauzgRU6mxzzDaXDgwrWGt0ESav5NDeWWqyeyerLZc9C92RSEzJ4w50kwpWP4hEha+olCHpZlwIbO6NmhFtBk6tPJTc2Fmmm/R8XwzmfwqbLxo0a7vcNY3s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KMRuB82V; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KMRuB82V" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-47157119d8bso5370275e9.3 for ; Mon, 20 Oct 2025 09:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760976567; x=1761581367; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qM8V0Y39AnbN5rtI/orFUUqj5THckFp7lYpw6XeoCjQ=; b=KMRuB82V/XwtPfJfy8/GlKtNkp/DNmctHxtlHEu8OTHhUQRACzBZdFhZYcjjKsxO5y VQ7E0pcSwa88QY4nJdj/0cr+dbv2MhWQwW/KbqFr44I9xQcQ+2sfSaB19AFTKQHzeOqo fBE5Wx19r7QNqDht+Mfnabg3Q5fT+bWV+WNfLDiZHjdMG2nhc6Lv68OMY41Grx0bOEU1 LepiCUq8LzbmcHz9ImlJjP8Lqxx+s0hSFR2If2t7unsbRuLaBREhGS6b7CuCRJtEbFn+ ABQd+yzUek8MB3WhNgzHhbPnS4bGgbsZ+2eQybSNWQuFvclcIMm9CSui0eghSG0xkmMd wBmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760976567; x=1761581367; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qM8V0Y39AnbN5rtI/orFUUqj5THckFp7lYpw6XeoCjQ=; b=j0FgUHFjg+AdiztExrYluLvAL41bCk77Zhp0ezH8wg7WAx66ORcb1TLuRqpktC1Pi5 LG4eR5SbSW3M1J31Awhiqs8utOM2h3Izz/yRVymysnEGrpetgEttQLwOtV4Tj5NfJBsu cEQl6W+/VoiLDVR8E6g9HllStjgGyKZwiClwrSUHDSYgOihBnaYkKjboxWG8PUijc6Zt cHw7aJ6vW3r0pSuN1jI1iLZkhpCIlyIv6m2SelXBBHatda7syWlrH2ujzIjb9bZO9FNp ysKvJ0I7o0eEDKw419V7uBmINxEKVI6iuTmQ/3IswRjDgNrDIAKASLVclx1ioTCOyaog VSLg== X-Forwarded-Encrypted: i=1; AJvYcCUWMThmbXYbvoigMJC5IsHLsRvCgcUUPZBGzgAAMD7mDyUowhODieMC0wzasaUediFDvk45+/Dd21+gcgE=@vger.kernel.org X-Gm-Message-State: AOJu0YwvfrQm1cX6xMtbOTRDIcEBozCrrptFlzEYIAHXPGEtOaG5xLMW 6sm7rdCu6OBcRFX6vV8zfgjWDCGahqOytMdBgWDC7fF2bTyZr/iSQuj1/aoQaAHiPI8= X-Gm-Gg: ASbGnctyjFQbUbyuGjnS0n945v53Vp0+HvOtF+5BEtzfapgllJsqSZaasNp6zJjEcgn YAUsa5wXFhNbhEzfddfA9mReNnnb55L7oUq+v2OLj8wRK2IlXEFt5cExgXhSh5TRwR/Hi7H+D3M jtJWepBYB/neNEXC8XsvZjUyPxIcYGBQ2tAT6/IciywHHbQNFgAxUpTWmvIADRlWFzBP31yrBtS jng1QXWLWFNmT6GDTpFJENMbc9cRF49QLel00nKkv0+8nN1JpHWmCCEE/jl9bu0RLrC6xGoh74o oEhvCGJ9ZvnnVE61wfsXBQ+EJzmL0c/3j/bB2VcDg7mkkAOHnpjEUkHZbVm+PwGc00EoI/2Pjol SXaQam7fWUHwB8Eiy44j1SkR6FMB5fFbZO6BJ9Mozx8IWjmCeshuaxUuKuPOFYpFGFvFYof3EtU wTJEL5vZFpvQ== X-Google-Smtp-Source: AGHT+IF62e2tX5PllApKh94/7Rof0abCrqTbWMCHv8Gr7E8oqq+KykVHh9fjnntjvKQ/S4PE7Vdbtw== X-Received: by 2002:a05:600c:1493:b0:471:1c48:7c5a with SMTP id 5b1f17b1804b1-4711c487d74mr64363465e9.9.1760976567544; Mon, 20 Oct 2025 09:09:27 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.76.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-427f009a6c5sm16408067f8f.28.2025.10.20.09.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Oct 2025 09:09:27 -0700 (PDT) From: James Clark Date: Mon, 20 Oct 2025 17:08:26 +0100 Subject: [PATCH 1/3] perf jevents: Fix build when there are other json files in the tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251020-james-perf-fix-json-find-v1-1-627b938ccf0d@linaro.org> References: <20251020-james-perf-fix-json-find-v1-0-627b938ccf0d@linaro.org> In-Reply-To: <20251020-james-perf-fix-json-find-v1-0-627b938ccf0d@linaro.org> To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , leo.yan@arm.com Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 The unquoted glob *.json will expand to a real file if, for example, there is any file in the Perf source ending in .json. This can happen when using tools like Bear and clangd which generate a compile_commands.json file. With the glob already expanded by the shell, the find command will fail to wildcard any real json events files. Fix it by wrapping the star in quotes so it's passed to find rather than the shell. This fixes the following build error (most of the diff output omitted): $ make V=3D1 -C tools/perf O=3D/tmp/perf_build_with_json TEST /tmp/perf_build_with_json/pmu-events/empty-pmu-events.log ... /* offset=3D121053 */ "node-access\000legacy cache\000Local memory read = accesses\000legacy-cache-config=3D6\000\00010\000\000\000\000\000" /* offset=3D121135 */ "node-misses\000legacy cache\000Local memory read = misses\000legacy-cache-config=3D0x10006\000\00010\000\000\000\000\000" /* offset=3D121221 */ "node-miss\000legacy cache\000Local memory read mi= sses\000legacy-cache-config=3D0x10006\000\00010\000\000\000\000\000" ... - { .event_table =3D { 0, 0 }, .metric_table =3D { 0, 0 }, }, make[3]: *** [pmu-events/Build:54: /tmp/perf_build_with_json/pmu-events/e= mpty-pmu-events.log] Error 1 Fixes: 4bb55de4ff03 ("perf jevents: Support copying the source json files t= o OUTPUT") Signed-off-by: James Clark Reviewed-by: Leo Yan Tested-by: Leo Yan --- tools/perf/pmu-events/Build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build index 4ebf37c14978..ee8ba74f82de 100644 --- a/tools/perf/pmu-events/Build +++ b/tools/perf/pmu-events/Build @@ -1,6 +1,6 @@ pmu-events-y +=3D pmu-events.o JDIR =3D pmu-events/arch/$(SRCARCH) -JSON =3D $(shell find pmu-events/arch -name *.json -o -name *.csv) +JSON =3D $(shell find pmu-events/arch -name '*.json' -o -name '*.csv') JDIR_TEST =3D pmu-events/arch/test JSON_TEST =3D $(shell [ -d $(JDIR_TEST) ] && \ find $(JDIR_TEST) -name '*.json') --=20 2.34.1 From nobody Mon Feb 9 03:20:04 2026 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55963283FCF for ; Mon, 20 Oct 2025 16:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976572; cv=none; b=RMYr+5Ik33MI5zraW+D7Uw3hNPyMhGS05d7tplHJWXNUfJPw/3tc0wgMzGut/LUgtYKWpOLK3EaTP5qgVyy8UGoS/A7wpjZ6VJsYq+D0T54nwv3+4HFJiYnWHPz06y7z1y7ogIc/stzMTduKpAN6C8ujf2Faag1o2I4jB2lQ87Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976572; c=relaxed/simple; bh=9aleKV3jYb4lyA7qIzUxHQD4EriPvhEU/NjvOR+A/n4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m4uV/x/cXCUISyzOUbVyGIvlg2r+vAqvPEudseVPdRYL/rFbHgVmM47hx6sFd57MZAkWRqn4vVLxRfy43xLFBg0/7WjDFN2hQUFWBJdgoxDOJ98ZPx3UHWV7rHgX/3DBsWwHJELTUWg7ekk+blD6P6zpSJ9H/R321Ls0pW1Jufk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eObcZTdW; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eObcZTdW" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42421b1514fso2853250f8f.2 for ; Mon, 20 Oct 2025 09:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760976568; x=1761581368; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yKgUJxK4ZSlmx1ToeoOvB+8Hg63ofocFdJXNrvPPt2g=; b=eObcZTdW6GXt109UhrrGYWlqd2zuCyE2eNKXDgguVEGzkPFQyzyAxCHhyBTu77rsGb cDVXtS/9O9wRb3qn4HLFZFXEqimsoAX3J58Wp7IdxuIACeKINtupy9bhgW4txIbKcxP9 291NG74vFVJJ/X+jSNhb0FEiX8fDY0POwKHkbPiW5PdwSFXn8hYpenoSDSurwHJP31Go GeygvXh4evy2EynJmieqJQENk2DzuyHrtDY7v1DP8h6fJiDvk3KSb45ebwo2JaEjQUTt dl65GkC787cRTfwddnTdDvT6j7TqqebU2zL/mm6YUE8UEXFKosJtTqGn7XMK2D8hFvI0 zAFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760976568; x=1761581368; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yKgUJxK4ZSlmx1ToeoOvB+8Hg63ofocFdJXNrvPPt2g=; b=eQUF28TJJ+H9282rrpHOUms//Q0ozQEoczjwQ+e964ypvACD9TQNkBvJpFmPq2Mu92 FPk8Wb0DVwHkPKVrDyv0HZWhyD3mo/AeZgiUYY6kBX6sxIE5dmUsXLEpbuI0xBlP4JeW DUepht0E46G9M6E0dOzrZeZ2ccX+ivqCQjShEfIEbqx93a+8RvBE26JCT9ZiWSeE6qIK muud2GjRSW19eJugPfqwrXxmgy4LlFkPiOgKxbcE+phoyGEiUGoR6fd7nlKbG6OFVz7B El5ihb8hbRQy8Wsx+cVvVT1qA1Mh9yMhEVMuSTmB/JRrqeeg2YRNcFQlseeFET3Vu41f SGvQ== X-Forwarded-Encrypted: i=1; AJvYcCXyutg/VBr69uGzix06EloU9xOSVJi88YbnjvbIvbE0u58sGIGjvsaZoRH+AWkmJ4ri+OnopXWZiD1aZHE=@vger.kernel.org X-Gm-Message-State: AOJu0YwvTNQ7HhB+F+n8vZ8KKukxLDAVhoi/12NNe002WoLhcZ/9eT1K Yal6tjm3S2lG+Mf7n5mcBWbeKAppD0J3qMahD+sZ6BVetF2lgYXCWtK29JtuI6ywjs4= X-Gm-Gg: ASbGnctUZYPaxj3NS+YrrSnZNYTaUQxuE5iCxATrPS0pd5PIy8uSioQ0+56thFLlRvm NTQhBexW9D9Xx6trSQovaW2GRkh0/Vw6gVuBGsSzLlkfNAfi+bPscHTTwgbLafgcxHfgOTUx5GH H7i12Nc3ngyJkagHPzu2PTzR7JfrmvSE0G2M9/XZ4hQto5N2DdLQx1aBevZhfFDNx3P/2smXCCg WZxZXri6diGgmgNQ1bjel32WwRISdaOpFjCvNEQ10PUaSTuY1MXfRxlRcjgPK4hYsyqS9j6QqrO MnFg7kS8ZksYcMHHgQSDzd+v3A4OVzXLbDoi0ootyjh/alxUuuwIu8pPn91WSCQtunA2J5s0T8W WZXSMxd/uCdJbOEx0glzCJiHQRjnRDaQ4TC0S1Mm9k0blzsJEK9Vsusuy+pk4TqIXwNTaRCqqqU s8ih8CPrJmNg== X-Google-Smtp-Source: AGHT+IEphAXj5jrvC/vtHwqvcbcjL58pZTHjVIB8i8Gu48livdnLEA/6pKhx9fzVcD5EDbknNu8zIQ== X-Received: by 2002:a05:6000:2911:b0:426:fec1:a58e with SMTP id ffacd0b85a97d-42704e0e681mr10197504f8f.53.1760976568568; Mon, 20 Oct 2025 09:09:28 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.76.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-427f009a6c5sm16408067f8f.28.2025.10.20.09.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Oct 2025 09:09:28 -0700 (PDT) From: James Clark Date: Mon, 20 Oct 2025 17:08:27 +0100 Subject: [PATCH 2/3] perf jevents: Remove unused makefile variable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251020-james-perf-fix-json-find-v1-2-627b938ccf0d@linaro.org> References: <20251020-james-perf-fix-json-find-v1-0-627b938ccf0d@linaro.org> In-Reply-To: <20251020-james-perf-fix-json-find-v1-0-627b938ccf0d@linaro.org> To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , leo.yan@arm.com Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 JDIR is unused since commit 4bb55de4ff03 ("perf jevents: Support copying the source json files to OUTPUT"), remove it. Signed-off-by: James Clark Tested-by: Leo Yan --- tools/perf/pmu-events/Build | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build index ee8ba74f82de..c5e2d5f13766 100644 --- a/tools/perf/pmu-events/Build +++ b/tools/perf/pmu-events/Build @@ -1,5 +1,4 @@ pmu-events-y +=3D pmu-events.o -JDIR =3D pmu-events/arch/$(SRCARCH) JSON =3D $(shell find pmu-events/arch -name '*.json' -o -name '*.csv') JDIR_TEST =3D pmu-events/arch/test JSON_TEST =3D $(shell [ -d $(JDIR_TEST) ] && \ --=20 2.34.1 From nobody Mon Feb 9 03:20:04 2026 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43579284672 for ; Mon, 20 Oct 2025 16:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976573; cv=none; b=cy8sQCRyqTDTd23dhsXdqiVi7X2ELg5m80KX2NnMGIS2L2/UBK/EMSx546NuigWffUd+y9dkBiK7vpcjM7uSwIz1kCNhpNzC6A+zvHlAwV2srCY3kXV6B1LZJrv/XNcUegCFt7kT6sGJFnnx9SQyo7s0vMFxyfYZvK84u+a16bM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976573; c=relaxed/simple; bh=ha6ie/2/u6zJrKwYTajAyrhyL5xMgX+Aax8ZNcQwaqM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UuNQGKAkG1rU4n1UXehyNc7cPZ5+67seAVB6syau0dCaDwv1t9wdEP8GX7iRRF/EvuzwEkFuz6oCjOIRl0ijMT8uR2NQ96QhPYwgF6d2GCWICpS8Zf/lIVOVvXgH1c/spkf9iKC2fq1E9hMplKdL1/KSCCga8su3wXr2ejim4qM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NSRivX1f; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NSRivX1f" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4710a1f9e4cso34079825e9.0 for ; Mon, 20 Oct 2025 09:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760976570; x=1761581370; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EdGV3pXRvDZEMUVAr3wBUVdjxRZ+XlT8jBZ7bZa9MFk=; b=NSRivX1fB3h8ImFLmeyB9+P04/MCuwil2D2FB78RFUg+vq80a0DukPWYw4stJnIbmq S2E8JWfs5skricbml9tg0XdAxIfYTaBbRVU4ED7FBpJgvMfhHah7251Hswy2yMZNeBgr lsk2xgRN70spAUv8CpUrefh5/ueaPIw50kvZCCZ7TboANyE0nK2iO/ml8puoc+W/ljPd K+0CI+IdJRdWV/VPJ7arObsDwfRiUaZJE4hDoKSZrBvP4hQCPE5y3p/4uDj78sY41KGG fvPFtbBvKgvYP00Ac57DI/4KD1Jy1YiaGUcuEOG31M24PG10MY1vEecK/670RHn6VDEL 0URA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760976570; x=1761581370; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EdGV3pXRvDZEMUVAr3wBUVdjxRZ+XlT8jBZ7bZa9MFk=; b=kFdAi1E+FzoAcIt1p58r0VTdxN+JLOdz9mVkKBNeef5sM6rZXRjktxEReiApsypFbr tLEzHaLCxmyJc+h6YZdrTSrf4muA4zaSbSz4wKYeCKCkQQ9rycorSV3A+xDzbOdb5n5k tEBzwsJNSngD1YYCrOGWDUO4V4kpSLisK1Doi2BYd1csHQlGLDWp1fqJaNJ53UQDX9Zg 9jM5hEU242r8qQMt0QalOoGmM/88/B03pF77eoFhp+8ZzqZHTJV3YfPhhMEw22iT+BJc OBgnV03BhARdHk+BScPv+5E/gJ8kpIolBqBNY7xXDP39EXRW0RMyA41FXYERp7AxJkUq T29w== X-Forwarded-Encrypted: i=1; AJvYcCVe0URSAnOninHai/EqnBiFIT4bV8RNgFupMF65iR2g5ffR3kekgnDcRBN8TVuV12kaRd6nL4VM/Vacdl0=@vger.kernel.org X-Gm-Message-State: AOJu0YwqxbI6fEsMmPagtX17o5BSK3l610If76k2iI8nkODD+21J4zx/ 42B7URwxU1WSYyV6/twN/qCyO978REtVLaYVcLNEeJg9WqdasHkWiC5EWfjuj5VybE8= X-Gm-Gg: ASbGncvLtEHysi5r5Sh4c0ZEFifBQlKAt0u8+FxP3aQHKR/5CnDjSBMI34r+Bwn0x1d V9Z+vJ1J4sUsOxG1xrxCea/zDqJ8QM7d6o7GM3HX3vuqMXHB+tGY56GCFh4e8pPZgLgNoVe8xO8 w8kTL1BTOacHAuJWwPcTqAmG2HFlVO5WsDpulsXwTU99k3MPmwKU9qh1tTY5ojmJC92uQEsK5ci fzEO9ELysk5fyc/lw7YfOJbqSezur51kNfLo72oczlMONg41GLpJIK8IkGDh9B3yKVk2lycnXPd 1YHXJhSDntB7hmhdmjWQBuaVJvZgz5sR4Eq8DhAsVhYePZE5cS1CuBHBuMDFsvcA/sc6fPBE6vP yI9mqELwsS87LS4lDi1DFjuK7tYJssNvRYWrXANkZ9qjy2t6ZCAmJpSZfANy4sUznPMtDYY6BFp /uoxnNzwF9IQ== X-Google-Smtp-Source: AGHT+IEpD/dgfFxYo7Xn6Vgdco+3DDr06fnsR0Y91h0oS5NHj2q4LVKHPL4JNe8M5lo+EseIF/VeOw== X-Received: by 2002:a05:600c:34d0:b0:46e:3550:9390 with SMTP id 5b1f17b1804b1-47117907a3bmr93162205e9.20.1760976569664; Mon, 20 Oct 2025 09:09:29 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.76.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-427f009a6c5sm16408067f8f.28.2025.10.20.09.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Oct 2025 09:09:29 -0700 (PDT) From: James Clark Date: Mon, 20 Oct 2025 17:08:28 +0100 Subject: [PATCH 3/3] perf jevents: Suppress circular dependency warnings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251020-james-perf-fix-json-find-v1-3-627b938ccf0d@linaro.org> References: <20251020-james-perf-fix-json-find-v1-0-627b938ccf0d@linaro.org> In-Reply-To: <20251020-james-perf-fix-json-find-v1-0-627b938ccf0d@linaro.org> To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , leo.yan@arm.com Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 When doing an in source build, $(OUTPUT) is empty so the rule has the same input and output file. Suppress the warning by only adding the rule when doing an out of source build. The same condition already exists for the clean rule for json files. This fixes the following warnings: make[3]: Circular pmu-events/arch/nds32/mapfile.csv <- pmu-events/arch/nd= s32/mapfile.csv dependency dropped. make[3]: Circular pmu-events/arch/powerpc/mapfile.csv <- pmu-events/arch/= powerpc/mapfile.csv dependency dropped. ... Signed-off-by: James Clark Tested-by: Leo Yan Tested-by: Namhyung Kim --- tools/perf/pmu-events/Build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build index c5e2d5f13766..a46ab7b612df 100644 --- a/tools/perf/pmu-events/Build +++ b/tools/perf/pmu-events/Build @@ -29,10 +29,12 @@ $(PMU_EVENTS_C): $(EMPTY_PMU_EVENTS_C) $(call rule_mkdir) $(Q)$(call echo-cmd,gen)cp $< $@ else -# Copy checked-in json for generation. +# Copy checked-in json to OUTPUT for generation if it's an out of source b= uild +ifneq ($(OUTPUT),) $(OUTPUT)pmu-events/arch/%: pmu-events/arch/% $(call rule_mkdir) $(Q)$(call echo-cmd,gen)cp $< $@ +endif =20 $(LEGACY_CACHE_JSON): $(LEGACY_CACHE_PY) $(call rule_mkdir) --=20 2.34.1