From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by sourceware.org (Postfix) with ESMTPS id 542243857011 for ; Thu, 15 Oct 2020 12:54:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 542243857011 Received: by mail-oi1-x242.google.com with SMTP id l85so2946206oih.10 for ; Thu, 15 Oct 2020 05:54:27 -0700 (PDT) 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:content-transfer-encoding; bh=G5T4OBFfRXvimgwoK55uJDqPECXhZIINbbHBou5rm2s=; b=BWxCnf1AaOOrJ2ktszKprnKq4ZIgoKHGn/RYxxSLu41w9uAK2DJks6E/fbuYZOvRCK RVOrR6QTuhZGD9oVJgQ0dRTwcMw7TqjvH9JJ/70VEw+FLyVlA2AyQ4FIjMhU9YaBYN6p cwM4XJtsWTfsNsKdBE6TmpWQkZ08WDQuLMi3rbN/NEnihxKOz3OE9PkWkeJHnSAA4B2V gn+xTeIPdL4tmO9+BFidEIwFbACHMqSwtHf/U0xQ3YttS2H0Fv/soD85R405xo5KdPdg 0L8DNkHjPAmxVerTdhjq5957M07iyMPmu4cMgc2pSzxU/8i/LudWJr850TVc5aDF2FUD 7+UQ== X-Gm-Message-State: AOAM531oWp7Aq2rRI8Fn0JfuwR84L0VCLD5K3BrI1KyZ2aI9wsIWtV9i IuAAGktkBRptB0tb+ymhXHiFzhe5D8s/DfpkHJs= X-Google-Smtp-Source: ABdhPJxAQUNMO6YDWCjFUF/C6VvP7lrcSGlguZGdBcC3746LVj+Qbm62kJkgdYa2pc0J+x5GcEMWNSaBNS8jdzD+tsU= X-Received: by 2002:aca:5605:: with SMTP id k5mr1913196oib.25.1602766466614; Thu, 15 Oct 2020 05:54:26 -0700 (PDT) MIME-Version: 1.0 References: <20200918160709.949608-1-hjl.tools@gmail.com> <20200918160709.949608-2-hjl.tools@gmail.com> <87imby6obw.fsf@oldenburg2.str.redhat.com> <87y2ku574k.fsf@oldenburg2.str.redhat.com> <87lfgu56c8.fsf@oldenburg2.str.redhat.com> <87pn663qm5.fsf@oldenburg2.str.redhat.com> <87ft71yq64.fsf@oldenburg2.str.redhat.com> <87362yl4fh.fsf@oldenburg2.str.redhat.com> In-Reply-To: From: "H.J. Lu" Date: Thu, 15 Oct 2020 05:53:50 -0700 Message-ID: Subject: PING^2: V4 [PATCH] x86: Initialize CPU info via IFUNC relocation [BZ 26203] To: Florian Weimer Cc: "H.J. Lu via Libc-alpha" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3036.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2020 12:54:28 -0000 On Thu, Oct 8, 2020 at 6:22 AM H.J. Lu wrote: > > On Thu, Oct 1, 2020 at 12:50 PM H.J. Lu wrote: > > > > On Thu, Oct 1, 2020 at 1:46 AM Florian Weimer wrot= e: > > > > > > * H. J. Lu: > > > > > > > diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c > > > > index dadec5d58f..65ab29123d 100644 > > > > --- a/sysdeps/x86/cacheinfo.c > > > > +++ b/sysdeps/x86/cacheinfo.c > > > > @@ -16,7 +16,9 @@ > > > > License along with the GNU C Library; if not, see > > > > . */ > > > > > > > > -#if IS_IN (libc) > > > > +/* NB: In libc.a, this file is included in libc-static.c. In libc= .so, > > > > + this file is standalone. */ > > > > +#if IS_IN (libc) && (defined SHARED || defined _PRIVATE_CPU_FEATUR= ES_H) > > > > > > libc-static.c should be libc-start.c, I believe. The =E2=80=9Cdefine= d > > > _PRIVATE_CPU_FEATURES_H=E2=80=9D part seems rather indirect. What ex= actly are > > > you trying to accomplish here? > > > > > > It looks to me as if this file should included in libc.so, but not > > > pulled into ld.so via the rebuild, so maybe you can add an empty > > > sysdeps/x86/rtld-cacheinfo.c file instead? > > > > > > > Here is the updated patch. I also moved files around to prepare > > for moving x86 processor cache info to cpu_features in ld.so to > > support --list-tunables. > > > > PING: > > https://sourceware.org/pipermail/libc-alpha/2020-October/118228.html > I will check it in tomorrow if there are no objections. Thanks. --=20 H.J.