public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug kprobes/28557] New: dwflpp not getting inline entry point of xfs:xfs_ilock
@ 2021-11-06 20:40 me at serhei dot io
  2021-11-11 13:41 ` [Bug kprobes/28557] unable to probe function in kernel module (xfs:xfs_ilock &others?) me at serhei dot io
  2021-11-14 21:31 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: me at serhei dot io @ 2021-11-06 20:40 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 28557
           Summary: dwflpp not getting inline entry point of xfs:xfs_ilock
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: kprobes
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
  Target Milestone: ---

Manifests on kernel 5.14.0-1.el9.x86_64.

$ /opt/stap-checkout/stap_install/bin/stap -vvvve 'probe begin {
println("running") } probe module("xfs").function("xfs_ilock") { exit() }'
running
<indefinite hang>

SHOULD BE
parse 'xfs_ilock', func 'xfs_ilock'
pattern 'xfs' matches module 'xfs'
focused on module 'xfs' = [0x10000-0x144c28, bias 0 file
/usr/lib/debug/usr/lib/modules/4.18.0-348.4.el8.x86_64/kernel/fs/xfs/xfs.ko.debug
ELF machine |x86_64 (code 62)
focused on module 'xfs'
selected function xfs_ilock
xfs_ilock = dwfl_module_addrinfo(entrypc=0x85760 + (nil))
added to filtered_functions (dieoffset: 0x8efee9)
checking instances of inline xfs_ilock
selected inline instance of xfs_ilock
entry-pc lookup (dwarf_entrypc dieoffset: 0x8f014e) = 0x85797 (rc 0)
added to filtered_inlines (dieoffset: 0x8f014e)
selected function xfs_ilock
xfs_ilock = dwfl_module_addrinfo(entrypc=0x85760 + (nil))
added to filtered_functions (dieoffset: 0x8efee9)
checking instances of inline xfs_ilock
selected inline instance of xfs_ilock
entry-pc lookup (dwarf_entrypc dieoffset: 0x8f014e) = 0x85797 (rc 0)
added to filtered_inlines (dieoffset: 0x8f014e)
probe xfs_ilock@fs/xfs/xfs_inode.c:166 module=xfs reloc=.text pc=0x85760
      function exit is defined in new-tapset-file
/opt/stap-checkout/stap_install/share/systemtap/tapset/logging.stp
querying entrypc 0x85797 of instance of inline 'xfs_ilock'
probe xfs_ilock@fs/xfs/xfs_inode.c:166 module=xfs reloc=.text pc=0x85797
symbol resolution for derived-probe probe
module("xfs").function("xfs_ilock@fs/xfs/xfs_inode.c:166") /*
pc=<xfs:xfs_ilock+0> */ /* <-
module("xfs").function("xfs_ilock@fs/xfs/xfs_inode.c:166") */{
exit();
}
symbol resolution for derived-probe probe
module("xfs").function("xfs_ilock@fs/xfs/xfs_inode.c:166") /*
pc=<xfs:xfs_ilock+55> */ /* <-
module("xfs").function("xfs_ilock@fs/xfs/xfs_inode.c:166") */{
exit();
}

INSTEAD
parse 'xfs_ilock', func 'xfs_ilock'
pattern 'xfs' matches module 'xfs'
focused on module 'xfs' = [0x10000-0x187048, bias 0 file
/lib/modules/5.14.0-1.el9.x86_64/kernel/fs
/xfs/xfs.ko.xz ELF machine |x86_64 (code 62)
focused on module 'xfs'
selected function xfs_ilock
xfs_ilock = dwfl_module_addrinfo(entrypc=0x8ea40 + (nil))
added to filtered_functions (dieoffset: 0x655c15)
selected function xfs_ilock
xfs_ilock = dwfl_module_addrinfo(entrypc=0x8ea40 + (nil))
added to filtered_functions (dieoffset: 0x655c15)
probe xfs_ilock@fs/xfs/xfs_inode.c:164 module=xfs reloc=.text pc=0x8ea40
      function exit is defined in new-tapset-file
/opt/stap-checkout/stap_install/share/systemtap/tapset/logging.stp
symbol resolution for derived-probe probe
module("xfs").function("xfs_ilock@fs/xfs/xfs_inode.c:164") /*
pc=<xfs:xfs_ilock+0> */ /* <-
module("xfs").function("xfs_ilock@fs/xfs/xfs_inode.c:164") */{
exit();
}

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

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

* [Bug kprobes/28557] unable to probe function in kernel module (xfs:xfs_ilock &others?)
  2021-11-06 20:40 [Bug kprobes/28557] New: dwflpp not getting inline entry point of xfs:xfs_ilock me at serhei dot io
@ 2021-11-11 13:41 ` me at serhei dot io
  2021-11-14 21:31 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: me at serhei dot io @ 2021-11-11 13:41 UTC (permalink / raw)
  To: systemtap

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

Serhei Makarov <me at serhei dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|dwflpp not getting inline   |unable to probe function in
                   |entry point of              |kernel module
                   |xfs:xfs_ilock               |(xfs:xfs_ilock &others?)

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

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

* [Bug kprobes/28557] unable to probe function in kernel module (xfs:xfs_ilock &others?)
  2021-11-06 20:40 [Bug kprobes/28557] New: dwflpp not getting inline entry point of xfs:xfs_ilock me at serhei dot io
  2021-11-11 13:41 ` [Bug kprobes/28557] unable to probe function in kernel module (xfs:xfs_ilock &others?) me at serhei dot io
@ 2021-11-14 21:31 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2021-11-14 21:31 UTC (permalink / raw)
  To: systemtap

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
commit 0425c60d7eed27437c5f83d79612786e50aed8ba 
Author: Frank Ch. Eigler <fche@redhat.com>
Date:   Sun Nov 14 16:28:12 2021 -0500

    PR28557: module probe insertion on modern kernels

appears to fix this on newer kernels, and keep things working on older kernels.

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

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

end of thread, other threads:[~2021-11-14 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 20:40 [Bug kprobes/28557] New: dwflpp not getting inline entry point of xfs:xfs_ilock me at serhei dot io
2021-11-11 13:41 ` [Bug kprobes/28557] unable to probe function in kernel module (xfs:xfs_ilock &others?) me at serhei dot io
2021-11-14 21:31 ` fche 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).