This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot
- From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 May 2008 14:22:06 -0000
- Subject: [Bug tapsets/6563] New: sys.stp fails on latest systemtap-20080524 snapshot
- Reply-to: sourceware-bugzilla at sourceware dot org
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.