* [Bug runtime/29388] New: Support using systemtap with overlayfs @ 2022-07-20 1:41 jeffliu.js.1999 at gmail dot com 2022-07-20 1:41 ` [Bug runtime/29388] " jeffliu.js.1999 at gmail dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: jeffliu.js.1999 at gmail dot com @ 2022-07-20 1:41 UTC (permalink / raw) To: systemtap https://sourceware.org/bugzilla/show_bug.cgi?id=29388 Bug ID: 29388 Summary: Support using systemtap with overlayfs Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: jeffliu.js.1999 at gmail dot com Target Milestone: --- When using systemtap with overlay filesystem, we need to get real inode and pass it into uprobe_register function. Otherwise, there will be an inode error. To fix the problem, we need to modify 4 places in runtime/linux/uprobes-inode.c file to let systemtap get the real inode value. The following is the way to support this feature. 733c733 --- inode = vm_file->f_path.dentry->d_inode; +++ inode = d_real_inode(vm_file->f_path.dentry); 915c915 --- p->inode = dentry->d_inode; +++ p->inode = d_real_inode(dentry); 928c928 --- offset, vm_flags, dentry->d_inode); +++ offset, vm_flags, d_real_inode(dentry)); 938c938 --- rc = stapiu_change_semaphore_plus(c, task, addr, dentry->d_inode); +++ rc = stapiu_change_semaphore_plus(c, task, addr, d_real_inode(dentry)); -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug runtime/29388] Support using systemtap with overlayfs 2022-07-20 1:41 [Bug runtime/29388] New: Support using systemtap with overlayfs jeffliu.js.1999 at gmail dot com @ 2022-07-20 1:41 ` jeffliu.js.1999 at gmail dot com 2022-07-20 1:43 ` jeffliu.js.1999 at gmail dot com 2022-07-20 1:48 ` fche at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: jeffliu.js.1999 at gmail dot com @ 2022-07-20 1:41 UTC (permalink / raw) To: systemtap https://sourceware.org/bugzilla/show_bug.cgi?id=29388 Jhan-Shuo Liu <jeffliu.js.1999 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://stackoverflow.com/q | |uestions/57487292/systemtap | |-failed-to-probe-the-functi | |ons-registration-error -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug runtime/29388] Support using systemtap with overlayfs 2022-07-20 1:41 [Bug runtime/29388] New: Support using systemtap with overlayfs jeffliu.js.1999 at gmail dot com 2022-07-20 1:41 ` [Bug runtime/29388] " jeffliu.js.1999 at gmail dot com @ 2022-07-20 1:43 ` jeffliu.js.1999 at gmail dot com 2022-07-20 1:48 ` fche at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: jeffliu.js.1999 at gmail dot com @ 2022-07-20 1:43 UTC (permalink / raw) To: systemtap https://sourceware.org/bugzilla/show_bug.cgi?id=29388 Jhan-Shuo Liu <jeffliu.js.1999 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|https://stackoverflow.com/q | |uestions/57487292/systemtap | |-failed-to-probe-the-functi | |ons-registration-error | CC| |jeffliu.js.1999 at gmail dot com -- You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug runtime/29388] Support using systemtap with overlayfs 2022-07-20 1:41 [Bug runtime/29388] New: Support using systemtap with overlayfs jeffliu.js.1999 at gmail dot com 2022-07-20 1:41 ` [Bug runtime/29388] " jeffliu.js.1999 at gmail dot com 2022-07-20 1:43 ` jeffliu.js.1999 at gmail dot com @ 2022-07-20 1:48 ` fche at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: fche at redhat dot com @ 2022-07-20 1:48 UTC (permalink / raw) To: systemtap https://sourceware.org/bugzilla/show_bug.cgi?id=29388 Frank Ch. Eigler <fche at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fche at redhat dot com --- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> --- Those sound like usable porting options, yup. Since the runtime is compiled on a wide range of kernel versions (2.6.32+ believe it, or not), we may well need some compile-time protection for the macro/function. -- 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:[~2022-07-20 1:48 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-07-20 1:41 [Bug runtime/29388] New: Support using systemtap with overlayfs jeffliu.js.1999 at gmail dot com 2022-07-20 1:41 ` [Bug runtime/29388] " jeffliu.js.1999 at gmail dot com 2022-07-20 1:43 ` jeffliu.js.1999 at gmail dot com 2022-07-20 1:48 ` 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).