* [Bug tapsets/16956] New: nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo
@ 2014-05-17 16:00 fche at redhat dot com
2014-05-17 16:04 ` [Bug tapsets/16956] " fche at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2014-05-17 16:00 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=16956
Bug ID: 16956
Summary: nd_syscall.* tapset shouldn't rely on @cast() against
kernel debuginfo
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
Assignee: systemtap at sourceware dot org
Reporter: fche at redhat 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 tapsets/16956] nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo
2014-05-17 16:00 [Bug tapsets/16956] New: nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo fche at redhat dot com
@ 2014-05-17 16:04 ` fche at redhat dot com
2014-05-17 16:56 ` fche at redhat dot com
2014-05-21 20:23 ` dsmith at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2014-05-17 16:04 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=16956
--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
The nd_syscall.* tapset conatins constructs such as:
probe __nd_syscall.socketcall.recv = kprobe.function("sys_socketcall").call ?
{
asmlinkage()
if (int_arg(1) != %{ SYS_RECV %}) next;
__args = pointer_arg(2)
s = __int32(user_ulong(&@cast(__args, "ulong")[0]))
buf_uaddr = user_ulong(&@cast(__args, "ulong")[1])
len = user_ulong(&@cast(__args, "ulong")[2])
flags = __uint32(user_ulong(&@cast(__args, "ulong")[3]))
}
where all those @cast() expressions require kernel debuginfo
to resolve. Build a CONFIG_DEBUG_INFO=n vmlinux, as available
on arch-linux e.g., then see
probe nd_syscall.* {}
cause
WARNING: cannot find module kernel debuginfo: No DWARF information found ...
semantic error: type definition 'ulong' not found in 'kernel' ...
The non-dwarf tapset shouldn't need dwarf that it can't fabricate
from e.g. headers like <linux/types.h>.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/16956] nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo
2014-05-17 16:00 [Bug tapsets/16956] New: nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo fche at redhat dot com
2014-05-17 16:04 ` [Bug tapsets/16956] " fche at redhat dot com
@ 2014-05-17 16:56 ` fche at redhat dot com
2014-05-21 20:23 ` dsmith at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2014-05-17 16:56 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=16956
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
commit 11415bc59172
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/16956] nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo
2014-05-17 16:00 [Bug tapsets/16956] New: nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo fche at redhat dot com
2014-05-17 16:04 ` [Bug tapsets/16956] " fche at redhat dot com
2014-05-17 16:56 ` fche at redhat dot com
@ 2014-05-21 20:23 ` dsmith at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: dsmith at redhat dot com @ 2014-05-21 20:23 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=16956
David Smith <dsmith at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsmith at redhat dot com
--- Comment #3 from David Smith <dsmith at redhat dot com> ---
I improved things a bit more here in commit 27ce133. Now the nd_syscall tapset
testsuite sets SYSTEMTAP_DEBUGINFO_PATH to /dev/null, so that we can catch
errors like this on systems with debuginfo.
--
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:[~2014-05-21 20:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-17 16:00 [Bug tapsets/16956] New: nd_syscall.* tapset shouldn't rely on @cast() against kernel debuginfo fche at redhat dot com
2014-05-17 16:04 ` [Bug tapsets/16956] " fche at redhat dot com
2014-05-17 16:56 ` fche at redhat dot com
2014-05-21 20:23 ` dsmith 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).