Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp13071lqq; Wed, 12 Jun 2024 14:47:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4n1uLZaz9Rq2OAVsYR1KnuH3tYKS1iVhF2Ug17YZDXqYjvub1Q8XG4KRlqY8j8LcAkVYBBpiGXpP0tTiJ7F6DllL/pUPpmatLyVdglQ== X-Google-Smtp-Source: AGHT+IF2h1mBWi/bXez76RW41YAa7prZIS7v9OYWttJZUHlfOLCKZ0xEoiNBAeJDJPT5rQ4JIiO3 X-Received: by 2002:aa7:88d5:0:b0:6f3:e9bc:7ed5 with SMTP id d2e1a72fcca58-705bce20728mr3742752b3a.4.1718228876202; Wed, 12 Jun 2024 14:47:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718228876; cv=pass; d=google.com; s=arc-20160816; b=mTv69131Ca3PrIMewin3O+ulTiLjDn+KE9X9uMUlHcwXKxozBfIr+EAsrNZDFW5ply Ch4BCwsKezJ9GWLJo2GpoWLySH7q5Kxf7PnZEdcCt+OIpU0S8VBSgdqT6lA29PeRR/qk +qfKbwZsTcVSjAhpAD/kmL687AUzKbrFFXPw1/hgq2sbgI0FG0x8ONDG1G+wx/a1XKmj W+nWl157qr/7qySDoiUfFXnYrRn7ztQi3fsPrTLgKwncw0puWPhOgwwf7LpXmsZtYZAe U7YMS/X5Ntk4SiOENO8nbCtUkE4Mxb6oG3B33mFUhKAInx1WW5AC7vtRIwpkrgIkEN4b qc3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XGFO/gWpjWxRc6zdNFKUtA+WWgn2yoVFVUtmjvc0LMM=; fh=eqAtQpQJbNMI3lfwFILXRp6zorJ3ZUDuIWVKBnMdAks=; b=sCx/awZ9DOSyNfGSUlLTpkaNTTL2h8k/sA4PJCRnLfzwO2mlwAAOjIy1snKN9R9AFH cvVUajRkGkc7ax/kE4DLTY7+iX8HyTcM7YHIBEi67pRb2CaAiw8WboCOj52VF8zrAxfM YmWhIZ6yQumoZm+EnmIjSIDMgmYMA2XAat7YIGrIMsCf9k8l7/Zs6jMXdGSKjKtfluoH ZYlaMBwyvS+B+A07/zqgQDK/8SV7yHKazr5Gwl4luPZ/C/dOdFWSEplfwIB4K8kr7NbV 4ED7pN7AOIvAtIdb83DVHXWJ3zEXucZ2gzD7fIr+msTEdWC411StnlJs09oERA7KjjBT MyRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tvGJgy3f; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-212297-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705cc8fd6dfsi51577b3a.40.2024.06.12.14.47.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 14:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212297-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tvGJgy3f; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-212297-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CC3D2282611 for ; Wed, 12 Jun 2024 21:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EC10129A7B; Wed, 12 Jun 2024 21:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tvGJgy3f" Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 4768A86252 for ; Wed, 12 Jun 2024 21:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718228817; cv=none; b=o57hhWEqmqjeSeNNx4OmGKTGDVoKILQrEIGd3/qPeJIbNcx2hC1xbK1Dv1Mw9S8lKhvu2w8HRhcHlHf3724elRdgaM+/ByIS1lvQu+rgPMnGd+hgsOS2GqcPSLohEnJT8YUWjsUKxO3UFQixOTngPjNcCjgM9u8i+C9hgDqDlwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718228817; c=relaxed/simple; bh=+InWqwc59WaX46vE5AxcsSfl1jFryAeQ5J5u3z8pMrY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YqRfA8GZzllZuDE6AtF9UMcIuZiMXUXK3eVFrPZFLhQ5LTVJ56TlZiremVRVY4giYRNBLiGX7zpYCRYteQMw6LBP9WHQRa76d5oLhATQZIvE8ZNI7akdpKscGTisGk27oNwSy/DBlG/+xla4BDlP/2TqF1kA+NFHQxRhOANoAPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=tvGJgy3f; arc=none smtp.client-ip=209.85.160.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-4405cf01a7fso58571cf.1 for ; Wed, 12 Jun 2024 14:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718228815; x=1718833615; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XGFO/gWpjWxRc6zdNFKUtA+WWgn2yoVFVUtmjvc0LMM=; b=tvGJgy3fw1wjv83IS6iWRyxq+V76Z471ZFGQD1m/yrydchGf+5EG5EDf9yGr4ivrw/ vg1szCuPNLu+woaO2eW+tjX6MQn8106h9wFyORHWJN/+7lh4nNojjrjbC0x9/loSPOs/ eQFETMITZHkmJ3gnSLTIms7qMHB8Ky5SRn7yWgfp4gEclZnyoIAq6lTiV5pHFjyVktXU xJ7YQSVR8wdT2+E65LKV7mcK012En0KgwZkuAMp+j3H8ISIkMH2Rb09jFMcZx4vlDdKx bjl/sBtS2EY2WRiwM9V4KP602Yw1hcnJO5YmjaN5hjpwYRlzkMT1Z64EGxfG6GKnDgLz zHPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718228815; x=1718833615; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XGFO/gWpjWxRc6zdNFKUtA+WWgn2yoVFVUtmjvc0LMM=; b=NgoipcgDZ3LJ4mSjdMEBDGCkRE4tygCEexS+PbGae+Kq/AC8wM/Cn1tWBGa7FYP9uB Mk8jj13VxOJRKc9abL5nHgmt/72eN9iODMq57YNUeXlfYZknG0JJpewcHV2+0OAykqLH LXxtdfnzNol6xbpwjejTygfaiHN+xTWTVu/fXO3adQvNL6KvhhyTF3RBTNfSEEGZu90X LG4bwiaSa15CgzDwk+A9Oi6SQYU8hk1BrSDY87SVqQYPzedMWfhEpBrv2kaoCbwxzQde Jate8Xc+y7l3Jozcb540r8xS/ru7URKipV7EL9zakrtxi1L+pxp7Yj72BmIBJ1NzIZsr NHZg== X-Forwarded-Encrypted: i=1; AJvYcCW8AcszqHaYVkWP+u0LO2xeGSwE3i2aUWKozMf/kKT9VSGzVHQD2CW6TOqa+5X96emoop9i3eDp4tZhnZ1YtpyOFSuIpmStOIv/gRTt X-Gm-Message-State: AOJu0YzXUf20zeE8zTBbktb7l5c8c4TAyjoAr6lgT5it/H5dz0uSbd1d nI89GG+xnzVyIJOWtrE/0V47Onu0SE5VFrpZnpnVRnRoJiMUj7IA9Dsrls0i/y9326eTtA2jNEl yuLv9gQ3Eug8wAM1ZFb0yfArjNpr+eQezOiYV X-Received: by 2002:a05:622a:1b17:b0:43e:cb4:1d10 with SMTP id d75a77b69052e-441a1272b40mr740741cf.14.1718228814988; Wed, 12 Jun 2024 14:46:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240525013021.436430-2-irogers@google.com> <202405311548.1e881dea-oliver.sang@intel.com> In-Reply-To: From: Ian Rogers Date: Wed, 12 Jun 2024 14:46:43 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] perf jevents: Autogenerate empty-pmu-events.c To: Oliver Sang Cc: oe-lkp@lists.linux.dev, lkp@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Weilin Wang , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Jing Zhang , John Garry , Sandipan Das Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 3, 2024 at 8:46=E2=80=AFAM Ian Rogers wrot= e: > > On Mon, Jun 3, 2024 at 7:19=E2=80=AFAM Oliver Sang wrote: [...] > > I tried below patch > > > > commit a79a41133a41adc2d69c8f603c7d880b3796cbf7 > > Author: 0day robot > > Date: Mon Jun 3 16:35:45 2024 +0800 > > > > fix from Ian Rogers: invoke "diff -w -u" instead of "diff -u" > > > > diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build > > index c3fa43c497069..54d19b492db5c 100644 > > --- a/tools/perf/pmu-events/Build > > +++ b/tools/perf/pmu-events/Build > > @@ -39,7 +39,7 @@ $(TEST_EMPTY_PMU_EVENTS_C): $(JSON) $(JSON_TEST) $(JE= VENTS_PY) $(METRIC_PY) $(ME > > > > $(EMPTY_PMU_EVENTS_TEST_LOG): $(EMPTY_PMU_EVENTS_C) $(TEST_EMPTY_PMU_E= VENTS_C) > > $(call rule_mkdir) > > - $(Q)$(call echo-cmd,test)diff -u $? 2> $@ || (cat $@ && false) > > + $(Q)$(call echo-cmd,test)diff -w -u $? 2> $@ || (cat $@ && fals= e) > > > > $(PMU_EVENTS_C): $(JSON) $(JSON_TEST) $(JEVENTS_PY) $(METRIC_PY) $(MET= RIC_TEST_LOG) $(EMPTY_PMU_EVENTS_TEST_LOG) > > $(call rule_mkdir) > > > > > > but make still failed. I still saw below in our build log > > > > --- pmu-events/empty-pmu-events.c 2024-06-03 08:41:16.000000000 += 0000 > > +++ pmu-events/test-empty-pmu-events.c 2024-06-03 13:47:19.522463482 += 0000 > > @@ -136,7 +136,7 @@ > > { 2623 }, /* M3\000\0001 / M3\000\000\000\000\000\000\000\00000 */ > > { 2078 }, /* cache_miss_cycles\000group1\000dcache_miss_cpi + icache_m= iss_cycles\000\000\000\000\000\000\000\00000 */ > > { 1947 }, /* dcache_miss_cpi\000\000l1d\\-loads\\-misses / inst_retire= d.any\000\000\000\000\000\000\000\00000 */ > > -{ 2011 }, /* icache_miss_cycles\000\000l1i\\-loads\\-misses / inst_ret= iredany\000\000\000\000\000\000\000\00000 */ > > +{ 2011 }, /* icache_miss_cycles\000\000l1i\\-loads\\-misses / inst_ret= ired.any\000\000\000\000\000\000\000\00000 */ > > > > }; > > > > > > I will try to get generated test-empty-pmu-events.c tomorrow. > > Thanks Oliver, if you could get the environment variables that would > probably also be useful. Hi Oliver, any update on this? Thanks, Ian