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/16633] odd 'stap -L' behavior


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

Jonathan Lebon <jlebon at redhat dot com> changed:

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

--- Comment #2 from Jonathan Lebon <jlebon at redhat dot com> ---
(In reply to David Smith from comment #0)
> On rawhide (3.14.0-0.rc2.git4.1.fc21.x86_64), I'm seeing the following with
> systemtap HEAD:
> 
> ====
> # stap -L 'kernel.function("sock_release").*'
> kernel.function("debug_lockdep_rcu_enabled@kernel/rcu/update.c:136")
> kernel.function("iput@fs/inode.c:1431") $inode:struct inode*
> kernel.function("module_put@kernel/module.c:968") $module:struct module*
> kernel.function("printk@kernel/printk/printk.c:1675") $fmt:char const*
> $args:va_list
> kernel.function("sock_release@net/socket.c:585").call $sock:struct socket*
> kernel.function("sock_release@net/socket.c:585").exported $sock:struct
> socket*
> kernel.function("sock_release@net/socket.c:585").return $sock:struct socket*
> ====
> 
> I would have expected it to only return the last 3.

The issue was that .* was getting expanded to .callees, which then expanded to
all callee functions. This is now fixed in commit e772a6e by making more clear
the derivation steps:

$ stap -L 'kernel.function("sock_release").*'
kernel.function("sock_release@net/socket.c:585").call $sock:struct socket*
kernel.function("sock_release@net/socket.c:585").callee("iput@fs/inode.c:1431")
$inode:struct inode*
kernel.function("sock_release@net/socket.c:585").callee("module_put@kernel/module.c:970")
$module:struct module*
kernel.function("sock_release@net/socket.c:585").callee("printk@kernel/printk/printk.c:1676")
$fmt:char const* $args:va_list
kernel.function("sock_release@net/socket.c:585").exported $sock:struct socket*
kernel.function("sock_release@net/socket.c:585").return $sock:struct socket*
$

-- 
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]