* [ia64] compilation error with utrace script
@ 2009-04-21 20:46 Masami Hiramatsu
2009-05-05 13:51 ` David Smith
0 siblings, 1 reply; 2+ messages in thread
From: Masami Hiramatsu @ 2009-04-21 20:46 UTC (permalink / raw)
To: systemtap-ml
Hi,
Just an error report.
I got compile errors on 2.6.30-rc2/ia64 with recent systemtap(yesterday afternoon).
the command was:
stap --vp 0003 -ve 'probe process("duptest").syscall {printf("%d(0x%x, 0x%x, 0x%x)\n",\
$syscall, $arg1, $arg2, $arg3)} probe kernel.function("syscall_trace_enter")\
{printf("KP:%d(0x%x, 0x%x, 0x%x)\n", $regs->r15,$arg0,$arg1,$arg2)}' -c ./duptest
Without utrace probe, stap ran correctly.
I assume that utrace version on upstream kernel is older than expected one.
----
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:787: error: field ‘ops’ has incomplete type
cc1: warnings being treated as errors
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:794: warning: ‘struct utrace_attached_engine’ declared inside parameter list
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:794: warning: its scope is only this definition or declaration, which is probably not what you want
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:794: warning: ‘enum utrace_resume_action’ declared inside parameter list
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:794: error: parameter 1 (‘action’) has incomplete type
stap_utrace_probe_syscall
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c: In function ‘stap_utrace_probe_syscall’:
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:796: error: dereferencing pointer to incomplete type
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:906: error: implicit declaration of function ‘debug_task_finder_detach’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:907: error: ‘UTRACE_DETACH’ undeclared (first use in this function)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:907: error: (Each undeclared identifier is reported only once
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:907: error: for each function it appears in.)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:909: error: ‘UTRACE_RESUME’ undeclared (first use in this function)
_stp_utrace_probe_cb
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c: In function ‘_stp_utrace_probe_cb’:
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:919: error: implicit declaration of function ‘stap_utrace_attach’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:933: error: implicit declaration of function ‘stap_utrace_detach’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c: At top level:
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: unknown field ‘pathname’ specified in initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: excess elements in struct initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: (near initialization for ‘stap_utrace_probes[0].tgt’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: unknown field ‘pid’ specified in initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: excess elements in struct initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: (near initialization for ‘stap_utrace_probes[0].tgt’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: unknown field ‘callback’ specified in initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: excess elements in struct initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: (near initialization for ‘stap_utrace_probes[0].tgt’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: unknown field ‘mmap_callback’ specified in initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: excess elements in struct initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: (near initialization for ‘stap_utrace_probes[0].tgt’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: unknown field ‘munmap_callback’ specified in initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: excess elements in struct initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: (near initialization for ‘stap_utrace_probes[0].tgt’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: unknown field ‘mprotect_callback’ specified in initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: excess elements in struct initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: warning: (near initialization for ‘stap_utrace_probes[0].tgt’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: field name not in record or union initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: (near initialization for ‘stap_utrace_probes[0].ops’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: field name not in record or union initializer
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: (near initialization for ‘stap_utrace_probes[0].ops’)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: ‘stap_utrace_task_finder_report_death’ undeclared here (not in a function)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: implicit declaration of function ‘UTRACE_EVENT’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: ‘SYSCALL_ENTRY’ undeclared here (not in a function)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: ‘DEATH’ undeclared here (not in a function)
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: initializer element is not constant
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:948: error: (near initialization for ‘stap_utrace_probes[0].events’)
systemtap_module_init
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c: In function ‘systemtap_module_init’:
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:1046: error: implicit declaration of function ‘stap_register_task_finder_target’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:1052: error: implicit declaration of function ‘stap_utrace_detach_ops’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:1126: error: implicit declaration of function ‘stap_start_task_finder’
/tmp/stap7hRY8o/stap_b677a543c595df1fe3b1c654282bded8_2583.c:1128: error: implicit declaration of function ‘stap_stop_task_finder’
systemtap_module_exit probe_start probe_exit
---
Thanks,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ia64] compilation error with utrace script
2009-04-21 20:46 [ia64] compilation error with utrace script Masami Hiramatsu
@ 2009-05-05 13:51 ` David Smith
0 siblings, 0 replies; 2+ messages in thread
From: David Smith @ 2009-05-05 13:51 UTC (permalink / raw)
To: Masami Hiramatsu; +Cc: systemtap-ml
Masami Hiramatsu wrote:
> Hi,
>
> Just an error report.
>
> I got compile errors on 2.6.30-rc2/ia64 with recent systemtap(yesterday afternoon).
>
> the command was:
> stap --vp 0003 -ve 'probe process("duptest").syscall {printf("%d(0x%x, 0x%x, 0x%x)\n",\
> $syscall, $arg1, $arg2, $arg3)} probe kernel.function("syscall_trace_enter")\
> {printf("KP:%d(0x%x, 0x%x, 0x%x)\n", $regs->r15,$arg0,$arg1,$arg2)}' -c ./duptest
>
> Without utrace probe, stap ran correctly.
>
> I assume that utrace version on upstream kernel is older than expected one.
I'm unsure of what is going on here. I just built Roland's latest
utrace kernel on x86_64 (2.6.30-rc3), and the utrace tests build and run
correctly.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-05 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-21 20:46 [ia64] compilation error with utrace script Masami Hiramatsu
2009-05-05 13:51 ` David Smith
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).