From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 09:10:22 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1DC91065673; Fri, 20 Aug 2010 09:10:22 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 8287F8FC0C; Fri, 20 Aug 2010 09:10:22 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 629961FFC33; Fri, 20 Aug 2010 09:10:21 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 37E288456E; Fri, 20 Aug 2010 11:10:21 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Doug Barton References: <4C6505A4.9060203@FreeBSD.org> <4C6C1CFE.6060900@FreeBSD.org> <20100818.121635.431102609571763034.imp@bsdimp.com> <86bp8zdkp4.fsf@ds4.des.no> <4C6D0BBB.90304@continum.net> <867hjmdfdo.fsf@ds4.des.no> <4C6D794F.4090801@FreeBSD.org> Date: Fri, 20 Aug 2010 11:10:21 +0200 In-Reply-To: <4C6D794F.4090801@FreeBSD.org> (Doug Barton's message of "Thu, 19 Aug 2010 11:34:55 -0700") Message-ID: <868w41y7ia.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: Official request: Please make GNU grep the default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 09:10:22 -0000 Doug Barton writes: > There are 2 questions, did I do the right thing, and how should people > report problems in general. As for myself, while I have some facility > in C it's not my strong suit. Yes, I could have produced a profiling > version of grep, but it would have taken me a lot more than 10 minutes > because I don't even build the profiled libs on a regular basis. That's fair. I didn't use to do that because it increases build time considerably, but now I do. If you have profiling libraries installed, you can build a profiling version of grep (or any program) like so: % cd /usr/src/usr.bin/grep % make clean % make DEBUG_FLAGS=3D"-pg -g" -DNO_SHARED Do *not" make install, because the result will be dog slow and you don't want to use it in production. Every time you run it, it will leave a file named grep.gmon in your current directory, so: % /usr/obj/usr/src/usr.bin/grep/grep -q "^xfce4-wm" /usr/ports/INDEX-9 % gprof /usr/obj/usr/src/usr.bin/grep/grep grep.gmon | less > More generally however I think that we need to be realistic with what > we expect people to do about reporting problems. This is not about "what we expect people to do" but about "what I expect *you*, an experienced FreeBSD committer, to do" :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no