* [Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot
@ 2008-05-27 9:24 srinivasa at in dot ibm dot com
2008-05-27 14:05 ` [Bug tapsets/6563] " fche at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: srinivasa at in dot ibm dot com @ 2008-05-27 9:24 UTC (permalink / raw)
To: systemtap
sys.stp fails on latest systemtap-20080524 snapshot with the below error.
===========================
/tmp/stapEM6Sec/stap_3fab86101321588190ddfafe8dcb7053_404801.c: In function
'function__stp_arg':
/tmp/stapEM6Sec/stap_3fab86101321588190ddfafe8dcb7053_404801.c:24204: error:
implicit declaration of function 'u_register'
/tmp/stapEM6Sec/stap_3fab86101321588190ddfafe8dcb7053_404801.c:24232: error:
implicit declaration of function '_stp_sign_extend32'
============================
Reason for the failure is,
In tapset/ppc64/register.stp, _stp_arg being an embedded "C" function calls
u_register(), which is not defined in kernel but in the same tapset script.
so we should avoid calling locally defined functions in embedded "c" functions.
====================
function _stp_arg:long (argnum:long, sign_extend:long, truncate:long) %{
long val;
int n;
size_t argsz = sizeof(long);
THIS->__retvalue = 0;
if (!CONTEXT->regs) {
snprintf(CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"cannot access function args in this context");
CONTEXT->last_error = CONTEXT->error_buffer;
return;
}
if (THIS->argnum < 1)
goto bad_argnum;
n = (int) THIS->argnum;
switch (n) {
case 1:
val = u_register("r3");
break;
===================================
--
Summary: sys.stp fails on latest systemtap-20080524 snapshot
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: srinivasa at in dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6563
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/6563] sys.stp fails on latest systemtap-20080524 snapshot
2008-05-27 9:24 [Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot srinivasa at in dot ibm dot com
@ 2008-05-27 14:05 ` fche at redhat dot com
2008-05-28 10:59 ` ananth at in dot ibm dot com
2008-05-28 11:30 ` ananth at in dot ibm dot com
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2008-05-27 14:05 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2008-05-26 15:21 -------
I don't see a good reason for _stp_arg to be an embedded-c function,
or really a lot of reason for it to exist at all.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6563
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/6563] sys.stp fails on latest systemtap-20080524 snapshot
2008-05-27 9:24 [Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot srinivasa at in dot ibm dot com
2008-05-27 14:05 ` [Bug tapsets/6563] " fche at redhat dot com
@ 2008-05-28 10:59 ` ananth at in dot ibm dot com
2008-05-28 11:30 ` ananth at in dot ibm dot com
2 siblings, 0 replies; 4+ messages in thread
From: ananth at in dot ibm dot com @ 2008-05-28 10:59 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=6563
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/6563] sys.stp fails on latest systemtap-20080524 snapshot
2008-05-27 9:24 [Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot srinivasa at in dot ibm dot com
2008-05-27 14:05 ` [Bug tapsets/6563] " fche at redhat dot com
2008-05-28 10:59 ` ananth at in dot ibm dot com
@ 2008-05-28 11:30 ` ananth at in dot ibm dot com
2 siblings, 0 replies; 4+ messages in thread
From: ananth at in dot ibm dot com @ 2008-05-28 11:30 UTC (permalink / raw)
To: systemtap
------- Additional Comments From ananth at in dot ibm dot com 2008-05-28 09:04 -------
Sorry, this was a thinko from my side... patch forthcoming...
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |ananth at in dot ibm dot com
|redhat dot com |
http://sourceware.org/bugzilla/show_bug.cgi?id=6563
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-28 9:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-27 9:24 [Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot srinivasa at in dot ibm dot com
2008-05-27 14:05 ` [Bug tapsets/6563] " fche at redhat dot com
2008-05-28 10:59 ` ananth at in dot ibm dot com
2008-05-28 11:30 ` ananth at in dot ibm 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).