Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp795156imu; Thu, 13 Dec 2018 04:44:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/XnnB5HCzv9J+baJOib2SJPDcjED3/zddA54byfLqjn6Zl7/CT48uOIeVrqccM99CT3463j X-Received: by 2002:a63:7b06:: with SMTP id w6mr21660501pgc.288.1544705057638; Thu, 13 Dec 2018 04:44:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544705057; cv=none; d=google.com; s=arc-20160816; b=K0Nn0kc+Wn5UMNiWTHVqyJN3J/xNWB4uSFPm0xKmvXOuM7sJJzh4xIkYxIUOnxDciA wqDtYjuXq2dHGK7nUSlSPSrjO9G3sb/VbtB5Fo3Bx4pYs/GNnKgEjJZIfLTPslS1Lnbs 8nSXNClVVikg73Peiw7EczEAvgTf7i0Pz9C+B3btYIG2ZdQSdhbKWGEjERPmaNN1QpG9 3iz2Y+xtSwbPKTp87ZcItWqed1jnqFBefziSR+RmdczRxLg3obfpNGKO0Nh37c7nP7Vh iXZZxu0oeKh1oV1Ud+RkJ+McdWn0QdLZpIMkV53gfc6OmCsg2FlavkV6rD/bcBpWP/qu 5D0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=cokMUSjaXVTUGpy8NwxScbE3lIt+5uVLrM/NqE1NG1Q=; b=YR/4Wa0bCB9IOvV27MUYSQTl0iYD2XE5p/WCH0simi04dWqJTv08hNbEWEt03ImNrG wzy9FHMn4NSz5hBMlVrAR6hy+UxZN0LQvRBDmn76Sa9mY+ehMs8EqOQknuiN7Rfey3Tc hcGQkivRA6tI/o1nr2O5dQMQCst8IroIJe/B8M4Fguf4GwFLcYpua8aDGsF0RPA7XTYQ WNOLE/oZleufQW76I0Dg9Tkv2HclG90pNXFca66tTwoI2Y/vZ00VOARevXJNda2PZFrU mQmlKt9DUIdLvakpFRiaD18QEp++5JKRVoxVLeMNLDIJ6QF10c+c13ddEqkcbtY4DbC5 L4YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aF99buAs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si1408675pln.430.2018.12.13.04.44.02; Thu, 13 Dec 2018 04:44:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aF99buAs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729151AbeLMMnB (ORCPT + 99 others); Thu, 13 Dec 2018 07:43:01 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:41952 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728517AbeLMMnB (ORCPT ); Thu, 13 Dec 2018 07:43:01 -0500 Received: by mail-pf1-f196.google.com with SMTP id b7so1065867pfi.8 for ; Thu, 13 Dec 2018 04:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cokMUSjaXVTUGpy8NwxScbE3lIt+5uVLrM/NqE1NG1Q=; b=aF99buAsAvC9We6fA/+iRcHTqWpcw0R6Xpxrx6k/Fyme3CGDclKtw98EIue3X0btFB lbLA5OxGYCworxKCABC18LMxk8KveK8LThAGpkNjJql8jtSjawOxzIUcaLp61Wz0XzeM b3uSfrH5jBt6Pd5CqU9bMeI1rI4UfjwF6debEeZ6296hE2hxNRn7KYyciv43jhSykchY YLXGWgIe/eprRiG/XSzfGAau5k9pjH3gJaQxGkaVLB7xXMeXn6yF3vLZQbmkH1QMjKgK 7TPdSNqUSNQu+SA20UuCI62HlexbnPc8CTddRjDdfmUkjGcLlZQVBv2Iq8x5bBOTetWs FqXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cokMUSjaXVTUGpy8NwxScbE3lIt+5uVLrM/NqE1NG1Q=; b=DXYIoMQZVd89uHxilCNy30we95W12/pcv6SHbB85gwySpaVA5p2OSbTqkruTEME79S dpwhPTr3YeNc6Ps1DznYGQdvq+69AWhsTijfuJKbY8BUucGmJxYZADjyRZcwR9f+L1r8 D7tWLAmsB50TxqzHJ+cDXOVrOVstoIyFU0j805xFCcslHMPc2mhX1mGzBZ8sc6xefVbH IWCdacqOm3KM5gey+sWW3+X5rlIDfmnkyKsPdW+ekDVn/GM4z1NCEVfb/QgNe6BO5cVo 6pVM0QUo4Bcl95BL+KBPqUcs5Lss8sK5Ddh8jINdCscmlE76aE7HyXv75D7owc1nxwYG tzmw== X-Gm-Message-State: AA+aEWYTU6YDQnWD2TPvqmW4D1N/ahXkI+qHCaZj5XmWWkFRZ7EwFSct mwx3f9ib08xSmo7rzXkQgxA= X-Received: by 2002:a62:f5da:: with SMTP id b87mr24331020pfm.253.1544704979592; Thu, 13 Dec 2018 04:42:59 -0800 (PST) Received: from localhost ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id a17sm2417259pgm.26.2018.12.13.04.42.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 04:42:58 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Thu, 13 Dec 2018 21:42:55 +0900 To: Petr Mladek Cc: Tetsuo Handa , Dmitry Vyukov , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Andrew Morton , LKML , syzkaller Subject: Re: [PATCH] printk: Add caller information to printk() output. Message-ID: <20181213124255.GB3053@tigerII.localdomain> References: <20181130154024.ls3mntfdr4zvluub@pathway.suse.cz> <20181203150603.cdqii263e4kmmibo@pathway.suse.cz> <20181204152724.ypk44mi4a56nrud4@pathway.suse.cz> <459018db-763b-9520-ead2-2c0d5975fbf3@i-love.sakura.ne.jp> <20181210130930.bas4fozjhe3dc5nu@pathway.suse.cz> <20181213121847.mwlr2vyv6qzclhk6@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181213121847.mwlr2vyv6qzclhk6@pathway.suse.cz> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (12/13/18 13:18), Petr Mladek wrote: > > Sometimes we want to print a series of printk() messages to consoles > > without being disturbed by concurrent printk() from interrupts and/or > > other threads. But we can't enforce printk() callers to use their local > > buffers because we need to ask them to make too much changes. Also, even > > buffering up to one line inside printk() might cause failing to emit > > an important clue under critical situation. > > > > Therefore, instead of trying to help buffering, let's try to help > > reconstructing messages by saving caller information as of calling > > log_store() and adding it as "[T$thread_id]" or "[C$processor_id]" > > upon printing to consoles. > > > > Signed-off-by: Tetsuo Handa > > The patch looks fine to me: > > Reviewed-by: Petr Mladek > > Sergey, would you mind to ack this patch as well? Sure, Petr Acked-by: Sergey Senozhatsky > From my point of view, the patch is ready to go into > linux-next. Well, I would prefer to keep it there one more > release cycle. No objections. -ss