This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/22000] Unable to read $path in chown_common on CentOS 7 due to lack of DW_OP_GNU_parameter_ref support


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

--- Comment #2 from Bartosz Kwitniewski <zerg2000-sourceware.org at astral dot org.pl> ---
On my CentOS 7 system I have recompiled distribution kernel with -fno-ipa-sra
and probes attach successfully to chown_common.

On the following system:
---
Linux archlinux 4.12.8-2-ARCH #1 SMP PREEMPT Sat Aug 26 02:19:38 UTC 2017
x86_64 GNU/Linux
gcc version 7.1.1 20170630 (GCC) 
Systemtap translator/driver (version 3.1/0.169, non-git sources)
---

SystemTap gives the following error for may_linkat, which is ipa-sra optimized:
---
semantic error: while processing probe
kernel.function("may_linkat@fs/namei.c:999") from:
kernel.function("may_linkat")

semantic error: failed to retrieve location attribute for 'link' [man
error::dwarf]: identifier '$link' at ./test.stp:4:20
        dieoffset: 0x27bcbf4 from /lib/modules/4.12.8-2-ARCH/build/vmlinux
        function: may_linkat at fs/namei.c:999
        source:     printf("%x\n", $link->dentry)
---

but it works fine with proc_getdriver (also ipa-sra optimized).

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]