From: William Cohen <wcohen@redhat.com>
To: Zheng Da <zhengda1936@gmail.com>
Cc: "Turgis, Frederic" <f-turgis@ti.com>,
"systemtap@sourceware.org" <systemtap@sourceware.org>
Subject: Re: error to run systemtap in an ARM platform
Date: Mon, 25 Jul 2011 15:46:00 -0000 [thread overview]
Message-ID: <4E2D8FC2.2060901@redhat.com> (raw)
In-Reply-To: <CAFLer82o_0zj9OEsG8oSeE42LLZJHbM6YWoFfEGeT2EfdLPDZA@mail.gmail.com>
On 07/23/2011 06:55 PM, Zheng Da wrote:
> Hello,
>
> I'm still trying to fix the problem.
> semantic error: failed to retrieve return value location for vfs_write
> (/build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/fs/read_write.c):
> identifier '$return' at read-write.stp:7:6
> source: if ($return > 0) {
> ^
> I'm pretty sure CONFIG_DEBUG_INFO is enabled, and in
> /build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/build/tegra2_seaboard,
> a binary file vmlinux is 57MB. It should contain the debug information.
>
> (cr) zhengda@zdpc
> /build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-k
> ernel-9999/build/tegra2_seaboard $ ls -l vmlinux
> -rwxr-xr-x 1 zhengda portage 59419805 Jul 22 20:55 vmlinux
>
> How does systemtap use the debug information? When it compiles the
> script, does it need to read the debug information from the kernel
> image? or it needs to read the .obj files of the kernel?
> Any ideas how to debug the problem?
>
> Thanks,
> Da
To try to replicate the problem on an arm machine running fedora 13 I ran the current build of systemtap from the git reposository and tried the iostats.stp example which should be accessing the $return:
./install/bin/stap -v systemtap/testsuite/systemtap.examples/io/iostats.stp
This worked without problem on the locally built 2.6.31.14.24-efikamx linux kernel. This is a locally built kernel and systemtap is building things natively rather than attempting a cross compile. This is using:
gcc-4.4.5-2.fc13.armv5tel
elfutils-0.146-1.fc13.armv5tel
The following gives some suggestions on reporting bugs:
http://sourceware.org/systemtap/wiki/HowToReportBugs
These are "kernel("function_name").return"? What does list out as available at that probe point?
stap -L 'kernel("function_name").return'
-Will
next prev parent reply other threads:[~2011-07-25 15:46 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-15 0:58 Da Zheng
2011-07-15 9:43 ` Mark Wielaard
2011-07-15 20:00 ` Da Zheng
2011-07-15 20:15 ` Frank Ch. Eigler
[not found] ` <4E20A714.9020404@gmail.com>
2011-07-15 20:50 ` Frank Ch. Eigler
2011-07-15 20:46 ` William Cohen
2011-07-15 21:29 ` Da Zheng
2011-07-16 0:23 ` Turgis, Frederic
2011-07-18 14:13 ` William Cohen
2011-07-18 19:02 ` Da Zheng
2011-07-18 20:10 ` William Cohen
2011-07-18 20:18 ` William Cohen
2011-07-18 20:41 ` Da Zheng
2011-07-23 22:56 ` Zheng Da
2011-07-24 1:57 ` Frank Ch. Eigler
2011-07-24 16:10 ` Frank Ch. Eigler
2011-07-25 10:04 ` Mark Wielaard
2011-07-25 19:34 ` Da Zheng
2011-07-25 15:46 ` William Cohen [this message]
2011-07-25 19:36 ` Da Zheng
2011-07-25 20:46 ` Mark Wielaard
2011-07-25 17:17 ` William Cohen
2011-07-25 19:56 ` Da Zheng
2011-07-26 14:03 ` William Cohen
2011-07-26 17:47 ` Da Zheng
2011-07-19 11:38 ` Turgis, Frederic
2011-07-18 14:00 ` William Cohen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E2D8FC2.2060901@redhat.com \
--to=wcohen@redhat.com \
--cc=f-turgis@ti.com \
--cc=systemtap@sourceware.org \
--cc=zhengda1936@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).