This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Met Problem on Enable SystemTap on Android
On 08/30/2011 12:10 PM, Yao,Yanjun wrote:
> Hi all,
>
> I tried enable SystemTap on Android, however, after I finished all the
> set up, no matter what I tried to run, I always get a "stap: 57:
> Syntax error: "(" unexpected" error.
That's an odd error - can you provide more context? What command line
are you running, and what is the full output from it?
> The following are my setting up steps:
> 1. Download android source.
> 2. Enable user debuggability by using command "lunch full_crespo-userdebug"
> 3. Download and install "systemtap-1.5-macharm" by following
> instructions on OMAPedia Systemtap webpage
> 4. Use "adb push" to copy all things inside "systemtap-1.5-macharme/"
> to "/data/systemtap-1.5-macharm" on the phone
> 5. Copy "Android_Source/out/target/product/crespo/system/modules/bcm4329.ko"
> into "/data/systemtap-1.5-macharm/bin" on the phone
> 6. Run "adb shell", then goto directory
> "/data/systemtap-1.5-macharm/bin" and run "staprun /bcm4329.ko".
Why are you invoking staprun with the wireless driver module? This is
meant to be invoked with a .ko that was compiled by stap. If you
happened to name your stap module with "-m bcm4329", then that's an
issue, as it must be unique from the kernel's own modules.
Josh