From owner-freebsd-current@FreeBSD.ORG Tue Nov 13 23:43:16 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DC1967B; Tue, 13 Nov 2012 23:43:16 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 87CFB8FC14; Tue, 13 Nov 2012 23:43:15 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id x43so4437685wey.13 for ; Tue, 13 Nov 2012 15:43:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=SS6YCC8wut/5HMFksbnLDc/lSk9lfMFQiOPLUM24MKM=; b=Rso8Sq8O2qttx+FR0jNNascW2w9T6F7nsJ9YnP86CBzuSM6qqxf/9NPgDPLjnTQvFy kXoPyrDdypbXQDY9lVE0DufF7TDDP6Q5sdEBzk1ONrfg4otbPVzvsREj958ud/vWVRIB D55sV04B/hrngYlpVybTYh54zaU19piWnKQLlnS9FvednsDQ/RQYKBHFyTGvR7b6ZJyj cnU8kX+btxImxOSbltDkb958FHFkGZTZM/6P6nBuXIyvnznE+Ny23jP4zDdgTUDGdXWR AFYx3qcHPrIQXi4N0WdbDnWd3kCZ0+ldZxTQuv2Wazw4cGAHMWFPDY5dkumN+u/ZdWmX cGJw== Received: by 10.216.71.76 with SMTP id q54mr943024wed.171.1352850193649; Tue, 13 Nov 2012 15:43:13 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id hv4sm20950173wib.0.2012.11.13.15.43.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Nov 2012 15:43:12 -0800 (PST) Date: Wed, 14 Nov 2012 00:43:03 +0100 From: Mateusz Guzik To: freebsd-current@freebsd.org Subject: compiler info in kernel identification string Message-ID: <20121113234303.GA15319@dft-labs.eu> Mail-Followup-To: Mateusz Guzik , freebsd-current@freebsd.org, avg@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: avg@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 13 Nov 2012 23:43:16 -0000 Hello, avg@ suggested to include compiler version in the kernel so that it's present in uname (and one can easly tell what was used to compile it). Here is my attempt: http://people.freebsd.org/~mjg/patches/newvers-compiler.diff Basically adds compiler name and version/revision after revision of system sources. Sample output from dirty git sources: gcc: FreeBSD 10.0-CURRENT #7 r242962=264d569-dirty(gcc-4.2.1-20070831): Wed Nov 14 00:11:51 CET 2012 clang: FreeBSD 10.0-CURRENT #8 r242962=264d569-dirty(clang-r162107): Wed Nov 14 00:12:26 CET 2012 Sample output from svn with gcc: FreeBSD 10.0-CURRENT #1 r243006:243007M(gcc-4.2.1-20070831): Wed Nov 14 00:41:23 CET 2012 I have no strong opinions on format, I just want this information easly accessible. Comments? -- Mateusz Guzik