Thread (5 messages) flat view 5 messages, 3 authors, 2024-06-20

Re: [PATCH] filemap: add trace events for get_pages, map_pages, and fault

From: Matthew Wilcox <willy@infradead.org>
Date: 2024-06-19 21:04:05
Also in: linux-fsdevel, linux-mm, lkml

On Tue, Jun 18, 2024 at 09:36:56AM +0000, Takaya Saeki wrote:
+	TP_printk(
+		"dev %d:%d ino %lx ofs=%lu max_ofs=%lu",
It seems weird to have a space between dev and %d, but an equals between
ofs and %lu.  I see there is some precedent for this elsewhere, but
there are other places which use ino=.  I'd rather:

		"dev=%d:%d ino=%lx ofs=%lu max_ofs=%lu",
+	TP_printk(
+		"dev %d:%d ino %lx ofs=%lu",
Likewise.
+		MAJOR(__entry->s_dev),
+		MINOR(__entry->s_dev), __entry->i_ino,
+		__entry->index << PAGE_SHIFT
This needs to be cast to an loff_t before shifting.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help