Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp786797ybh; Tue, 21 Jul 2020 07:57:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDfijbfqrLPmO+64SFM3I2QME13nJaG/HkHs5LYf4a1ZgEGprA4NI5b0UTzBsL4euOzjLw X-Received: by 2002:a17:906:b45:: with SMTP id v5mr24659837ejg.464.1595343470413; Tue, 21 Jul 2020 07:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595343470; cv=none; d=google.com; s=arc-20160816; b=TK5FbwZMJqEWv/FMSwTQKPS+Tfx1EBvTsv6z1nT063QirgR7OcR7tTdUpUHQEidbCZ VQmJQhQoivioDWzLxv6hlReySLKqqgiWZcLKr+bmUBW6vjnrQ8sM6hTSC4HRFAcW8iMf Jthh2BIsGMbVtzGls94X8vh4OdQNUagpSa5iSZFtgM14edGTMLqpNRg8ttiroLdkooBQ VgAUGjzlmegDWfx3CQ83O1nxYHJxsDkyIJnoYhSE2yJAWicHzuc3Ui+8lpTye8OJPFwi 6D2TxU+RnXxcoN88bUPP15doshu1qx5IMrWsdGGkhM7lI2N1J2AA6HT/mkdE6JO424gM Oy5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=G0hd/HqaHi+sC5Cb/7dGS7Dm/p8jgsSDeWCrD5MiSf4=; b=gUhMV8nCscSkTjxwLXAzoSBFF7U/mPaL1DcOzSIpsLn5iaUaTl2nXWs/UvCRDvh2RF ag/GlNcagGLhC6oa2n2lPUBe/F+xoedqYuT+olXAXF4BhDpuNXSkgtEo/8KXIETDNwcS 8KcCH9/UeDP/CQFjjbJpmCBjvRrckeKap8Ji4P2CMvGr1jcz6JO2h+bwUARUPYElwi8S FbcZ1rm68tVhcZs6luRs3daZwkw7YaCoRSKZNZF0FlFMOYm4n0dWRSB1/dOimGLqtmgj bZeITYb/XFUwLArGhzXYTdMoxFcVvpTc1hWdLVzAlli39vvOKxzBINEz6bjnkgNne92E GJMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=juG+CQsX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=3VdtYT2N; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si12809429ejc.348.2020.07.21.07.57.27; Tue, 21 Jul 2020 07:57:50 -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=@linutronix.de header.s=2020 header.b=juG+CQsX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=3VdtYT2N; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728600AbgGUO5T (ORCPT + 99 others); Tue, 21 Jul 2020 10:57:19 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40598 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbgGUO5T (ORCPT ); Tue, 21 Jul 2020 10:57:19 -0400 From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595343436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G0hd/HqaHi+sC5Cb/7dGS7Dm/p8jgsSDeWCrD5MiSf4=; b=juG+CQsXZv88giGDNbib+yxQ7AH8kThmTUETtnS/AMQXOiZYX3HSdSn2fYZBFcwuYvef6X faXflTdSJIBmnO3hCQ8yV5tpRcWctTB4tBaZB8LFwMM8mfFm1Wgwpr0dOnF4A5rrsc8Tnk NDkXRXPalGpp7cjP0Uev0oW+rYNr17Ua69V5lH5yY+FgluFWEAUXQgdMVffgWaWMu6kP3M 4o1hnbqfHm11hfKB8yeOJySZTwpcdr/ku1L3nVZdgBQGG1Qw4tldSqEdRKLX7xnox4zvhK GvmtKcPLV2LhtLNlPOcOzHOGC6BqCoWWqJegdEUeBjLNFaCWKVLS2IxqUkcoZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595343436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G0hd/HqaHi+sC5Cb/7dGS7Dm/p8jgsSDeWCrD5MiSf4=; b=3VdtYT2N6f8es2zunWzjp7EoGj+vK0PfjSnVPq9/w9hn5A+/lljl6eoSVy9EKWs20R6ySm 5KA8TAfuhGSYFUDw== To: Sergey Senozhatsky , Linus Torvalds Cc: Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Peter Zijlstra , Thomas Gleixner , kexec@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [PATCH 2/4] printk: store instead of processing cont parts In-Reply-To: <20200721144220.GE44523@jagdpanzerIV.localdomain> References: <20200717234818.8622-1-john.ogness@linutronix.de> <20200717234818.8622-3-john.ogness@linutronix.de> <20200719143527.GA566@jagdpanzerIV.localdomain> <20200720015057.GA463@jagdpanzerIV.localdomain> <20200721144220.GE44523@jagdpanzerIV.localdomain> Date: Tue, 21 Jul 2020 17:03:16 +0206 Message-ID: <87ft9kx6er.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-21, Sergey Senozhatsky wrote: >> That said, we have traditionally used not just "current process", but >> also "last irq-level" as the context information, so I do think it >> would be good to continue to do that. > > OK, so basically, extending printk_caller_id() so that for IRQ/NMI > we will have more info than just "0x80000000 + raw_smp_processor_id()". If bit31 is set, the upper 8 bits could specify what the lower 24 bits represent. That would give some freedom for the future. For example: 0x80 = cpu id (generic context) 0x81 = interrupt number 0x82 = cpu id (nmi context) Or maybe ascii should be used instead? 0x80 | '\0' = cpu id (generic context) 0x80 | 'i' = interrupt number 0x80 | 'n' = cpu id (nmi context) Just an idea. John Ogness