Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp654802pxy; Wed, 5 May 2021 10:26:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoNx7MYoSv4hies201zz4y6ZbAHiCo7TOyts//tBUzDEDmwkptJU61nskQhEz0muRabNsd X-Received: by 2002:a05:6402:2548:: with SMTP id l8mr142605edb.208.1620235563448; Wed, 05 May 2021 10:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620235563; cv=none; d=google.com; s=arc-20160816; b=t/Gd/aeNo1rFv/CCDere1/nd6Q8LDCY45KhSTiVABSFyGLcnb3zzPc/OPTk3VuAdDg 2cxQhVRfOR6x/13jrZRu0YWvLsSegvVNVbhlBzeoOPY5W8Y4PbVL4PllcuLXrjIdAhT1 dxl4Fa9IUtSZ6bP0P9+7yLi1SO09E0vHG/lNKFLtBWN+fwmScNtUDc/FaxQxxlWUOXdq pNl25pkfgeGTYLjiEfpXHj3P5KxXrAUaYGQvfv83eS1zCrBuQdbXT5i5yar+HcKXOclZ h7RdPejDo5dUPjoKfW0l9Ayz88948VaNBePDx0rv+eRD9csh1kgrqlDKzEk9QT1y4BjD psNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=p632O3naoBU5t+ePrqWjzhzt+/y4X0wDsqF7Yp7JTAE=; b=xGUtx7aSwQrxVSvW++UMnjEnmZKLV7U27yIk+ydr3bZK6/MG/ZQqpxyoWrWhgsPsjX Rb13+CPd81PU/3VA6+ALvoKNFXCZa2fuvDAdG6gJdKRm+2ID9GsX9OU0hbYDuzUZpAYu RQitNlXSOBe6P/GOB0ks2k4PGXL7y8lgbCfeSp28HuBq8qFsv1tU9DzM5onxNagdGnM2 xGtuNGjY7i7DEB2W4DnqqWpfjYD8nF5PGAZ883+tQ6XBZKenrzU0a2myN6DnKQTi3kMN W0ZRHkGU2ljqs/+qkP6/3DTqrmFFKWFN3Jx8r4H7J6oSFXEgLcnFhPqdg8kjPNmEXZJv J7oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VOga867t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw23si1913edb.276.2021.05.05.10.25.33; Wed, 05 May 2021 10:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VOga867t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240515AbhEERVU (ORCPT + 99 others); Wed, 5 May 2021 13:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238510AbhEERGG (ORCPT ); Wed, 5 May 2021 13:06:06 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E147C03460F for ; Wed, 5 May 2021 09:41:23 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id u20so3290261lja.13 for ; Wed, 05 May 2021 09:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p632O3naoBU5t+ePrqWjzhzt+/y4X0wDsqF7Yp7JTAE=; b=VOga867tf8qZ51Av7HLXkufDjR8oYKWWmLnjl2OZ9OdARtwdCHgrNlP7a69Dr6yTpK LsJEaDKpuDZVKLKxp/E6IMxHhBqE5bE4RsUzpaJwdQplak51pLcp/I2gUKIG4lheJANN qGPXLL0eidHOiXAlkWp2KAvD+0vRLemkfw114BiuUtvREAaHsc1nQmEhaCzLXiwQv21T Vz0wW6X7AufSlpyZ/rSTXD0H72u8l7j3/gPRnVHDoD65NK0qksnVb6O1rtnKah2vRKM+ MXWH2vXW++jRf1XQTqjVM+SsiSW9TKiKjQquJRaa5wmumkXb9QLUuYx5oQ01Ct8Ka0rN 43pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p632O3naoBU5t+ePrqWjzhzt+/y4X0wDsqF7Yp7JTAE=; b=mSLBNrMAKYCncn5ZXL92SmxNPkuPLHhja0dMNzOuYAWZ+5IgctW913LVHPdTItLg/F L6SoW3Eh/6jz0I/1t/oy1uFakOIuWmXfAd08IWgDh02TkJzoHAJq1z20zcXDFZaYYEOS Gxrixh6XpVC2Z1o05/60U0aYI/+bVg39kp9WwOX0e5J3Fz0nyoVDlhQ2uoHYewADeqd+ IsDEObq8fLASEOpWgEt3PFAU+OzUk+HdyJKVs6MfxW13F0hh8lTljnDddzf3YAX4IKK1 CPAcQGGUc/OC/pS4GlYlXknX77+SxKPuG9lxcjYOWq4ftv+MNevTf6OD8mUWgpuTZY6k gatg== X-Gm-Message-State: AOAM533AjUdoXTgrZLdSycbl2ghgYdcbX+ZJcZRTNjuS19tEbR9L7Dke tJrCvA4Bpt97kh4VRHU2Sqpq8MNX31BgK6ypQnzyZw== X-Received: by 2002:a2e:8e3a:: with SMTP id r26mr14162031ljk.244.1620232881373; Wed, 05 May 2021 09:41:21 -0700 (PDT) MIME-Version: 1.0 References: <20210505033945.1282851-1-ak@linux.intel.com> <875yzxh8j8.fsf@oldenburg.str.redhat.com> <20210505143916.GS4032392@tassilo.jf.intel.com> In-Reply-To: <20210505143916.GS4032392@tassilo.jf.intel.com> From: Nick Desaulniers Date: Wed, 5 May 2021 09:41:09 -0700 Message-ID: Subject: Re: [PATCH] sched: Work around undefined behavior in sched class checking To: Andi Kleen Cc: Florian Weimer , Peter Zijlstra , LKML , Andi Kleen , linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 5, 2021 at 7:39 AM Andi Kleen wrote: > > > Would you please provide a > > minimal test case? > > You can only reproduce it with a LTO build because it needs knowledge > between different translation units for this specific case. > > But gcc will totally do the optimization even without LTO if it can > prove the same inside a single TU. It would be helpful to isolate a test case that doesn't rely on LTO, if possible. -- Thanks, ~Nick Desaulniers