Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp748809imu; Tue, 11 Dec 2018 07:02:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UPIS00GGMUCCnO11aN9t15PJxAbYeBEqTqvnXYotrNremifxCSzJSEpTqD+IJHkvsE9OWV X-Received: by 2002:a62:34c6:: with SMTP id b189mr17061466pfa.229.1544540546188; Tue, 11 Dec 2018 07:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544540546; cv=none; d=google.com; s=arc-20160816; b=CaDei7oHnQU4JdHHGCZPeZoQEpChBGU0mglav6YgJZOT6bt0IgxJdXw3lN4OmzEMhe a7uTv5zquh2m38w+YkKPH4vrwfUK9YyZU93TAqMJ+x9g7UvTSIgI/jjqRh/FVNa4WjRo le3ZimakzuLgYqw67wePaAUabBRZ0JlXNds1kY3slHrAQlee31o0IQm5bUNRwnQRx2se n8A+xOJRhJyxr993ouatDzpTs3jbG9RIr4+W3HIU1tx06xeXnzkYgAYZ9XWXVA7RCSmb +JcMKOUNZc21kWAC0xn6obJ+5NR0829WqAJxbJ9AZ9XyjfVps0UZ2oKxotazrjaw8we3 08pg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=gCLOrnSO3laApiZB1phvsIqDTOWq/I5YH57N5gDdt7E=; b=aMRnE3X5lldklodhDpsN23lM34d9dRiXeH4M1N51U48tP3fFV0/T/gygxp+M1QEaEX Wc+Xz43dEW9mttTGaX5favJqHc3FoDM1ORCs9sIVGHCI/ruUUZvO8Empprfn/4lN6f1D KifJCHbOoB9fj0ogT9w1Hk8PKclk1Lrr2ArC4MsIB0WwJ50I3oBUiazTW3nwrKiLUaeT H66M0KcUymvxikoqJvCDazzE6s8zYMZOebDnK0nnLt0/p8WVx+XRaKmhu97ILpHO8zV4 FSNgT4Pv0HAc4adPDmYOCujM0jsBTZJy8jltIqlX75RXCDDQh36H+ZtukxR7XkJ4l25A vlpg== 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 w24si12123076plp.304.2018.12.11.07.01.50; Tue, 11 Dec 2018 07:02:26 -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; 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 S1726703AbeLKOlr (ORCPT + 99 others); Tue, 11 Dec 2018 09:41:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:49184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726231AbeLKOlq (ORCPT ); Tue, 11 Dec 2018 09:41:46 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D4FCA2054F; Tue, 11 Dec 2018 14:41:42 +0000 (UTC) Date: Tue, 11 Dec 2018 09:41:40 -0500 From: Steven Rostedt To: Petr Mladek Cc: Matthew Wilcox , Kieran Bingham , Luis Chamberlain , Brendan Higgins , Kent Overstreet , Eryu Guan , Eric Sandeen , jeffm@suse.com, Sasha Levin , Greg KH , Kees Cook , shuah@kernel.org, Joel Stanley , mpe@ellerman.id.au, joe@perches.com, brakmo@fb.com, Tim.Bird@sony.com, khilman@baylibre.com, Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org, Daniel Vetter , dri-devel@lists.freedesktop.org, Rob Herring , dan.j.williams@intel.com, linux-nvdimm@lists.01.org, Frank Rowand , Knut Omang , Felix Guo , linux-fsdevel@vger.kernel.org, Linux Trace Devel Subject: Re: [RFC v3 11/19] kunit: add Python libraries for handing KUnit config and kernel Message-ID: <20181211094140.2a928fe7@gandalf.local.home> In-Reply-To: <20181211140926.7wzd5jh6klcfsfgz@pathway.suse.cz> References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-12-brendanhiggins@google.com> <841cf4ae-501b-05ae-5863-a51010709b67@ideasonboard.com> <20181204204701.GT28501@garbanzo.do-not-panic.com> <20181206153718.GD24603@bombadil.infradead.org> <20181211140926.7wzd5jh6klcfsfgz@pathway.suse.cz> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Dec 2018 15:09:26 +0100 Petr Mladek wrote: > > We have liburcu already, which is good. The main sticking points are: > > > > - printk has started adding a lot of %pX enhancements which printf > > obviously doesn't know about. > > I wonder how big problem it is and if it is worth using another > approach. No, please do not change the %pX approach. > > An alternative would be to replace them with helper functions > the would produce the same string. The meaning would be easier > to understand. But concatenating with the surrounding text > would be less elegant. People might start using pr_cont() > that is problematic (mixed lines). > > Also the %pX formats are mostly used to print context of some > structures. Even the helper functions would need some maintenance > to keep them compatible. > > BTW: The printk() feature has been introduced 10 years ago by > the commit 4d8a743cdd2690c0bc8 ("vsprintf: add infrastructure > support for extended '%p' specifiers"). trace-cmd and perf know about most of the %pX data and how to read it. Perhaps we can extend the libtraceevent library to export a generic way to read data from printk() output for other tools to use. -- Steve