From nobody Tue Jun 22 00:57:01 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 2573111D9CF4 for ; Tue, 22 Jun 2021 00:57:09 +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 4G87K06h6Jz3hvt; Tue, 22 Jun 2021 00:57:08 +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 15M0v1HY049047 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 21 Jun 2021 17:57:01 -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 15M0v1F8049046; Mon, 21 Jun 2021 17:57:01 -0700 (PDT) (envelope-from sgk) Date: Mon, 21 Jun 2021 17:57:01 -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: <20210622005701.GA48991@troutmask.apl.washington.edu> References: <202106180736.15I7aYmk068064@critter.freebsd.dk> <20210620210825.GA45154@troutmask.apl.washington.edu> 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: 4G87K06h6Jz3hvt 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 Mon, Jun 21, 2021 at 11:25:29AM -0400, Ed Maste wrote: > On Sun, 20 Jun 2021 at 17:08, Steve Kargl > wrote: > > > > 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. > > I believe this is how GCC operates indeed, but I'm not aware of the > implementation or specific details. For part of the answer, one is looking for gcc/gcc/config/freebsd-spec.h. This is where -pg maps libc.a to libc_p.a. I can't easily track down libm.a to libm_p.a until later this week. A bigger problem for FreeBSD and GCC is that there appears to be no active FreeBSD GCC maintainer(s). I submitted a GCC patch for the C language that fixes a few hundred C language testsuite failures, and a C++ patch that fixes complex arithmetic. Both are languishing in GCC bugzilla. -- Steve