Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3932245ybe; Mon, 16 Sep 2019 03:59:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPy3d9H6Q8CDjd/DJTZ4NgY1JTbXDKs6av15cNlWUW1egjLX5Y35Cx/HE7RRWk6jBS9NJO X-Received: by 2002:a50:a57d:: with SMTP id z58mr5885083edb.115.1568631588161; Mon, 16 Sep 2019 03:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568631588; cv=none; d=google.com; s=arc-20160816; b=Su5/RfFCQyasGSaGzN0zR+SOxJ8GTzW9SY8cIfZotFyjgV6wSWO1Iy2X/IhJhLc0BW pb0iVhMf4laaetEYJ3SyAnW8QECsZ+eEAQQ9aM+snEeKe4Q1ZruHciyOiVe8e7Aq+tqm PpYupEE5+KorYCypUWgpT3fMCC+03RdCeO9EAAJnWDK1VMMjwHe0LYxo8YE5xQ5F+F/t h02JDh5U2PkRz6cLYTd6UOdj8AzIJkYRXqdBflS3fjBEg53M5KdiAfPQArEJdEILGryF jbXCHwCLCIyeykOOGBRE37Zgy8njcx8jhg4JxAoyA2DROtnnvUi6eNGCY4F+1S3IyEmI hi4A== 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:from:date; bh=vEOtZdjqYkUfW+KyDQfS3eoKrgof6zNWc5YHmWuEey0=; b=tWfizRBq3VSkX0uk5lp9cTywncNlykWV7cAf3xNOohNxZ6ob3xG6eXce3g4LcA9vZv bxe5ZJ3MbNzpKI0FB+bon6g3ebk3Y22Va5ikJEnRiUEKGv5UUoLeDWOD2Pm8DTXgRi4S EfcHbEaKi/Vo+P6dzvpYujUNItv8FQdIOWMHRJigZdzCQPVCuyaZCVoC/l+K7ncHoVej SDrbgScHkDuYuAxrngtvmQKb1wCpHimIzAADGXDv78JhLfcv7sez7sdSohpNBRDm+JlH m6asdWa9td/y+EH2kl2VK3t3piPsaN0/ySNSdw9RwePpULAwqbtEc6TTl//abRRthpyx rJ1A== 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 m10si5211477ejc.337.2019.09.16.03.59.24; Mon, 16 Sep 2019 03:59:48 -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 S1732410AbfIPKq3 (ORCPT + 99 others); Mon, 16 Sep 2019 06:46:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:40000 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725826AbfIPKq3 (ORCPT ); Mon, 16 Sep 2019 06:46:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 686F8ACD7; Mon, 16 Sep 2019 10:46:26 +0000 (UTC) Date: Mon, 16 Sep 2019 12:46:24 +0200 From: Petr Mladek To: Tetsuo Handa Cc: John Ogness , Daniel Vetter , Andrea Parri , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Brendan Higgins , Paul Turner , Peter Zijlstra , Thomas Gleixner , Linus Torvalds , Greg Kroah-Hartman , Theodore Ts'o , Prarit Bhargava , LKML Subject: Re: printk meeting at LPC Message-ID: <20190916104624.n3jh363z37ah2kxa@pathway.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2019-09-16 13:30:17, Tetsuo Handa wrote: > 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? My expectation is that pr_flush() would wait only until the current message appears on all consoles. It will not wait for messages that would get added later. > 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. It is true that I have never seen anyone checking the return value. On the other hand, it is a minor detail. And I would prefer to stay compatible with the userland printf() as much as possible. > > 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. Yeah, but it seems to be the only dictionary writer. There were doubts (during the meeting) whether anyone was actually using the information. Hmm, it seems that journalctl is able to filer device specific information, for example, I get: $> journalctl _KERNEL_DEVICE=+usb:2-1 -- Logs begin at Tue 2019-08-13 09:00:03 CEST, end at Mon 2019-09-16 12:32:58 CEST. -- Aug 13 09:00:04 linux-qszd kernel: usb 2-1: new high-speed USB device number 2 using ehci-pci One question is if anyone is using this filtering. Simple grep is enough. Another question is whether it really needs to get passed this way. Best Regards, Petr