* [Bug translator/11370] New: multi-header @cast
@ 2010-03-10 23:36 jistone at redhat dot com
2010-03-12 21:05 ` [Bug translator/11370] " jistone at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2010-03-10 23:36 UTC (permalink / raw)
To: systemtap
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]
Sometimes a header may not #include everything that it needs to stand alone, and
so @cast will fail to build a module around it:
$ stap -ue 'probe begin {
println(&@cast(0, "fs_struct", "kernel<linux/fs_struct.h>")->root)
}' --vp 04
Running make -C '/lib/modules/2.6.32.9-67.fc12.x86_64/build'
M='/tmp/staprfow66/typequery_kmod_1' modules ARCH="x86_64" V=1
[...]
include/linux/fs_struct.h:8: error: expected specifier-qualifier-list before
rwlock_t
include/linux/fs_struct.h:16: warning: struct task_struct declared inside
parameter list
include/linux/fs_struct.h:16: warning: its scope is only this definition or
declaration, which is probably not what you want
[...]
semantic error: type definition 'fs_struct' not found: identifier '@cast' at
<input>:2:10
source: println(&@cast(0, "fs_struct", "kernel<linux/fs_struct.h>")->root)
^
We could work around this by allowing @cast to specify multiple headers which
should be compiled together. Frank suggested listing them like this:
@cast(x, "foo", "kernel<foo.h><bar.h>")->...
--
Summary: multi-header @cast
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11370
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/11370] multi-header @cast
2010-03-10 23:36 [Bug translator/11370] New: multi-header @cast jistone at redhat dot com
@ 2010-03-12 21:05 ` jistone at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2010-03-12 21:05 UTC (permalink / raw)
To: systemtap
------- Additional Comments From jistone at redhat dot com 2010-03-12 21:05 -------
commit da9e11bd5cd3cbedbf794a0e8a83956bd178ba60
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11370
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-12 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 23:36 [Bug translator/11370] New: multi-header @cast jistone at redhat dot com
2010-03-12 21:05 ` [Bug translator/11370] " jistone 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).