Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1035CC61DA4 for ; Fri, 3 Feb 2023 16:34:31 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.web10.15613.1675442062414634683 for ; Fri, 03 Feb 2023 08:34:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=TZLvPHsb; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.42, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f42.google.com with SMTP id h12so5141178wrv.10 for ; Fri, 03 Feb 2023 08:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=/W/hI2kr0IyXcTHzfiO/x//HpMsnwO4zwVOv72aAe0k=; b=TZLvPHsbJS1HbYq+TYNaJGEWiPxK1plGvugiui9e2z8nfna8m7GhYqLFNgmFZ+vNGv jktSwpuNQHhLDEdqh7djw4OEvWLVQusVO2jcdJdLwHxO8RqoHfn+V2qgdkWPL1Tej5yf RlOMCDr+0uuw8F1rKnyi502FPVqDNsffKjgzM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/W/hI2kr0IyXcTHzfiO/x//HpMsnwO4zwVOv72aAe0k=; b=zJfP2ZibDYSFNGpXDa2rwj++0QhD0MwUZ/hIKQakBxmg2wh5npQbPxR7v4SOf1IxIb LOQ9uNzFzFCy9tKDtdpGxcFAiyWVbYNopqgyP9rVPKU2K9uBvIB4OPq8PKa3pthe187S 8CUnEB9k03/aZVMs98bhNHOshwUd5LaocmDzgxTKETVlEhM68jInUrpy2FJmDYIPCr8J pf1gE5JusEjwiakhVVeIe2r0jFkSuFY6np9fyLfDmOtC0WxsbpoGypzNC/54R9+DaNtN BdJRXlQHMR3kmXxYiETsnEhjuTbeUAP3gv9LUwuBEocJZDH38mldB3fHPmYukGY9t3Uw qn7A== X-Gm-Message-State: AO0yUKUlB1/Fftd5NlPGSJe9HnrEBWwg5o7UzIPCoE3CKsSr2G6TgeWf PZ0vVyxufrsd2oHB85XZ/VkATA== X-Google-Smtp-Source: AK7set9o0+C/TF48wcha0i77vXsmFkdmfuzVHwCO+Dcp/rOVjqdPiBPe7VIosr/CzmUoNhTim8Gleg== X-Received: by 2002:a5d:604c:0:b0:2bf:c106:719a with SMTP id j12-20020a5d604c000000b002bfc106719amr9237059wrt.65.1675442060756; Fri, 03 Feb 2023 08:34:20 -0800 (PST) Received: from ?IPv6:2001:8b0:aba:5f3c:a52f:3f73:91fb:2c5a? ([2001:8b0:aba:5f3c:a52f:3f73:91fb:2c5a]) by smtp.gmail.com with ESMTPSA id p14-20020a5d68ce000000b002c3da499290sm1241209wrw.84.2023.02.03.08.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 08:34:20 -0800 (PST) Message-ID: <886299170355111396da4f7cfeeb9ba8dee3f523.camel@linuxfoundation.org> Subject: Re: [PATCH] perf: Fix 6.1 kernel reproducibility issue From: Richard Purdie To: Bruce Ashfield Cc: openembedded-core@lists.openembedded.org Date: Fri, 03 Feb 2023 16:34:19 +0000 In-Reply-To: References: <20230203154727.1142151-1-richard.purdie@linuxfoundation.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.1-0ubuntu1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 03 Feb 2023 16:34:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176729 On Fri, 2023-02-03 at 11:02 -0500, Bruce Ashfield wrote: > On Fri, Feb 3, 2023 at 10:47 AM Richard Purdie > wrote: > >=20 > > The pmu-events.c file is generated by a python script making os.scandir= () > > calls. The return value is "order on disk" which can cary between machi= nes. > >=20 > > Add in a sed to fix the perf source to sort this data which makes > > the pmu-events.c file deterministic. >=20 > Looks good to me. The perf recipe is the great collector of sed manipulat= ions :) >=20 > >=20 > > We should try and upstream this change but we'll need to sed for varyin= g > > kernel versions. We should also try and get the perf source being added > > to the perf-devsrc package so when failures like this occur, diffoscope > > is much more helpful! >=20 > I can do this, if you haven't started on it. I can't say that i know > exactly why it > isn't already there, but it can't be that hard to figure out :) I haven't looked at submission upstream. I did have a quick look at the sources issue and realised: diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/pe= rf.bb index 1dff39a17e4..0a3179f18be 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -361,5 +361,5 @@ FILES:${PN}-python =3D " \ FILES:${PN}-perl =3D "${libexecdir}/perf-core/scripts/perl" =20 =20 -INHIBIT_PACKAGE_DEBUG_SPLIT=3D"1" +#INHIBIT_PACKAGE_DEBUG_SPLIT=3D"1" DEBUG_OPTIMIZATION:append =3D " -Wno-error=3Dmaybe-uninitialized" which makes them appear. Does anyone remember why we have that and if we can remove it? :) Cheers, Richard