Re: [RFC v3 11/19] kunit: add Python libraries for handing KUnit config and kernel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [RFC v3 11/19] kunit: add Python libraries for handing KUnit config and kernel
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Tue, 11 Dec 2018 09:41:40 -0500
- Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>, Kieran Bingham <kieran.bingham@xxxxxxxxxxxxxxxx>, Luis Chamberlain <mcgrof@xxxxxxxxxx>, Brendan Higgins <brendanhiggins@xxxxxxxxxx>, Kent Overstreet <kent.overstreet@xxxxxxxxx>, Eryu Guan <guaneryu@xxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxxx>, jeffm@xxxxxxxx, Sasha Levin <Alexander.Levin@xxxxxxxxxxxxx>, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>, Kees Cook <keescook@xxxxxxxxxx>, shuah@xxxxxxxxxx, Joel Stanley <joel@xxxxxxxxx>, mpe@xxxxxxxxxxxxxx, joe@xxxxxxxxxxx, brakmo@xxxxxx, Tim.Bird@xxxxxxxx, khilman@xxxxxxxxxxxx, Julia Lawall <julia.lawall@xxxxxxx>, linux-kselftest@xxxxxxxxxxxxxxx, kunit-dev@xxxxxxxxxxxxxxxx, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, jdike@xxxxxxxxxxx, richard@xxxxxx, linux-um@xxxxxxxxxxxxxxxxxxx, Daniel Vetter <daniel@xxxxxxxx>, dri-devel@xxxxxxxxxxxxxxxxxxxxx, Rob Herring <robh@xxxxxxxxxx>, dan.j.williams@xxxxxxxxx, linux-nvdimm@xxxxxxxxxxxx, Frank Rowand <frowand.list@xxxxxxxxx>, Knut Omang <knut.omang@xxxxxxxxxx>, Felix Guo <felixguoxiuping@xxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, Linux Trace Devel <linux-trace-devel@xxxxxxxxxxxxxxx>
- 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> <CAFd5g47x-UNja72k-CWPmWz9+LTn8pF8Wj5Poq+2FJ93E=vymA@mail.gmail.com> <20181204204701.GT28501@garbanzo.do-not-panic.com> <f8722f4a-44c8-24c2-c433-5178f9f40b82@ideasonboard.com> <20181206153718.GD24603@bombadil.infradead.org> <20181211140926.7wzd5jh6klcfsfgz@pathway.suse.cz>
On Tue, 11 Dec 2018 15:09:26 +0100
Petr Mladek <pmladek@xxxxxxxx> 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
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]