From owner-freebsd-current@FreeBSD.ORG Fri Oct 14 07:24:18 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17B5F1065674 for ; Fri, 14 Oct 2011 07:24:18 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9F8EE8FC1A for ; Fri, 14 Oct 2011 07:24:17 +0000 (UTC) Received: by eyd10 with SMTP id 10so1051921eyd.13 for ; Fri, 14 Oct 2011 00:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=Up0yA1vkXqugtS4olpgyb52PKkr1Wk26PHNjHD/URGs=; b=YYPwT9Up+EZmEpJgjfCAPTA8aED+dRFTld36auOPuanOso6Uahi2mjV7YMl7BWgoYb QNrvXhXejwjmKgZZh9oUdQ2c4qItRBp16WUOPJhrTxhwwuxSaLpaWcgbQEAT76Kt9pU9 RNw/sfulSMBvULFskPiVz0dVAbBpe5IedPkKg= Received: by 10.223.85.134 with SMTP id o6mr2059861fal.8.1318575480449; Thu, 13 Oct 2011 23:58:00 -0700 (PDT) Received: from imba-brutale.totalterror.net ([93.152.152.135]) by mx.google.com with ESMTPS id a1sm1992392fab.4.2011.10.13.23.57.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 23:57:58 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Nikolay Denev In-Reply-To: Date: Fri, 14 Oct 2011 09:57:56 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <45812C38-5FD2-43C4-825E-94B0E03A7AA6@gmail.com> References: <4e972734.52b1e00a.15ed.ffffd873@mx.google.com> To: Arnaud Lacombe X-Mailer: Apple Mail (2.1251.1) Cc: FreeBSD Current Subject: Re: [RFC] Prepend timestamp in msgbuf 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, 14 Oct 2011 07:24:18 -0000 On Oct 13, 2011, at 9:40 PM, Arnaud Lacombe wrote: > Hi, >=20 > On Thu, Oct 13, 2011 at 2:00 PM, wrote: >> From: Arnaud Lacombe >>=20 >> Hi folks, >>=20 >> There is many case recently when I really wished timestamp were = present in the >> post-mortem msgbuf. Such situation could be when userland application = segfault >> potentially triggering a panic/crash, or have information about the = time-wise >> location of a given message (kernel or userland). >>=20 >> Attached patch is available in the git repository at: >> git://github.com/lacombar/freebsd.git master/topic/msgbuf-timestamp >>=20 >> Arnaud Lacombe (3): >> msgbuf(4): convert `msg_needsnl' to a bit flag >> msgbuf(4): add logic to prepend timestamp on new line >> msgbuf(4): add a sysctl to toggle timestamp prepend >>=20 >> sys/kern/subr_msgbuf.c | 53 = ++++++++++++++++++++++++++++++++++++++++------- >> sys/sys/msgbuf.h | 4 ++- >> 2 files changed, 48 insertions(+), 9 deletions(-) >>=20 Cool! I've dreamt for something like this for a long time, it can be very = useful. Regards, Nikolay