This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ia64] compilation error with utrace script


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]