DSPRelated.com
Forums

view LOG_printf in a host

Started by Alexandre Freire da Silva Osorio July 1, 2004
Hi,

I'm looking for a way to get the contents of the log buffer filled by LOG_printf
in a host processor. Please, anyone knows a way to do this? I think that it
would be a kind of library that contains functions to read the log buffer from
DSP via, for example, XBUS port.

Thanks in advance.

Alexandre



The Simulator Analysis tool shows the L1 and L2 Cache R /W misses.
Has anyone used this tool and found true to hardware performance.

Thanks,
Amrut

===== ________________________________________________________________________
Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/



Hi Amrut,

I used this tool and found it useful. It doesn't give
any other performance figures,except for the
time-based cache hits/misses for any memory addresses.
I think it is accurate enough to the hardware, if you
use the same linker command file. IMHO, the
inaccuracies of simulator vs. hardware have mostly to
do with memory access times/wait states. And the cache
analysis too doesn't give you data about that.
You can certainly improve the time resolution by
editing the simulator config.

Regards
Piyush
--- Amrut Kunte <> wrote:
> The Simulator Analysis tool shows the L1 and L2
> Cache R /W misses.
> Has anyone used this tool and found true to hardware
> performance.
>
> Thanks,
> Amrut
>
> ===== >
________________________________________________________________________
> Yahoo! India Careers: Over 50,000 jobs online
> Go to: http://yahoo.naukri.com/ >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com
>
> Yahoo! Groups Links >
>


=====
**************************************
And---"A blind Understanding!" Heav'n replied.

Piyush Kaul
http://www.geocities.com/piyushkaul
__________________________________


Alexandre-

I dont have straight solution.. but you may want to
look at audio.pjt file in ur ti directory (its an
example project.. sitting at
\\ti\examples\dsk6711\bios\audio\audio.pjt )

this project has used LOG_printf also look it up on
help section of CCS.

and if you written the code and just want to view it
on the host then go to DSP/BIOS menu and then click on
message log and u will see the log.

Hope this helps
-Tarang

--- Alexandre Freire da Silva Osorio
<> wrote:
> Hi,
>
> I'm looking for a way to get the contents of the log
> buffer filled by LOG_printf in a host processor.
> Please, anyone knows a way to do this? I think that
> it would be a kind of library that contains
> functions to read the log buffer from DSP via, for
> example, XBUS port.
>
> Thanks in advance.
>
> Alexandre >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com
>
> Yahoo! Groups Links >
>


__________________________________


Tarang,

Thanks for your help, but our host processor doesn't run Code Composer. In fact
it doesn't even run Windows, it's a Motorola Power PC. So what we need would a
library containing functions to deal with the log buffer in DSP.

Regards,
Alexandre

-----Original Message-----
From: Tarang Dadia [mailto:]
Sent: Friday, July 02, 2004 2:46 AM
To: Alexandre Freire da Silva Osorio;
Subject: Re: [c6x] view LOG_printf in a host Alexandre-

I dont have straight solution.. but you may want to
look at audio.pjt file in ur ti directory (its an
example project.. sitting at
\\ti\examples\dsk6711\bios\audio\audio.pjt )

this project has used LOG_printf also look it up on
help section of CCS.

and if you written the code and just want to view it
on the host then go to DSP/BIOS menu and then click on
message log and u will see the log.

Hope this helps
-Tarang

--- Alexandre Freire da Silva Osorio
<> wrote:
> Hi,
>
> I'm looking for a way to get the contents of the log
> buffer filled by LOG_printf in a host processor.
> Please, anyone knows a way to do this? I think that
> it would be a kind of library that contains
> functions to read the log buffer from DSP via, for
> example, XBUS port.
>
> Thanks in advance.
>
> Alexandre >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com
>
> Yahoo! Groups Links >
>


__________________________________
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this
message will receive your answer. You need to do a "reply all" if you want your
answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com

Yahoo! Groups Links



Alexandre-

> Thanks for your help, but our host processor doesn't run Code Composer.
> In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> we need would a library containing functions to deal with the log
> buffer in DSP.

How does your host processor normally talk to the DSP? Via HPI? If you are
still in
design phase, I might mention that XBus makes HPI look like kintergarden :-)

Whatever method you end up with, then you tranfer data from the starting memory
address log buffer, which can be determined from .map file.

-Jeff

> -----Original Message-----
> From: Tarang Dadia [mailto:]
> Sent: Friday, July 02, 2004 2:46 AM
> To: Alexandre Freire da Silva Osorio;
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> I dont have straight solution.. but you may want to
> look at audio.pjt file in ur ti directory (its an
> example project.. sitting at
> \\ti\examples\dsk6711\bios\audio\audio.pjt )
>
> this project has used LOG_printf also look it up on
> help section of CCS.
>
> and if you written the code and just want to view it
> on the host then go to DSP/BIOS menu and then click on
> message log and u will see the log.
>
> Hope this helps
> -Tarang
>
> --- Alexandre Freire da Silva Osorio
> <> wrote:
> > Hi,
> >
> > I'm looking for a way to get the contents of the log
> > buffer filled by LOG_printf in a host processor.
> > Please, anyone knows a way to do this? I think that
> > it would be a kind of library that contains
> > functions to read the log buffer from DSP via, for
> > example, XBUS port.
> >
> > Thanks in advance.
> >
> > Alexandre



Thanks, Jeff-

Your idea is good, but do you know what is the format of the data structure used
by LOG_printf to store the strings in trace buffer? Moreover I read somewhere
that to save processing time LOG_printf doesn't format the strings it stores,
the formatting work being done by the host. That's why I thought in a lib. Do
you know if it's true?

Regards,
Alexandre

-----Original Message-----
From: Jeff Brower [mailto:]
Sent: Friday, July 02, 2004 1:50 PM
To: Alexandre Freire da Silva Osorio
Cc:
Subject: Re: [c6x] view LOG_printf in a host Alexandre-

> Thanks for your help, but our host processor doesn't run Code Composer.
> In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> we need would a library containing functions to deal with the log
> buffer in DSP.

How does your host processor normally talk to the DSP? Via HPI? If you are
still in
design phase, I might mention that XBus makes HPI look like kintergarden :-)

Whatever method you end up with, then you tranfer data from the starting memory
address log buffer, which can be determined from .map file.

-Jeff

> -----Original Message-----
> From: Tarang Dadia [mailto:]
> Sent: Friday, July 02, 2004 2:46 AM
> To: Alexandre Freire da Silva Osorio;
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> I dont have straight solution.. but you may want to
> look at audio.pjt file in ur ti directory (its an
> example project.. sitting at
> \\ti\examples\dsk6711\bios\audio\audio.pjt )
>
> this project has used LOG_printf also look it up on
> help section of CCS.
>
> and if you written the code and just want to view it
> on the host then go to DSP/BIOS menu and then click on
> message log and u will see the log.
>
> Hope this helps
> -Tarang
>
> --- Alexandre Freire da Silva Osorio
> <> wrote:
> > Hi,
> >
> > I'm looking for a way to get the contents of the log
> > buffer filled by LOG_printf in a host processor.
> > Please, anyone knows a way to do this? I think that
> > it would be a kind of library that contains
> > functions to read the log buffer from DSP via, for
> > example, XBUS port.
> >
> > Thanks in advance.
> >
> > Alexandre




Alexandre-

> Your idea is good, but do you know what is the format of the data
> structure used by LOG_printf to store the strings in trace buffer?
> Moreover I read somewhere that to save processing time LOG_printf
> doesn't format the strings it stores, the formatting work being
> done by the host. That's why I thought in a lib. Do you know if
> it's true?

I don't know the format. But if you call printf() a few times and put some
basic
stuff there like "0123...ABCD...CCS, WHERE IS MY STRING..." you should be able
to
know what it's doing :-)

-Jeff > -----Original Message-----
> From: Jeff Brower [mailto:]
> Sent: Friday, July 02, 2004 1:50 PM
> To: Alexandre Freire da Silva Osorio
> Cc:
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> > Thanks for your help, but our host processor doesn't run Code Composer.
> > In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> > we need would a library containing functions to deal with the log
> > buffer in DSP.
>
> How does your host processor normally talk to the DSP? Via HPI? If you are
still in
> design phase, I might mention that XBus makes HPI look like kintergarden :-)
>
> Whatever method you end up with, then you tranfer data from the starting
memory
> address log buffer, which can be determined from .map file.
>
> -Jeff
>
> > -----Original Message-----
> > From: Tarang Dadia [mailto:]
> > Sent: Friday, July 02, 2004 2:46 AM
> > To: Alexandre Freire da Silva Osorio;
> > Subject: Re: [c6x] view LOG_printf in a host
> >
> > Alexandre-
> >
> > I dont have straight solution.. but you may want to
> > look at audio.pjt file in ur ti directory (its an
> > example project.. sitting at
> > \\ti\examples\dsk6711\bios\audio\audio.pjt )
> >
> > this project has used LOG_printf also look it up on
> > help section of CCS.
> >
> > and if you written the code and just want to view it
> > on the host then go to DSP/BIOS menu and then click on
> > message log and u will see the log.
> >
> > Hope this helps
> > -Tarang
> >
> > --- Alexandre Freire da Silva Osorio
> > <> wrote:
> > > Hi,
> > >
> > > I'm looking for a way to get the contents of the log
> > > buffer filled by LOG_printf in a host processor.
> > > Please, anyone knows a way to do this? I think that
> > > it would be a kind of library that contains
> > > functions to read the log buffer from DSP via, for
> > > example, XBUS port.
> > >
> > > Thanks in advance.
> > >
> > > Alexandre
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com
>
> Yahoo! Groups Links >
>




Check the BIOS docs - I know that it is [or used to be??] 4 bytes with the first being a count so that you can unwind the circular buffer intelligently.  Keep in mind that the data will not be formatted - the host formats it.  Since it is unformatted, you might want to look at LOG_event - I remember that it takes more than one var per entry.
 
I think the book, er.. PDF is something like the DSP/BIOS Users Guide.
 
mikedunn

Jeff Brower <j...@signalogic.com> wrote:
Alexandre-

> Your idea is good, but do you know what is the format of the data
> structure used by LOG_printf to store the strings in trace buffer?
> Moreover I read somewhere that to save processing time LOG_printf
> doesn't format the strings it stores, the formatting work being
> done by the host. That's why I thought in a lib. Do you know if
> it's true?

I don't know the format. But if you call printf() a few times and put some basic
stuff there like "0123...ABCD...CCS, WHERE IS MY STRING..." you should be able to
know what it's doing :-)

-Jeff> -----Original Message-----
> From: Jeff Brower [mailto:j...@signalogic.com]
> Sent: Friday, July 02, 2004 1:50 PM
> To: Alexandre Freire da Silva Osorio
> Cc: c...@yahoogroups.com
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> > Thanks for your help, but our host processor doesn't run Code Composer.
> > In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> > we need would a library containing functions to deal with the log
> > buffer in DSP.
>
> How does your host processor normally talk to the DSP? Via HPI? If you are still in
> design phase, I might mention that XBus makes HPI look like kintergarden :-)
>
> Whatever method you end up with, then you tranfer data from the starting memory
> address log buffer, which can be determined from .map file.
>
> -Jeff
>
> > -----Original Message-----
> > From: Tarang Dadia [mailto:t...@yahoo.com]
> > Sent: Friday, July 02, 2004 2:46 AM
> > To: Alexandre Freire da Silva Osorio; c...@yahoogroups.com
> > Subject: Re: [c6x] view LOG_printf in a host
> >
> > Alexandre-
> >
> > I dont have straight solution.. but you may want to
> > look at audio.pjt file in ur ti directory (its an
> > example project.. sitting at
> > \\ti\examples\dsk6711\bios\audio\audio.pjt )
> >
> > this project has used LOG_printf also look it up on
> > help section of CCS.
> >
> > and if you written the code and just want to view it
> > on the host then go to DSP/BIOS menu and then click on
> > message log and u will see the log.
> >
> > Hope this helps
> > -Tarang
> >
> > --- Alexandre Freire da Silva Osorio
> > wrote:
> > > Hi,
> > >
> > > I'm looking for a way to get the contents of the log
> > > buffer filled by LOG_printf in a host processor.
> > > Please, anyone knows a way to do this? I think that
> > > it would be a kind of library that contains
> > > functions to read the log buffer from DSP via, for
> > > example, XBUS port.
> > >
> > > Thanks in advance.
> > >
> > > Alexandre
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to c...@yahoogroups.com
>
> To Post: Send an email to c...@yahoogroups.com
>
> To Leave: Send an email to c...@yahoogroups.com
>
> Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com
>
> Yahoo! Groups Links
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to c...@yahoogroups.com

To Post: Send an email to c...@yahoogroups.com

To Leave: Send an email to c...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*



Mike Dunn <> writes:
>> Your idea is good, but do you know what is the format of the data
>> structure used by LOG_printf to store the strings in trace buffer?
>> Moreover I read somewhere that to save processing time LOG_printf
>> doesn't format the strings it stores, the formatting work being
>> done by the host. That's why I thought in a lib. Do you know if
>> it's true?

Correct.

If you want to process the LOG data without a host, another
solution is to override vfprintf/fprintf/vprintf/printf and
LOG_printf/UTL_error/etc with your own functions. Warning - since you
often won't want to format/transfer the data when the call is made, you'll
need to store the data in a buffer. Note that 'printf' calls assume the
formatting is done immediately; the LOG_* functions generally don't (but
are limited in the number of arguments).

Typical solution: dump the data into a mailbox, and have a task
read and process it. For printf, format into a allocated memory buffer (or
pre-allocated), pass into the mailbox, and free the buffer after the
process task uses it.

Check out the source for all of these; it's included with CCS.

--
Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team