Unix/Linux Go Back    


Android Brand new forum for folks interesting in Linux and Java-based Android OS and multi-platform mobile computing in general.

Strace help

Android


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 02-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
My googling says android has bourne sh, which has $! normally.

---------- Post updated at 11:55 AM ---------- Previous update was at 11:48 AM ----------

If it is reading stdin, no problem. You can strace in the background, too, so the command is in the foreground and you can type:
Code:
$ strace -fvxs 99999 -o /tmp/this_trace.tr -p $$ & am start com.android.mail

The Following User Says Thank You to DGPickett For This Useful Post:
far001han (02-18-2013)
Sponsored Links
    #9  
Old Unix and Linux 02-18-2013
far001han far001han is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 18 February 2013, 3:03 PM EST
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Strace help (Android)

Quote:
Originally Posted by DGPickett View Post
My googling says android has bourne sh, which has $! normally.

---------- Post updated at 11:55 AM ---------- Previous update was at 11:48 AM ----------

If it is reading stdin, no problem. You can strace in the background, too, so the command is in the foreground and you can type:
Code:
$ strace -fvxs 99999 -o /tmp/this_trace.tr -p $$ & am start com.android.mail


what is 99999 used for??

---------- Post updated at 12:29 PM ---------- Previous update was at 12:22 PM ----------

Quote:
Originally Posted by DGPickett View Post
My googling says android has bourne sh, which has $! normally.

---------- Post updated at 11:55 AM ---------- Previous update was at 11:48 AM ----------

If it is reading stdin, no problem. You can strace in the background, too, so the command is in the foreground and you can type:
Code:
$ strace -fvxs 99999 -o /tmp/this_trace.tr -p $$ & am start com.android.mail

I used the command as you mentioned except 99999 as it didnt accept the argument. Everything is fine , but the strace exits as soon as the application opens. Is there a way to contine running the strace even after the application opens
Sponsored Links
    #10  
Old Unix and Linux 02-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
What does the log say as to why it stopped?

-s strsize Specify the maximum string size to print (the default is 32).
Note that filenames are not considered strings and are always printed in full.
    #11  
Old Unix and Linux 02-18-2013
far001han far001han is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 18 February 2013, 3:03 PM EST
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Strace help (Android)

Quote:
Originally Posted by DGPickett View Post
What does the log say as to why it stopped?

-s strsize Specify the maximum string size to print (the default is 32).
Note that filenames are not considered strings and are always printed in full.
I think strace command is being run for /bin/sh and '&' command is executing the second part of command by just starting the application. so basically its not stracing the app. two commands are indipendtly executing
Sponsored Links
    #12  
Old Unix and Linux 02-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
Well, for all I know android strace has no -f, as docs are hard to come by.
Sponsored Links
    #13  
Old Unix and Linux 02-18-2013
far001han far001han is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 18 February 2013, 3:03 PM EST
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Ohk Thanks DGPickett , got atleast some idea..
Sponsored Links
    #14  
Old Unix and Linux 02-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
Does strace have internal help?
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help on strace output klng UNIX for Advanced & Expert Users 4 10-21-2012 08:55 PM
strace big123456 UNIX for Advanced & Expert Users 6 10-10-2011 06:59 AM
ioctl : strace angad.makkar UNIX for Advanced & Expert Users 1 03-12-2009 10:03 AM
strace p4cldba UNIX for Advanced & Expert Users 0 07-11-2008 12:31 PM
help running strace klam UNIX for Advanced & Expert Users 4 09-25-2006 10:06 AM



All times are GMT -4. The time now is 06:11 AM.