public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/29765] New: Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage
@ 2022-11-09 12:57 mcermak at redhat dot com
  2023-05-17 15:09 ` [Bug runtime/29765] " mcermak at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2022-11-09 12:57 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=29765

            Bug ID: 29765
           Summary: Convert NFS from readpages to readahead =>
                    tapset/linux/nfs.stp breakage
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

Kernel commit 8786fde84 (Convert NFS from readpages to readahead) breaks the
tapset/linux/nfs.stp (stap commit 7eed8d1fe):

semantic error: while resolving probe point: identifier 'module' at
/usr/local/share/systemtap/tapset/linux/nfs.stp:976:27
        source:                           module("nfs").function
("nfs_readpages")

Linux kernel change:

commit 8786fde8421ce755a842051f9528674a1b1f0b9a
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date:   Sat Jan 22 20:54:52 2022 +0000

    Convert NFS from readpages to readahead

    NFS is one of the last two users of the deprecated ->readpages aop.
    This conversion looks straightforward, but I have only compile-tested
    it.tapset/linux/nfs.stp  

    Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>


Reproducer using 5.14.0-186.kpq1.el9:

# cat readpages.stp 
probe nfs.aop.readpages {
        log(name);
        printf("dev=%d\n", dev);
        printf("ino=%d\n", ino);
        printf("nr_pages=%d\n", nr_pages);
        printf("file=%d\n", file);
        printf("rpages=%d\n", rpages);
        printf("rsize=%d\n", rsize);
        printf("argstr=%s\n", argstr);
        printf("size=%d\n", size);
        printf("units=%s\n", units);
}

probe nfs.aop.readpages.return {
        log(name);
        printf("retstr=%s\n", retstr);
        printf("size=%d\n", size);
        printf("units=%s\n", units);
}
# stap -vp4 readpages.stp 
Pass 1: parsed user script and 472 library scripts using
123716virt/102716res/8432shr/94144data kb, in 570usr/120sys/910real ms.
semantic error: while resolving probe point: identifier 'module' at
/usr/local/share/systemtap/tapset/linux/nfs.stp:976:27
        source:                           module("nfs").function
("nfs_readpages")
                                          ^

semantic error: no match (similar functions: nfs_readpage, nfs_readahead,
nfs_writepages, nfs_readdir, nfs_readpage_done)

semantic error: resolution failed in alias expansion builder

semantic error: while resolving probe point: identifier 'nfs' at
readpages.stp:1:7
        source: probe nfs.aop.readpages {
                      ^

semantic error: no match

semantic error: while resolving probe point: identifier 'module' at
/usr/local/share/systemtap/tapset/linux/nfs.stp:995:34
        source:                                  module("nfs").function
("nfs_readpages").return
                                                 ^

semantic error: resolution failed in alias expansion builder

Pass 2: analyzed script: 0 probes, 0 functions, 0 embeds, 0 globals using
190100virt/170936res/10092shr/160528data kb, in 2250usr/650sys/2903real ms.
Pass 2: analysis failed.  [man error::pass2]
#

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug runtime/29765] Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage
  2022-11-09 12:57 [Bug runtime/29765] New: Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage mcermak at redhat dot com
@ 2023-05-17 15:09 ` mcermak at redhat dot com
  2023-05-18 16:50 ` fche at redhat dot com
  2023-05-19  9:07 ` mcermak at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2023-05-17 15:09 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=29765

--- Comment #1 from Martin Cermak <mcermak at redhat dot com> ---
Created attachment 14885
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14885&action=edit
new tapset probe nfs.aop.readfolio

Additional possibly interesting kernel commit:
65d023af7f29eb1250a6105141a74776bae7e1f8

When filing this PR, I thought that existing probe nfs.aop.readpage(s)
should be taught to also work with function ("nfs_read_folio").

But since a page can only be identified within a folio in case
the page number is known (*) ITSM the tapset should simply
keep probe nfs.aop.readpage(s) untouched, and provide brand new
probe nfs.aop.readfolio.

Attached trivial version of probe nfs.aop.readfolio.

-------
*
https://elixir.bootlin.com/linux/latest/source/include/linux/page-flags.h#L282

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug runtime/29765] Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage
  2022-11-09 12:57 [Bug runtime/29765] New: Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage mcermak at redhat dot com
  2023-05-17 15:09 ` [Bug runtime/29765] " mcermak at redhat dot com
@ 2023-05-18 16:50 ` fche at redhat dot com
  2023-05-19  9:07 ` mcermak at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2023-05-18 16:50 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=29765

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
lgtm

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug runtime/29765] Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage
  2022-11-09 12:57 [Bug runtime/29765] New: Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage mcermak at redhat dot com
  2023-05-17 15:09 ` [Bug runtime/29765] " mcermak at redhat dot com
  2023-05-18 16:50 ` fche at redhat dot com
@ 2023-05-19  9:07 ` mcermak at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2023-05-19  9:07 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=29765

Martin Cermak <mcermak at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Martin Cermak <mcermak at redhat dot com> ---
commit 7b1557c548686c55948e4a38d8954eff420428a9

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-19  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 12:57 [Bug runtime/29765] New: Convert NFS from readpages to readahead => tapset/linux/nfs.stp breakage mcermak at redhat dot com
2023-05-17 15:09 ` [Bug runtime/29765] " mcermak at redhat dot com
2023-05-18 16:50 ` fche at redhat dot com
2023-05-19  9:07 ` mcermak at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).