From owner-freebsd-questions@freebsd.org Mon Jul 6 05:27:12 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7B3C4359D88 for ; Mon, 6 Jul 2020 05:27:12 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (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 "mail.antonovs.family", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0Ywb4gclz4lPR for ; Mon, 6 Jul 2020 05:27:11 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: by mail.antonovs.family (OpenSMTPD) with ESMTPSA id 3b95b926 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 6 Jul 2020 05:27:07 +0000 (UTC) To: freebsd-questions@freebsd.org From: Ihor Antonov Subject: Timestamps in dmesg Message-ID: <9fb6daea-7b45-3eed-509a-66dca35d5a92@antonovs.family> Date: Sun, 5 Jul 2020 22:27:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B0Ywb4gclz4lPR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=antonovs.family; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family X-Spamd-Result: default: False [-2.92 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.985]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; NEURAL_HAM_SHORT(-0.15)[-0.146]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2020 05:27:12 -0000 Hello FreeBSD folks. A question I've got recently while monitoring a few bugs on my laptop is "Why does dmesg not show timestamps?". My use case is following: once in a while a buggy driver would spill an error into dmesg. It does it periodically, probably in response to some user action. When I look at dmesg I see dozens of similar error messages, but I don't know really how often they happen. Did it happen 15 times in last minute? Or 15 times over this day? Having timestamps would help to correlate errors to other events. I tried searching through old mailing lists and forum and the only thing I found is that someone considered this feature to be a bloat. (NetBSD has it!) Am I missing something obvious? How can I get timestamps in dmesg? It seems to me that this is such an essential feature.. Thanks. Ihor Antonov