From nobody Sun Jun 20 21:08:25 2021 X-Original-To: arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1491F11E4E32 for ; Sun, 20 Jun 2021 21:08:35 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G7QHk64Lcz4sw5; Sun, 20 Jun 2021 21:08:33 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 15KL8PxP045164 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 20 Jun 2021 14:08:25 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 15KL8PAO045163; Sun, 20 Jun 2021 14:08:25 -0700 (PDT) (envelope-from sgk) Date: Sun, 20 Jun 2021 14:08:25 -0700 From: Steve Kargl To: Ed Maste Cc: John Baldwin , Poul-Henning Kamp , "freebsd-arch@freebsd.org" Subject: Re: It's time to kill statistical profiling Message-ID: <20210620210825.GA45154@troutmask.apl.washington.edu> References: <202106180736.15I7aYmk068064@critter.freebsd.dk> List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4G7QHk64Lcz4sw5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sun, Jun 20, 2021 at 03:18:31PM -0400, Ed Maste wrote: > On Fri, 18 Jun 2021 at 11:13, John Baldwin wrote: > > > > As Konstantin has noted, we already no longer build or ship > > -pg libraries by default. > > Kostik was talking about only kernel -pg support I believe; we still > build _p.a libraries by default. I floated the idea of disabling them > by default but there was some opposition and I didn't proceed. > > It seems like it is in fact past time to disable them by default, and > I've now put the change in review at > https://reviews.freebsd.org/D30833. Are there plans to replace the _p.a with something that allows profiling code? If not, are you upstreaming patches to GCC to disable -pg? AFAIK, 'gcc10 -pg ... -lm' causes gcc to look for at least libc_p.a and libm_p.a. -- Steve