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]

Re: please help


David Smith wrote:
 > It appears that systemtap is complaining that you are trying to put
> probes in a ppc (32-bit) executable while running a ppc64 (64-bit)
> kernel.  Unfortunately, that is the normal case on a ppc64 box (if I
> remember correctly).
> 
> Can you try compiling the a.out as a ppc64 executable and see if that works?
That is right David, the problem disappeared, but I got the following other one: 

[root@otitis systemtap]# stap userspace.stp  
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.

See the details in the attachment.

Thanks
[root@otitis systemtap]# stap userspace.stp  -vv
SystemTap translator/driver (version 0.7.1/0.133 git branch master, commit 180b066c)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: ppc64 release: 2.6.27-rc9
Created temporary directory "/tmp/stap196kZZ"
Searched '/usr/local/share/systemtap/tapset/ppc64/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 320usr/0sys/327real ms.
probe main@/root/systemtap/foo.c:6 process=/root/systemtap/a.out reloc=.absolute section=.text pc=0x10000578
probe foo@/root/systemtap/foo.c:1 process=/root/systemtap/a.out reloc=.absolute section=.text pc=0x10000538
Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 0usr/10sys/8real ms.
probe_1427 locks nothing
probe_1428 elided, duplicates probe_1427
dump_unwindsyms /root/systemtap/a.out index=0 base=0x10000000
Pass 3: translated to C into "/tmp/stap196kZZ/stap_5b42bca8044eb63cef313d7b4d5021cc_1361.c" in 30usr/100sys/132real ms.
Pass 4, preamble: (re)building SystemTap's version of uprobes.
Running make -C /usr/local/share/systemtap/runtime/uprobes >/dev/null
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:29:26: error: linux/utrace.h: No such file or directory
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:36:27: error: asm/tracehook.h: No such file or directory
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??utask_adjust_flagsâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:352: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:360: error: implicit declaration of function â??utrace_set_flagsâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??clear_utrace_quiesceâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:366: error: â??UTRACE_ACTION_QUIESCEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:366: error: (Each undeclared identifier is reported only once
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:366: error: for each function it appears in.)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:366: error: implicit declaration of function â??UTRACE_EVENTâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:366: error: â??QUIESCEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??quiesce_all_threadsâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:430: error: â??UTRACE_ACTION_QUIESCEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:431: error: â??QUIESCEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_free_processâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:492: error: implicit declaration of function â??utrace_detachâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_add_taskâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:582: error: implicit declaration of function â??utrace_attachâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:582: error: â??UTRACE_ATTACH_CREATEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:583: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:598: error: â??SIGNALâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:598: error: â??SIGNAL_IGNâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:599: error: â??SIGNAL_COREâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:599: error: â??EXECâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:600: error: â??CLONEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:600: error: â??EXITâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_get_taskâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:824: error: implicit declaration of function â??find_task_by_pidâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:824: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_delay_signalâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1626: error: â??UTRACE_ACTION_HIDEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1626: error: â??UTRACE_SIGNAL_IGNâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1627: error: â??UTRACE_ACTION_SINGLESTEPâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1627: error: â??UTRACE_ACTION_NEWSTATEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_report_signalâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1683: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1683: warning: type defaults to â??intâ?? in declaration of â??_________p1â??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1683: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1683: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1683: warning: type defaults to â??intâ?? in declaration of â??type nameâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1683: warning: cast to pointer from integer of different size
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1694: error: â??UTRACE_ACTION_RESUMEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1767: error: â??UTRACE_ACTION_HIDEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1767: error: â??UTRACE_SIGNAL_IGNâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1768: error: â??UTRACE_ACTION_SINGLESTEPâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1768: error: â??UTRACE_ACTION_NEWSTATEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1834: error: â??UTRACE_ACTION_DETACHâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??utask_quiesce_pending_sigtrapâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1860: error: implicit declaration of function â??utrace_native_viewâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1860: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1861: error: implicit declaration of function â??utrace_regsetâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1861: warning: assignment makes pointer from integer without a cast
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1865: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1866: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1867: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1870: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1873: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1873: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1873: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_report_quiesceâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1892: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1892: warning: type defaults to â??intâ?? in declaration of â??_________p1â??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1892: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1892: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1892: warning: type defaults to â??intâ?? in declaration of â??type nameâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1892: warning: cast to pointer from integer of different size
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1904: error: â??UTRACE_ACTION_RESUMEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_report_exitâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1993: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1993: warning: type defaults to â??intâ?? in declaration of â??_________p1â??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1993: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1993: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1993: warning: type defaults to â??intâ?? in declaration of â??type nameâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:1993: warning: cast to pointer from integer of different size
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2051: error: â??UTRACE_ACTION_DETACHâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_report_cloneâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2172: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2172: warning: type defaults to â??intâ?? in declaration of â??_________p1â??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2172: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2172: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2172: warning: type defaults to â??intâ?? in declaration of â??type nameâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2172: warning: cast to pointer from integer of different size
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2235: error: â??UTRACE_ACTION_RESUMEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: In function â??uprobe_report_execâ??:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2262: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2262: warning: type defaults to â??intâ?? in declaration of â??_________p1â??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2262: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2262: error: dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2262: warning: type defaults to â??intâ?? in declaration of â??type nameâ??
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2262: warning: cast to pointer from integer of different size
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2278: error: â??UTRACE_ACTION_DETACHâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2278: error: â??UTRACE_ACTION_RESUMEâ?? undeclared (first use in this function)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c: At top level:
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2281: error: variable â??uprobe_utrace_opsâ?? has initializer but incomplete type
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2283: error: unknown field â??report_quiesceâ?? specified in initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2283: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2283: warning: (near initialization for â??uprobe_utrace_opsâ??)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2284: error: unknown field â??report_signalâ?? specified in initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2284: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2284: warning: (near initialization for â??uprobe_utrace_opsâ??)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2285: error: unknown field â??report_exitâ?? specified in initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2285: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2285: warning: (near initialization for â??uprobe_utrace_opsâ??)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2286: error: unknown field â??report_cloneâ?? specified in initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2286: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2286: warning: (near initialization for â??uprobe_utrace_opsâ??)
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2287: error: unknown field â??report_execâ?? specified in initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2288: warning: excess elements in struct initializer
/usr/local/share/systemtap/runtime/uprobes/uprobes.c:2288: warning: (near initialization for â??uprobe_utrace_opsâ??)
make[2]: *** [/usr/local/share/systemtap/runtime/uprobes/uprobes.o] Error 1
make[1]: *** [_module_/usr/local/share/systemtap/runtime/uprobes] Error 2
make: *** [default] Error 2
Uprobes (re)build failed.
Pass 4: compiled C into "stap_5b42bca8044eb63cef313d7b4d5021cc_1361.ko" in 410usr/310sys/714real ms.
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stap196kZZ


[root@otitis systemtap]# file a.out 
a.out: ELF 64-bit MSB executable, cisco 7500, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped


[root@otitis systemtap]# cat userspace.stp 
probe process("a.out").function("*") { 
	printf("%s\n", probefunc())
}



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