From nobody Fri Jun 18 13:43:13 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 E729A7EA027 for ; Fri, 18 Jun 2021 13:43:16 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G60Vr5V3gz4WdH for ; Fri, 18 Jun 2021 13:43:15 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id DC66689296; Fri, 18 Jun 2021 13:43:13 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.16.1/8.16.1) with ESMTPS id 15IDhD3Y098530 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jun 2021 13:43:13 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.16.1/8.16.1/Submit) id 15IDhDNt098529; Fri, 18 Jun 2021 13:43:13 GMT (envelope-from phk) Message-Id: <202106181343.15IDhDNt098529@critter.freebsd.dk> To: Warner Losh cc: "freebsd-arch@freebsd.org" Subject: Re: It's time to kill statistical profiling In-reply-to: From: "Poul-Henning Kamp" 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-ID: <98527.1624023792.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Fri, 18 Jun 2021 13:43:13 +0000 X-Rspamd-Queue-Id: 4G60Vr5V3gz4WdH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N -------- Warner Losh writes: > Deleting the code from the kernel is the easy bit, I guess. I generally = support > this notion, but don't have the time to hunt down all the stuff in base = and > ports that uses these and make appropriate changes (up to and including = git > rm). It's no rush, we've had this obsolete facility for 20-25 years already, we can sweep the corners as we get to them. I think the main decision is that we want to do it, and if we want to keep profiled libararies for gcov or if we want to ditch profiled libraries. The main reason I prefer to change to gcov libraries is that it keeps the .mk infrastructure for having systematic variant librararies in place, over the years people have abused that for a lot of interesting experiments and hacks. I also suspect that s/-p/-fprofile-arcs -ftest-coverage/ is a LOT easier than removing that infrastructure :-) -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .