Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp431360pxk; Wed, 23 Sep 2020 06:58:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz15U9q64FiauQ7ix9WrvDlCsa8EPkh6q80O/0BZ8EV1t1RLV8So4F4DtzwHp8Dsa1QUNxu X-Received: by 2002:a05:6402:1d29:: with SMTP id dh9mr10134717edb.124.1600869488263; Wed, 23 Sep 2020 06:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600869488; cv=none; d=google.com; s=arc-20160816; b=0sy8ZN3Px4FfSBLGMXhQ/YgfYjdF/d/0Ghxpk8AyNYFjVYxIfr5ZgmwuvECn3Zl+oG Fwi0fKKS2N/99V/BXDk0i/SSCOVQn8oaLmKqXjxlGfj5qvYSSBemk/9YUAL0k58hrpX0 C2x1ttQI+s3oO9q8vwcfu5/5oxhakmH/X6ncFSVoKAz/Rfj8DY1JYan3R0pZyvZu6kr/ vG3fBLcK+3Ec1In9/F32n9zzAzlw0i/uMxH665oQCnyw31tFs3nkPb1WIjdM/uOWsmhd LhI1sL5MFuZau6Hz+uSg0XjrXDdOWKX5cSOwg6nUpi9SxaNRdiLdYmCZ+j03h2S7C16E vdUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KBx+gik6NBNzI5P+pAz4fybhKo40AHUvEejBWLTvCVg=; b=MZtmHmmZtu6J+AB+f2RcU9TCD5jKM2BgSQnBueeRmtxtv/bIlIdYOm4SE4YAmumDEC vjY4X6W9PLz4oDnPwQMXuzeLcNB8qfShlRLEt0WiDttq/mZG7lhxS+mK0mzgj44+XJXY GnjHYnZ+DxnGorOiqvKNzAGwQXulOZjcJu75D3wI4kZLvJ1x4Er0LdQI5GUWrSyR8TZC 4y0lKzCgdwJWGQpRfBfC+CHeHET3fGd22ig9rpX8TH/JKCcxBPaslFoqd+46pqNDlBYR yFQ2AD4FcXjfdlqEic3uL6HrRGppkVSxZrHclsIsyJXt1sjDWE5JTILbtFenP+GpbfdA M5cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=JUDBeM1B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si12238188ejb.519.2020.09.23.06.57.43; Wed, 23 Sep 2020 06:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=JUDBeM1B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbgIWN4i (ORCPT + 99 others); Wed, 23 Sep 2020 09:56:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:49094 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgIWN4i (ORCPT ); Wed, 23 Sep 2020 09:56:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600869397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KBx+gik6NBNzI5P+pAz4fybhKo40AHUvEejBWLTvCVg=; b=JUDBeM1BuLX57DzG2o7IYxSrOR9dLJ+1hVyxGOR9RuJKyWnFpMnggp0yXTFkxahayOREOL fHU3ytWzKkmWH3qIMwseDbMEkRoaDf1PSsJQcm4D7GokSlcNxozE8aLLmj+p1fsUF9LgvD B4VeW4eYb/vECDKEQLHvjAZTZyTjzog= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9D081AC26; Wed, 23 Sep 2020 13:57:14 +0000 (UTC) From: Petr Mladek To: Sergey Senozhatsky , Steven Rostedt , John Ogness Cc: Linus Torvalds , Thomas Gleixner , Prarit Bhargava , Mark Salyzyn , Chunyan Zhang , Orson Zhai , Changki Kim , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Petr Mladek Subject: [RFC 0/2] printk: Add more metadata for each record Date: Wed, 23 Sep 2020 15:56:15 +0200 Message-Id: <20200923135617.27149-1-pmladek@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There have been repeated requests to store and print more metadata for each line, see the two patches for more details. This patchset handles the storing part so that we could do it together with the other changes of the ring buffer structure. It would be nice to get it into the same kernel release to reduce pain on the crash tools side. My proposal is to make this information available via /dev/kmsg as dictionary values. The console output would probably need to be configurable. I would ignore syslog syscall that is hard to extend and is basically obsoleted by /dev/kmsg. The patchset applies on top of the current printk/linux.git, branch printk-rework (after the dict ring removal). You also need to merge "timekeeping-for-printk-2020-08-23" tag from tip.git. It provides "struct ktime_timestamps" and ktime_get_fast_timestamps(). I still need to add the gdb-related changes if there is not a strong opposition to these changes. I just wanted to send what I had before starting review of the logbuf_lock removal patchset. Petr Mladek (2): printk: Store all three timestamps printk: Add more information about the printk caller kernel/printk/printk.c | 129 ++++++++++++++++++++---------- kernel/printk/printk_ringbuffer.c | 43 +++++----- kernel/printk/printk_ringbuffer.h | 42 +++++++++- 3 files changed, 148 insertions(+), 66 deletions(-) -- 2.26.2