Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp578088lqh; Fri, 31 May 2024 09:46:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfrhH9/Y1xSKyoYNn4n7XRpbSgWbCax2jAmX5KJfQ53TTLM1ytSAri6PkOtKwXgkhclZQEqSMVpwarpM07iTGMTAE+GaxczvZX4qZt6w== X-Google-Smtp-Source: AGHT+IHIAqtmgLqsbNc+AKGIg9F4Gf0cFAC2bXjGKTzvJD1uoHSj8oXZuObPu4bUTKsNCiVBEC3N X-Received: by 2002:a05:6a20:430b:b0:1b0:2472:da14 with SMTP id adf61e73a8af0-1b26f0f0221mr3143472637.2.1717173983521; Fri, 31 May 2024 09:46:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717173983; cv=pass; d=google.com; s=arc-20160816; b=W1158UsYjt9E7bLDmV++Nz6hyHitTZRePWZpz7sc6NJqCArNEFM+P9hgHtUkb3RjGQ OvN2h5PrSZiqouA+Eom60rO+2iV8aHxU6/mtZG0N6LKjIVvpMTbt6tY3V6NgJTf1TRpi dTZK8Jdt646CFV7LSDOtPfUGcVQPHGOz6n8OfnXS4ARxX3DPWT/XTZ1cr/n5cqTDY6r9 ZGaQGX8gL328UwWuN9f4IO45FvCBRhBbzM1xUxFGZ688rxB0inkmBhoHO7E973lk5CVg u9/kfSd1TFkSylL1kW8FnDa3hqaGzJPItutakSoXl2oTXkjrFxh1XWA0ce+F46FLci53 slEQ== 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=+a/elQ/DVLq9OarBTd3P+ramDxjQmELz1kHVgXiQECk=; fh=X35u8p2NYlgr3G7ibDt3KazRHxkPWNCWZNucX/6QFSk=; b=uxs76OCvigwXPrUiPrTV7m6NFDme25876StcgzwCVnGY1EdPGOUm2vWepe4xzElFrg tvgWtjPE4rpLtC+PP+JbKQcEllP5X++zxH/WaBcmcR8l8MnC5yJwX5eHAxdZ6g+MAcEQ kyUkJ2PFQJme6QxVG1sWfK5zWABfeU+GnjunQ23zbrLBw8R20OayW5ZALF5FAXujTD0U wRLFwYqgBB5i6O0H6dF7aNt8B7ThQUgYYTFi2i+Zjb63eCkdWmOsovZ381FI+3MQa8mM 0dRlQoEDSrFozVG15J7bC7igFuc39OMQuXfPO4EEf0O92MFSHER9PJuDxdkETA0FjNKW S0Cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=BrhqG8en; 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-197170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197170-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-7024e77149dsi850074b3a.34.2024.05.31.09.46.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=BrhqG8en; 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-197170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197170-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 357D62919BA for ; Fri, 31 May 2024 16:38:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 641A816EBF1; Fri, 31 May 2024 16:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BrhqG8en" Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 127B015884F for ; Fri, 31 May 2024 16:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717173497; cv=none; b=Qryvb6rADWBcsC4g4JV3Hv8BQLADLmaSU660BN+qohFKMWdT60YISVF9XGBKZ3eyjUMsWrvWlKf7+nxNWfM3XDVn8ujB3NjOiPIVFksuaKpnUQw08jMJXMiJgaT7X1Efim5I2f9otAQQy5NihAdiTmvTsnndt3IrkIqp6dM2Vlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717173497; c=relaxed/simple; bh=k6V/f1+BsCmlpZVVeAjfyvro0dNzpctVLuN3eNRB7DY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TIO/MkDsjB2ivg+pRLbE8IH3JgKF2ljYTg1C89A38sMepy12lXQlHQpc/N20TuZVtQU4VGYym8YpMf+BdMaKuUSEyinTLQRmBEip1FhFFPvB9sI+dwCWCIQbf7Jstmo8xMk3iPWHEFlJXl+xP0YoT+jYhzJTYUcK4TFiiH9LjQk= 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=BrhqG8en; arc=none smtp.client-ip=209.85.160.181 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-f181.google.com with SMTP id d75a77b69052e-43e14f0bd75so141cf.1 for ; Fri, 31 May 2024 09:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717173495; x=1717778295; 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=+a/elQ/DVLq9OarBTd3P+ramDxjQmELz1kHVgXiQECk=; b=BrhqG8en2PMj59jQ+vrqDCxCP/sdUbmqQdLVcdLxmH9UCiP1K9an0rlm6ApkUBmJc/ 0PwaUOq8Ubr5QVvQmg827kmXAwqNeWPYVK0epBNNMd8DUemE5eSmMi5/W7GkJ23+THDn 6VCBTgb1XCS3qs1JP9Kc6d3SUoo0hFa5VQw5GgqFdkl0ik/74WdBroQ9ilmKJOIO+Lou yJ+CgiHlnfBCjvJHkFNrpnqFqb6QZnGFUcM9vxdU2OiglTprZLJP4yfkgpOePwh89BUH YMelG+mDhG3cdVSWb02L5HFwq2buHHkJCL4kmLyXPsSNl28RwcS7p6Cw9BIpsLcTKPwo Qw0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717173495; x=1717778295; 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=+a/elQ/DVLq9OarBTd3P+ramDxjQmELz1kHVgXiQECk=; b=K7wfbOiXiAObW6jWbZYbLsh9n6kWPQ0JVvt4znX80VL5wIp1EgZVlBUeZUidu0ZTac BWf3N7mC5L35IS7kXiX9oQ3rvIfunwRMit8VqZgqvB7mFq/b7EoE+PxEz/m/SIctIOkF UhMzwKfRo47CZ/JBJjQ5oo4rbeSUVkH0wCqwfwgjJLMjvevfmT0rYqs15VktsZTtNxhW HQRlnLn6CxVCRmMwJTI+hx75LXdKOZbHhjHKFy0/uORuukcW7njkqfXBwXQpOg2Ns0mA 5U7laWOCiXqy77+n+LlCHbShC4OiKNbn9St5L4yN0Stq81qbMsGq5QFB9013e20EQjih luCQ== X-Forwarded-Encrypted: i=1; AJvYcCUtscborqy4Mm+KuCKAh0sic7pJFR8a5LHfYrZlkykslDCxvGGv1Mbggke6SuiaW7xE/rAs6pcx8IRZAKOvneBhchgWUvikxB/gF8tH X-Gm-Message-State: AOJu0Yx08E3YMN7o+cFxQed7cFrAzCpb4AYxGt+u/YVOnOgdvJDJqxJ9 TI+cAcPwX76HevwAXsVFCbam1KA9jZRUIUKqyOy6mkkZkiztO2hoEqrXDkvS0giC+hIsl9Gp2LZ 7owg/q37Z2uLRh6038V84jmTnzEXPNa2covBB X-Received: by 2002:a05:622a:4a14:b0:43f:b19e:d3ba with SMTP id d75a77b69052e-43ff2c5399bmr3098651cf.8.1717173494634; Fri, 31 May 2024 09:38:14 -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: <202405311548.1e881dea-oliver.sang@intel.com> From: Ian Rogers Date: Fri, 31 May 2024 09:38:01 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] perf jevents: Autogenerate empty-pmu-events.c To: kernel test robot 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 Fri, May 31, 2024 at 1:16=E2=80=AFAM kernel test robot wrote: > > > hi, Ian Rogers, > > we actually want to seek your advice. in our env, there is no problem to = build > parent. > > * 3249f8b84526d (linux-review/Ian-Rogers/perf-jevents-Autogenerate-empty-= pmu-events-c/20240525-093240) perf jevents: Autogenerate empty-pmu-events.c > * 7d88bd0d22746 perf jevents: Use name for special find value <--- pare= nt > > however, failed to build perf upon 3249f8b84526d. but there is not many u= seful > information in below detail log. > > is there any dependency or env setting for us to build this commit? Thank= s! Hi Oliver, Thanks for the report and the work testing! Seeing the output: [..snip..] > --- pmu-events/empty-pmu-events.c 2024-05-30 08:20:10.000000000 +00= 00 > +++ pmu-events/test-empty-pmu-events.c 2024-05-30 15:55:37.332495538 +00= 00 > @@ -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_mis= s_cycles\000\000\000\000\000\000\000\00000 */ > { 1947 }, /* dcache_miss_cpi\000\000l1d\\-loads\\-misses / inst_retired.= any\000\000\000\000\000\000\000\00000 */ > -{ 2011 }, /* icache_miss_cycles\000\000l1i\\-loads\\-misses / inst_retir= edany\000\000\000\000\000\000\000\00000 */ > +{ 2011 }, /* icache_miss_cycles\000\000l1i\\-loads\\-misses / inst_retir= ed.any\000\000\000\000\000\000\000\00000 */ > > }; > > @@ -373,7 +373,7 @@ [..snip..] It appears the version of empty-pmu-events.c the patch adds and the version generated in your test configuration are differing because of whitespace. Perhaps a hex editor will show what the exact difference is, it must relate to locales or something. Like you mention this could be resolved by an env change. > The kernel config and materials to reproduce are available at: > https://download.01.org/0day-ci/archive/20240531/202405311548.1e881dea-ol= iver.sang@intel.com I didn't see the generated test-empty-pmu-events.c there and so couldn't follow up on the locale/env exploration. I wonder that a suitable workaround is to change from the patch: +$(EMPTY_PMU_EVENTS_TEST_LOG): $(EMPTY_PMU_EVENTS_C) $(TEST_EMPTY_PMU_EVENT= S_C) + $(call rule_mkdir) + $(Q)$(call echo-cmd,test)diff -u $? 2> $@ || (cat $@ && false) to instead of invoking "diff -u" to invoke "diff -w -u", that is to ignore whitespace. I can send a v3 with this. Thanks, Ian