public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* cannot trace user-level code in cross compilation environment
@ 2011-04-01  9:05 Zhiwei Ying
  2011-04-01 10:59 ` Adrien Kunysz
  2011-04-01 18:25 ` Josh Stone
  0 siblings, 2 replies; 7+ messages in thread
From: Zhiwei Ying @ 2011-04-01  9:05 UTC (permalink / raw)
  To: systemtap

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

Hi,

I built a systemtap1.4 on ubuntu 10.4 32 bits. And also cross-compile
staprun to a develop board with kernel 2.6.35 x86.

On the host pc side,

stap -r /target-board/kernel xxx.stp -p 4 -m traceauto.ko

then copy the traceauto.ko to the board,
staprun -u -v -m traceauto.ko -c ./hello


xxx.stp
probe process("/ddtv/tracedrv/test/dhg/hello/hello").function("*").call
{
        printf("USER, %s %s %s\n", thread_indent(1), pp(), $$parms)
}
probe process("/ddtv/tracedrv/test/dhg/hello/hello").function("*").return
{
        printf("USER %s %s %s\n", thread_indent(-1), probefunc(), $$return)
}
probe end
{
        printf ("end of tracing\n")
}

It only able to print "end of tracing", nothing in the hello is
printed. Attached is the binary of traceauto.ko.

BTW, it can trace kernel level code. Just not lucky on user-level code.

Any help is great appreciated.

Thanks,
Zhiwei

[-- Attachment #2: traceauto.ko --]
[-- Type: application/octet-stream, Size: 302835 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-06  6:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01  9:05 cannot trace user-level code in cross compilation environment Zhiwei Ying
2011-04-01 10:59 ` Adrien Kunysz
2011-04-01 12:27   ` Zhiwei Ying
2011-04-01 18:25 ` Josh Stone
2011-04-02  0:52   ` Zhiwei Ying
2011-04-04 22:56     ` Josh Stone
2011-04-06  6:03       ` Zhiwei Ying

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).