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/5377] New: Wildcards following the dwarf probe are expanded incorrectly


I found wildcards at the tail of the dwarf probes were expanded incorrectly.

For example,
---
 probe kernel.function("sys_read").* {}
---
This script was expanded as below (output of 'stap -p2');
---
 # probes
 kernel.function("sys_read@fs/read_write.c:358") /* pc=0x807ff */ /* <-
kernel.function("sys_read").* */
 kernel.function("sys_read@fs/read_write.c:358") /* pc=0x807ff */ /* <-
kernel.function("sys_read").* */
 kernel.function("sys_read@fs/read_write.c:358") /* pc=0x807ff */ /* <-
kernel.function("sys_read").* */
---
I expected that it should be expanded as below;
---
 # probes
 kernel.function("sys_read@fs/read_write.c:358").call /* pc=0x807ff */ /* <-
kernel.function("sys_read").* */
 kernel.function("sys_read@fs/read_write.c:358").return /* pc=0x807ff */ /* <-
kernel.function("sys_read").* */
---

And also,
---
 probe kernel.function("sys_read").ret* {}
---
This was expanded as below;
---
 # probes
 kernel.function("sys_read@fs/read_write.c:358") /* pc=0x807ff */ /* <-
kernel.function("sys_read").ret* */
---
But it should be expanded as below;
---
 # probes
 kernel.function("sys_read@fs/read_write.c:358").return /* pc=0x807ff */ /* <-
kernel.function("sys_read").ret* */
---

Thanks,

-- 
           Summary: Wildcards following the dwarf probe are expanded
                    incorrectly
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5377

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


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