This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/16633] odd 'stap -L' behavior
- From: "jlebon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 12 Mar 2014 20:06:40 +0000
- Subject: [Bug translator/16633] odd 'stap -L' behavior
- Auto-submitted: auto-generated
- References: <bug-16633-6586 at http dot sourceware dot org/bugzilla/>
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.