From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22578 invoked by alias); 25 Jul 2011 19:34:45 -0000 Received: (qmail 22349 invoked by uid 22791); 25 Jul 2011 19:34:44 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RW,TW_WX X-Spam-Check-By: sourceware.org Received: from mail-pz0-f52.google.com (HELO mail-pz0-f52.google.com) (209.85.210.52) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jul 2011 19:34:30 +0000 Received: by pzd13 with SMTP id 13so8196671pzd.25 for ; Mon, 25 Jul 2011 12:34:30 -0700 (PDT) Received: by 10.68.66.101 with SMTP id e5mr1389086pbt.1.1311622469886; Mon, 25 Jul 2011 12:34:29 -0700 (PDT) Received: from zdpc.mtv.corp.google.com ([2620:0:1000:1b02:baac:6fff:fe98:ceb5]) by mx.google.com with ESMTPS id k8sm4813905pbk.31.2011.07.25.12.34.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jul 2011 12:34:29 -0700 (PDT) Message-ID: <4E2DC543.4000101@gmail.com> Date: Mon, 25 Jul 2011 19:34:00 -0000 From: Da Zheng User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: Mark Wielaard CC: William Cohen , "Turgis, Frederic" , "systemtap@sourceware.org" Subject: Re: error to run systemtap in an ARM platform References: <4E1F90A8.2080000@gmail.com> <1310722941.4510.5.camel@springer.wildebeest.org> <4E209C3F.6060806@gmail.com> <4E20A6EF.9010003@redhat.com> <4E20B11A.5020402@gmail.com> <13872098A06B02418CF379A158C0F1460162204601@dnce02.ent.ti.com> <4E243F49.9020706@redhat.com> <4E24831E.1000005@gmail.com> <4E249307.5050003@redhat.com> <4E249A82.8010404@gmail.com> <1311588239.3322.26.camel@springer.wildebeest.org> In-Reply-To: <1311588239.3322.26.camel@springer.wildebeest.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2011-q3/txt/msg00097.txt.bz2 On 07/25/11 03:03, Mark Wielaard wrote: > On Sat, 2011-07-23 at 15:55 -0700, 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) { >> ^ > Is this the only probe for which return values aren't available or are > there others? What is your full script for triggering this issue? I think it doesn't work at other probes either, but the translation phase just stops here. The full script is as follow: $ cat read-write.stp #! /usr/bin/env stap global write_by_pid; global read_by_pid; probe kernel.function("vfs_write").return { if ($return > 0) { write_by_pid[execname()] = $return } } probe kernel.function("vfs_read").return { if ($return > 0) { read_by_pid[execname()] = $return } } probe timer.s(10) { foreach ([cmd] in write_by_pid-) printf("%s writes %d bytes\n", cmd, write_by_pid[cmd]) foreach ([cmd] in read_by_pid-) printf("%s reads %d bytes\n", cmd, read_by_pid[cmd]) exit() } >> 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. > Would you be able to upload this somewhere so we can inspect the debug > information? This looks like it is just the kernel image, not the > debuginfo, which is often bigger. You can see with stap -vvv what > systemtap is using. e.g.: > > focused on module 'kernel' = [0x0xffffffff81000000, > -0x0xffffffff81e64000, bias 0x0 > file /usr/lib/debug/lib/modules/2.6.35.13-92.fc14.x86_64/vmlinux ELF > machine |x86_64 (code 62) focused on module 'kernel' = [0x0xc0008000, -0x0xc062c7dc, bias 0x0 file /build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/build/tegra2_seaboard/vmlinux ELF machine arm*| (code 40) $ ls -lh /build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/build/tegra2_seaboard/vmlinux -rwxr-xr-x 1 zhengda portage 57M Jul 25 11:05 /build/tegra2_seaboard/tmp/portage/sys-kernel/chromeos-kernel-9999/work/chromeos-kernel-9999/build/tegra2_seaboard/vmlinux You can download it from http://sharesend.com/download/agkdi Thanks, Da