Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3823039ybe; Mon, 16 Sep 2019 01:46:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9/vbO86+dASmXRjkJP34tO2XOskCHeVfbycPi2XsxF6azM9i/pSQzi4hrBIwK1nsT+XrF X-Received: by 2002:a05:6402:2045:: with SMTP id bc5mr14207265edb.248.1568623613275; Mon, 16 Sep 2019 01:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568623613; cv=none; d=google.com; s=arc-20160816; b=NEaHUQlR1+ulgK+u/36dLxnvy36T1iqg3Uz3+qq5zJj7pk05JhVoPr6URNsSwEWWZV jJNWbpvJ3+GBL9UxkBx8AJHDUohMF0PNk4bvocf2VEQJH3DyBmdH9JmjCGivdsFTPnxC +vJHPNZDFaPlSgGSbXhh9VPXCTPB5kMrDczTlnE2XY3wCIJwTRYMXKnC7Feq+FgVTA1J TK3pAJF6aIVrEpQodyKGWpqRzqdqi4htTRjor/C1JicrY6Nyknz0koA0TXv7u0YRuY6+ YY2RxTMmEO2K/iQK8CY9Oop6WKwqY6HbOWg2mZwUAklIC1+GzREf+etVUoIbE5mzrCBd HHwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=RcAlJ9uOtgEybyQ1ndGRb5+G3mEFIZHy17SvmT4BkVM=; b=HvJnHE75+ETVcI96Kd9QV4uIe7kFkdKtjUCf7g69dp6eLD8oVHKfoP6YcC5gBoYrtv SDdrhomoTlqPgqk1FFLo17zxOMbM+2SnMuFYZdLrtSk1y0gejc9ckRJmZO3m+7i0KeHm JfcCIlEY7AOpXYDSGvZp18I4Tg9lcQhmF+VMVEQCOe+R3BO+CUvHdDcysEbF9RUcTWJ6 Z7w/Yz10yM1et7UmGIb+8b/SugOqS5AuqFXkoXeenoI9UEUfCeLrIf0hCtd2pe2hDfvu mH3B0FpEmY29O4jwhCGC9NyHo7JGHi9T1zn9LYPu/7Xds6XrbFdCZaaXAG1zmcYRwDFd TSPg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si18289283eju.221.2019.09.16.01.46.30; Mon, 16 Sep 2019 01:46:53 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727317AbfIPEa2 (ORCPT + 99 others); Mon, 16 Sep 2019 00:30:28 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:59927 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfIPEa1 (ORCPT ); Mon, 16 Sep 2019 00:30:27 -0400 Received: from fsav304.sakura.ne.jp (fsav304.sakura.ne.jp [153.120.85.135]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x8G4UPN1082368; Mon, 16 Sep 2019 13:30:25 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav304.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav304.sakura.ne.jp); Mon, 16 Sep 2019 13:30:25 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav304.sakura.ne.jp) Received: from [192.168.1.8] (softbank126227201116.bbtec.net [126.227.201.116]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x8G4UI61082342 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Mon, 16 Sep 2019 13:30:25 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Subject: Re: printk meeting at LPC To: John Ogness Cc: Linus Torvalds , Thomas Gleixner , Steven Rostedt , Peter Zijlstra , Petr Mladek , Andrea Parri , Sergey Senozhatsky , Sergey Senozhatsky , Brendan Higgins , Greg Kroah-Hartman , LKML , "Theodore Ts'o" , Paul Turner , Daniel Vetter , Prarit Bhargava References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190904123531.GA2369@hirez.programming.kicks-ass.net> <20190905130513.4fru6yvjx73pjx7p@pathway.suse.cz> <20190905143118.GP2349@hirez.programming.kicks-ass.net> <20190905121101.60c78422@oasis.local.home> <87k1acz5rx.fsf@linutronix.de> From: Tetsuo Handa Message-ID: Date: Mon, 16 Sep 2019 13:30:17 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <87k1acz5rx.fsf@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/09/13 22:26, John Ogness wrote: > 6. A new may-sleep function pr_flush() will be made available to wait > for all previously printk'd messages to be output on all consoles before > proceeding. For example: > > pr_cont("Running test ABC... "); > pr_flush(); > > do_test(); > > pr_cont("PASSED\n"); > pr_flush(); Don't we need to allow printk() callers to know the sequence number which the printk() has queued? Something like u64 seq; pr_info(...); pr_info(...); pr_info(...); seq = pr_current_seq(); pr_wait_seq(seq); in case concurrently executed printk() flooding keeps adding a lot of pending output? By the way, do we need to keep printk() return bytes like printf() ? Maybe we can make printk() return "void", for almost nobody can do meaningful things with the return value. > 9. Support for printk dictionaries will be discontinued. I will look > into who is using this and why. If printk dictionaries are important for > you, speak up now! I think that dev_printk() is using "const char *dict, size_t dictlen," part via create_syslog_header(). Some userspace programs might depend on availability of such information.