Reply by Dileepan C November 25, 20052005-11-25
hi,

yes, if the function definition is part of a separate
library, by default the function name doesnt find
entry in the profile function list.

Code Composer Studio's profiler uses software
breakpoints to determine inclusive and exclusive
counts. Software breakpoints are set at entry and exit
points of functions and on program discontinuities
(e.g. branches, function calls) which lie within the
scope of the active profile session.

so when profiling a function, the entry point is the
address corresponding to the '_function'.
In the case under consideration, it will be same in
both cases.

regards,
Dileepan.

--- Jagadeesh Bhaskar P <jagadeeshbp@jaga...>
wrote:

> Hi,
> Thank you for the help. Infact, the ASM file
> (function) is not part of
> my application, but part of a separate library.
> Would that be the reason
> for all the problems?
> If I just add the function using ranges, and not
> by symbol, will the
> values be the same, i.e. will there be a mismatch
> due to calling
> overhead also getting involved in one case and not
> in the other?
>
> --
> Jagadeesh
> "Quaerendo invenietis"
>
> > -----Original Message-----
> > From: Dileepan C [mailto:dileepan_c@dile...]
> > Sent: Friday, November 25, 2005 4:33 PM
> > To: Jagadeesh Bhaskar P
> > Cc: c6x@c6x@...
> > Subject: RE: [c6x] Trouble in Profiling an ASM
> function in CCS 3.1
> >
> > hi,
> >
> > is the asm file in which the function is defined,
> part
> > of your project or is it added as library?
> > when i added my own asm file with the function
> defined
> > in it, i could see that it is added in the profile
> > list automatically...see the attachment...but it
> is
> > true that the function name is not mentioned in
> the
> > profile table list. only line numbers with asm
> file
> > name is present.
> >
> > regards,
> > Dileepan.
> >
> > --- Jagadeesh Bhaskar P
> <jagadeeshbp@jaga...>
> > wrote:
> >
> > > Yes, I was having -pm and -op2. So I changed
> that
> > > setting over to none.
> > > The function has not been made inline.
> > >
> > > I am able to add the source range from the ASM
> file.
> > > But even after
> > > removing the setting I am unable to get the
> function
> > > listed while using
> > > profile all functions, or to add the function by
> > > adding symbol name. Is
> > > there something more I should do to get the
> function
> > > as such profiled?
> > >
> > > --
> > > Jagadeesh
> > > "Quaerendo invenietis"
> > > -----Original Message-----
> > > From: Bhooshan Iyer
> [mailto:bhooshaniyer@bhoo...]
> > > Sent: Thursday, November 24, 2005 1:39 PM
> > > To: Jagadeesh Bhaskar P
> > > Cc: c6x@c6x@...
> > > Subject: Re: [c6x] Trouble in Profiling an ASM
> > > function in CCS 3.1
> > >
> > > Try looking for "profile a range" where you need
> to
> > > enter the line
> > > numbers of thr source.If this too doesnt work
> > > then,may be the function
> > > is being in-lined? have you enabled -pm?
> > >
> > > --Bhooshan
> > > On 11/23/05, Jagadeesh Bhaskar P
> > > <jagadeeshbp@jaga...> wrote:
> > > Hi,
> > > I was trying to profile a function written in
> ASM
> > > for c64x. It was
> > > working fine when I tried it out in an
> independent
> > > project. But when I
> > > integrated it to the actual project, and
> selected
> > > profile all functions,
> > > the ASM function was not getting listed. Again I
> > > tried adding the
> > > function name independently as a profile item.
> Then
> > > CCS said: failed to
> > > add function. My compilation settings were O2 /
> op2
> > > / No debug.
> > >
> > > What probably could be the reason? Am I missing
> out
> > > some setting?
> > >
> > >
> > > Please do help.
> > >
> > > TIA.
> > > --
> > > Jagadeesh
> > > "Quaerendo invenietis"


Reply by Jagadeesh Bhaskar P November 25, 20052005-11-25
Hi,
Thank you for the help. Infact, the ASM file (function) is not part of
my application, but part of a separate library. Would that be the reason
for all the problems?
If I just add the function using ranges, and not by symbol, will the
values be the same, i.e. will there be a mismatch due to calling
overhead also getting involved in one case and not in the other?

--
Jagadeesh
"Quaerendo invenietis"

> -----Original Message-----
> From: Dileepan C [mailto:dileepan_c@dile...]
> Sent: Friday, November 25, 2005 4:33 PM
> To: Jagadeesh Bhaskar P
> Cc: c6x@c6x@...
> Subject: RE: [c6x] Trouble in Profiling an ASM function in CCS 3.1
>
> hi,
>
> is the asm file in which the function is defined, part
> of your project or is it added as library?
> when i added my own asm file with the function defined
> in it, i could see that it is added in the profile
> list automatically...see the attachment...but it is
> true that the function name is not mentioned in the
> profile table list. only line numbers with asm file
> name is present.
>
> regards,
> Dileepan.
>
> --- Jagadeesh Bhaskar P <jagadeeshbp@jaga...>
> wrote:
>
> > Yes, I was having -pm and -op2. So I changed that
> > setting over to none.
> > The function has not been made inline.
> >
> > I am able to add the source range from the ASM file.
> > But even after
> > removing the setting I am unable to get the function
> > listed while using
> > profile all functions, or to add the function by
> > adding symbol name. Is
> > there something more I should do to get the function
> > as such profiled?
> >
> > --
> > Jagadeesh
> > "Quaerendo invenietis"
> > -----Original Message-----
> > From: Bhooshan Iyer [mailto:bhooshaniyer@bhoo...]
> > Sent: Thursday, November 24, 2005 1:39 PM
> > To: Jagadeesh Bhaskar P
> > Cc: c6x@c6x@...
> > Subject: Re: [c6x] Trouble in Profiling an ASM
> > function in CCS 3.1
> >
> > Try looking for "profile a range" where you need to
> > enter the line
> > numbers of thr source.If this too doesnt work
> > then,may be the function
> > is being in-lined? have you enabled -pm?
> >
> > --Bhooshan
> > On 11/23/05, Jagadeesh Bhaskar P
> > <jagadeeshbp@jaga...> wrote:
> > Hi,
> > I was trying to profile a function written in ASM
> > for c64x. It was
> > working fine when I tried it out in an independent
> > project. But when I
> > integrated it to the actual project, and selected
> > profile all functions,
> > the ASM function was not getting listed. Again I
> > tried adding the
> > function name independently as a profile item. Then
> > CCS said: failed to
> > add function. My compilation settings were O2 / op2
> > / No debug.
> >
> > What probably could be the reason? Am I missing out
> > some setting?
> >
> >
> > Please do help.
> >
> > TIA.
> > --
> > Jagadeesh
> > "Quaerendo invenietis"



Reply by Dileepan C November 25, 20052005-11-25
hi,

is the asm file in which the function is defined, part
of your project or is it added as library?
when i added my own asm file with the function defined
in it, i could see that it is added in the profile
list automatically...see the attachment...but it is
true that the function name is not mentioned in the
profile table list. only line numbers with asm file
name is present.

regards,
Dileepan.

--- Jagadeesh Bhaskar P <jagadeeshbp@jaga...>
wrote:

> Yes, I was having -pm and -op2. So I changed that
> setting over to none.
> The function has not been made inline.
>
> I am able to add the source range from the ASM file.
> But even after
> removing the setting I am unable to get the function
> listed while using
> profile all functions, or to add the function by
> adding symbol name. Is
> there something more I should do to get the function
> as such profiled?
>
> --
> Jagadeesh
> "Quaerendo invenietis"
> -----Original Message-----
> From: Bhooshan Iyer [mailto:bhooshaniyer@bhoo...]
> Sent: Thursday, November 24, 2005 1:39 PM
> To: Jagadeesh Bhaskar P
> Cc: c6x@c6x@...
> Subject: Re: [c6x] Trouble in Profiling an ASM
> function in CCS 3.1
>
> Try looking for "profile a range" where you need to
> enter the line
> numbers of thr source.If this too doesnt work
> then,may be the function
> is being in-lined? have you enabled -pm?
>
> --Bhooshan
> On 11/23/05, Jagadeesh Bhaskar P
> <jagadeeshbp@jaga...> wrote:
> Hi,
> I was trying to profile a function written in ASM
> for c64x. It was
> working fine when I tried it out in an independent
> project. But when I
> integrated it to the actual project, and selected
> profile all functions,
> the ASM function was not getting listed. Again I
> tried adding the
> function name independently as a profile item. Then
> CCS said: failed to
> add function. My compilation settings were O2 / op2
> / No debug.
>
> What probably could be the reason? Am I missing out
> some setting? > Please do help.
>
> TIA.
> --
> Jagadeesh
> "Quaerendo invenietis"


Reply by Jagadeesh Bhaskar P November 24, 20052005-11-24
Yes, I was having -pm and -op2. So I changed that setting over to none.
The function has not been made inline.

I am able to add the source range from the ASM file. But even after
removing the setting I am unable to get the function listed while using
profile all functions, or to add the function by adding symbol name. Is
there something more I should do to get the function as such profiled?

--
Jagadeesh
"Quaerendo invenietis"
-----Original Message-----
From: Bhooshan Iyer [mailto:bhooshaniyer@bhoo...]
Sent: Thursday, November 24, 2005 1:39 PM
To: Jagadeesh Bhaskar P
Cc: c6x@c6x@...
Subject: Re: [c6x] Trouble in Profiling an ASM function in CCS 3.1

Try looking for "profile a range" where you need to enter the line
numbers of thr source.If this too doesnt work then,may be the function
is being in-lined? have you enabled -pm?

--Bhooshan
On 11/23/05, Jagadeesh Bhaskar P <jagadeeshbp@jaga...> wrote:
Hi,
I was trying to profile a function written in ASM for c64x. It was
working fine when I tried it out in an independent project. But when I
integrated it to the actual project, and selected profile all functions,
the ASM function was not getting listed. Again I tried adding the
function name independently as a profile item. Then CCS said: failed to
add function. My compilation settings were O2 / op2 / No debug.

What probably could be the reason? Am I missing out some setting? Please do help.

TIA.
--
Jagadeesh
"Quaerendo invenietis"


Reply by Bhooshan Iyer November 24, 20052005-11-24
Try looking for "profile a range" where you need to enter the line numbers of thr source.If this too doesnt work then,may be the function is being in-lined? have you enabled -pm?

--Bhooshan

On 11/23/05, Jagadeesh Bhaskar P <j...@tataelxsi.co.in> wrote:

Hi,

  I was trying to profile a function written in ASM for c64x. It was working fine when I tried it out in an independent project. But when I integrated it to the actual project, and selected profile all functions, the ASM function was not getting listed. Again I tried adding the function name independently as a profile item. Then CCS said: failed to add function. My compilation settings were O2 / op2 / No debug.

 

What probably could be the reason? Am I missing out some setting?

 

 

Please do help.

 

TIA.

--

Jagadeesh

"Quaerendo invenietis"

 




 


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or a...@tataelxsi.co.in




--
-------------------------------
"I've missed more than 9000 shots in my career.
I've lost almost 300 games. 26 times I've been trusted to take the game winning shot and missed.
I've failed over and over again in my life.
And that is why I succeed."
        -- Michael Jordan
--------------------------------
Reply by Jagadeesh Bhaskar P November 23, 20052005-11-23

Hi,

  I was trying to profile a function written in ASM for c64x. It was working fine when I tried it out in an independent project. But when I integrated it to the actual project, and selected profile all functions, the ASM function was not getting listed. Again I tried adding the function name independently as a profile item. Then CCS said: failed to add function. My compilation settings were O2 / op2 / No debug.

 

What probably could be the reason? Am I missing out some setting?

 

 

Please do help.

 

TIA.

--

Jagadeesh

"Quaerendo invenietis"