Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Trace logger info during system boot up: (10 Items)
   
Trace logger info during system boot up  
Hi,

I want to get trace logger info. during system boot up.
On one of the forum i seen below command which i included in the build script but it is not working. trace logger itself
 not yet started.
tracelogger -S10 &

Please suggest whats happening here also let me know any utility is there to work out which i can include on my build 
script so during boot up the trace logger will be automaticallly started and kev file will be available.

Thanks & Regards,
Robin

AW: Trace logger info during system boot up  
Hi Robin,
with -S you're telling tracelogger to use the given number as total logfile size.
10 Bytes is not very much :-)
In general you have two options:
1. tell tracelogger the max size of logfile to use
2. tell tracelogger the time to record, with infinite logfile size

1. traclogger -n0 -S10M &
2. traclogger -n0 -s20 &

the diff is that capital S is size in bytes and lower s is time in seconds.

For more information take a look at the ref manual
http://www.qnx.com/developers/docs/6.4.0/neutrino/utilities/t/tracelogger.html

BTW: if you want to trace your system startup you may be interested in the
combination of -M -S, which gives minimal impact to your system:
3. tracelogger -n0 -M -S20M &
will give you a logfile of 20MB in /dev/shmem/tracebuffer.kev
be aware that /dev/shmem is very transient

to be sure that tracing has ended I would recomment that you allways either check that tracelogger has exited by "pidin ar" or you just do a "slay tracelogger"

HTH
/hp


>-----Ursprüngliche Nachricht-----
>Von: Robin wood [mailto:community-noreply@qnx.com] 
>Gesendet: Dienstag, 21. April 2009 08:42
>An: general-toolchain
>Betreff: Trace logger info during system boot up
>
>Hi,
>
>I want to get trace logger info. during system boot up.
>On one of the forum i seen below command which i included in 
>the build script but it is not working. trace logger itself 
>not yet started.
>tracelogger -S10 &
>
>Please suggest whats happening here also let me know any 
>utility is there to work out which i can include on my build 
>script so during boot up the trace logger will be 
>automaticallly started and kev file will be available.
>
>Thanks & Regards,
>Robin
>
>
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27562
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: Trace logger info during system boot up  
Hi,

Thnx for your reply.

To my surprise i dont see any tracelogger running also there kev file s also not seen on the path. I suspect it could be
 a memory issue so reduced to even 1MB but still the same result. With pidin ar below are the process running.

     pid Arguments
       1 proc/boot/procnto-instr
       2 devc-seromap -u1 -F -e -S -b115200 0xfffb0000^2,46,k
       3 devf-generic -s0,32M -L1000 -r -f1
   16388 inflator -v /rodata
   16390 i2c-omap
   20487 dspmgr -i /proc/boot/dsp_image.out -p30 -s1280 -b5912 -v1
   32776 io-audio -odisable_sw_mixer -domap i2c_addr=26
   40965 ipcl -o speed=1000 -p45
   40969 devu-ohci -P25 -a0xfffba000 -i38 -vvvvvvvs
   61451 ksh ksh
   61452 PowerManagerProc -a1 -w1 -t2 -p50 -v
   98318 pidin ar

Pls let me know your comments
AW: AW: Trace logger info during system boot up  
some things to check:
-what's the free mem after a normal startup -> pidin in
-is there any message on your console?
-just check a "tracelogger -n0 -s3.0 &" on your cmd line -> any error message?
 

>-----Ursprüngliche Nachricht-----
>Von: Robin wood [mailto:community-noreply@qnx.com] 
>Gesendet: Dienstag, 21. April 2009 09:09
>An: general-toolchain
>Betreff: Re: AW: Trace logger info during system boot up
>
>Hi,
>
>Thnx for your reply.
>
>To my surprise i dont see any tracelogger running also there 
>kev file s also not seen on the path. I suspect it could be a 
>memory issue so reduced to even 1MB but still the same result. 
>With pidin ar below are the process running.
>
>     pid Arguments
>       1 proc/boot/procnto-instr
>       2 devc-seromap -u1 -F -e -S -b115200 0xfffb0000^2,46,k
>       3 devf-generic -s0,32M -L1000 -r -f1
>   16388 inflator -v /rodata
>   16390 i2c-omap
>   20487 dspmgr -i /proc/boot/dsp_image.out -p30 -s1280 -b5912 -v1
>   32776 io-audio -odisable_sw_mixer -domap i2c_addr=26
>   40965 ipcl -o speed=1000 -p45
>   40969 devu-ohci -P25 -a0xfffba000 -i38 -vvvvvvvs
>   61451 ksh ksh
>   61452 PowerManagerProc -a1 -w1 -t2 -p50 -v
>   98318 pidin ar
>
>Pls let me know your comments
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27566
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: AW: Trace logger info during system boot up  
Hi,

Below r the ans for your ques:

some things to check:
-what's the free mem after a normal startup -> pidin in - (Ans) - 11MB free
-is there any message on your console? - (Ans) - No messages on trace logger seen on the console.
-just check a "tracelogger -n0 -s3.0 &" on your cmd line -> any error message? - (Ans) - Working correctly. No error messages

FYI - I could get the kev files any where during my normal operation apart from system boot up.
AW: AW: AW: Trace logger info during system boot up  
anyway
what's the exact cmd line your using?
do you realy use /dev/shmem as destination or do you use -f filename ?
maybe your destination filesystem is yet not present when you're invoking tracelogger

>-----Ursprüngliche Nachricht-----
>Von: Robin wood [mailto:community-noreply@qnx.com] 
>Gesendet: Dienstag, 21. April 2009 09:23
>An: general-toolchain
>Betreff: Re: AW: AW: Trace logger info during system boot up
>
>Hi,
>
>Below r the ans for your ques:
>
>some things to check:
>-what's the free mem after a normal startup -> pidin in - 
>(Ans) - 11MB free -is there any message on your console? - 
>(Ans) - No messages on trace logger seen on the console.
>-just check a "tracelogger -n0 -s3.0 &" on your cmd line -> 
>any error message? - (Ans) - Working correctly. No error messages
>
>FYI - I could get the kev files any where during my normal 
>operation apart from system boot up.
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27569
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: AW: AW: Trace logger info during system boot up  
Hi,

Many thanks for your time.

Its working. 

I have done a mistake. I changed on the wrong build script.
Re: AW: AW: AW: Trace logger info during system boot up  
Hi,

I have one more question. Is it possible to stop the trace logger at user convenient time (from software).

Say i have to stop the trace logger if some event has occured.

If so pls let me know the util.

Thanks,
Robin
AW: AW: AW: AW: Trace logger info during system boot up  
#include <sys/neutrino.h>
#include <sys/trace.h>
TraceEvent(_NTO_TRACE_FLUSHBUFFER);
TraceEvent(_NTO_TRACE_STOP);

/hp 

>-----Ursprüngliche Nachricht-----
>Von: Robin wood [mailto:community-noreply@qnx.com] 
>Gesendet: Montag, 11. Mai 2009 09:24
>An: general-toolchain
>Betreff: Re: AW: AW: AW: Trace logger info during system boot up
>
>Hi,
>
>I have one more question. Is it possible to stop the trace 
>logger at user convenient time (from software).
>
>Say i have to stop the trace logger if some event has occured.
>
>If so pls let me know the util.
>
>Thanks,
>Robin
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post29121
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: AW: AW: AW: Trace logger info during system boot up  
Actually you want to STOP before the FLUSH

Hans-Peter Reichert wrote:
> #include <sys/neutrino.h>
> #include <sys/trace.h>
> TraceEvent(_NTO_TRACE_FLUSHBUFFER);
> TraceEvent(_NTO_TRACE_STOP);
> 
> /hp 
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Robin wood [mailto:community-noreply@qnx.com] 
>> Gesendet: Montag, 11. Mai 2009 09:24
>> An: general-toolchain
>> Betreff: Re: AW: AW: AW: Trace logger info during system boot up
>>
>> Hi,
>>
>> I have one more question. Is it possible to stop the trace 
>> logger at user convenient time (from software).
>>
>> Say i have to stop the trace logger if some event has occured.
>>
>> If so pls let me know the util.
>>
>> Thanks,
>> Robin
>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post29121
>>
>>
>  
> *******************************************
> Harman Becker Automotive Systems GmbH
> Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
> Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
> Local Court Mannheim: Register No. 361395
> 
>  
> *******************************************
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
> *******************************************
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29124

-- 
cburgess@qnx.com