From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 354F1386EC57 for ; Thu, 18 Mar 2021 20:40:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 354F1386EC57 Received: by mail-ot1-x329.google.com with SMTP id 68-20020a9d0f4a0000b02901b663e6258dso6447736ott.13 for ; Thu, 18 Mar 2021 13:40:22 -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; bh=iFk80AbojkI4lEyp/dGK+zGHRiinAmG5boG6Oikm5/c=; b=nL4CvRaf9hPFjsyEckpPQq+PElHshsO0+KGyKYMr4xYkGYjT5uXJNlt93LfZXzgWjV Oi/zM89+KwGKliyk3oAw2AVlph8Nr1or0uw6Im0J0oo0CNPtyWOrzQ2b9VEhin84TC7z drODcuxgG5hGMnMV/17CWk9XJtVJmBkVE/f54wrowtgYeZ8czLuNAg3XvP4738gwbBZO vZRyTNt82D9OrC2+nR2LalQIt1zrCyCibi5rQ8OdqaGYcU8RHf+vKz2MrAkdjj6i4d3V G5mNCZZcz1cuQcvkKdJfVEYJKExsY2Ba2n4py5RPEOi8K0FYSLRMUINjUnFvPaUEXfhs uczw== X-Gm-Message-State: AOAM533hctjPhWxd0H95pyaYkWKLuZs8VVxpGWwp/MsmEoJQj+KVMj32 ZNWoh/br5sXuLjkqsCmTy+znNU2aOtWg/4jbywz1H1dHPLk= X-Google-Smtp-Source: ABdhPJxVr+eN5h/bI1cj619hCXxfwt94L0wMEhQz+OC3SwF6nCD8FlBrGkBdmO1rcqo6vdJVjir0Pc7Rq4THpfuqDRo= X-Received: by 2002:a05:6830:1515:: with SMTP id k21mr8650564otp.269.1616100021568; Thu, 18 Mar 2021 13:40:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "H.J. Lu" Date: Thu, 18 Mar 2021 13:39:45 -0700 Message-ID: Subject: Re: tunables vs osxsave vs checkpointing vs _dl_runtime_resolve To: DJ Delorie Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3029.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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, 18 Mar 2021 20:40:23 -0000 On Thu, Mar 18, 2021 at 10:45 AM DJ Delorie wrote: > > > "H.J. Lu" writes: > > Please open a glibc bug and CC me. > > https://sourceware.org/bugzilla/show_bug.cgi?id=27605 > GLIBC_TUNABLES=glibc.cpu.hwcaps=-XSAVEC can be used to control it: (gdb) r --direct Starting program: /export/build/gnu/tools-build/glibc-cet-gitlab/build-x86_64-linux/elf/tst-x86_64-1 --direct [Inferior 1 (process 1499934) exited normally] (gdb) b _dl_runtime_resolve_xsave Breakpoint 1 at 0x7ffff7fe19d0: file ../sysdeps/x86_64/dl-trampoline.h, line 67. (gdb) b _dl_runtime_resolve_xsavec Breakpoint 2 at 0x7ffff7fe1aa0: file ../sysdeps/x86_64/dl-trampoline.h, line 67. (gdb) r Starting program: /export/build/gnu/tools-build/glibc-cet-gitlab/build-x86_64-linux/elf/tst-x86_64-1 --direct Breakpoint 2, _dl_runtime_resolve_xsavec () at ../sysdeps/x86_64/dl-trampoline.h:67 67 _CET_ENDBR (gdb) set env GLIBC_TUNABLES=glibc.cpu.hwcaps=-XSAVEC (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /export/build/gnu/tools-build/glibc-cet-gitlab/build-x86_64-linux/elf/tst-x86_64-1 --direct Breakpoint 1, _dl_runtime_resolve_xsave () at ../sysdeps/x86_64/dl-trampoline.h:67 67 _CET_ENDBR (gdb) -- H.J.