Re: Help on Gcov

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'll try to be more specific.

I studied a little about gcov. I saw that GCC instrumentate the
program *edges* to get the code coverage.
So...
- The instrumentator uses any technique to reduce the amount of
instrumentation points, for example, dominance?
- I know that the instrumentation is done at compile time. However, it
is done in C code or in compiled code ?
- What commands runs when the probes are executed? The probes calls
some function in lib? What?

Now I'd  want to know more about the sources that I have identified as
part of gcov:

- coverage.c: I do not know.
- gcov: It is responsible for generating the file. gcov?
- profile:
- gcov-io: Responsible for reading and writing files. gcda and. gcno?
- libgcov: library that supports the execution of the instrumented program?
- tree-profile.c: insert the probes in code?

Which of these files are used during compile? And which of these files
are used during program execution?

I don't know if I could be more specific.
Sorry if I'm bothering.

Best regards,
Harry


2011/4/5 Ian Lance Taylor <iant@xxxxxxxxxx>
>
> Harry Trinta <harrytpc@xxxxxxxxx> writes:
>
> > My name is Harry and I've been doing my master's degree at USP
> > (Universidade de São Paulo) here in Brazil. My thesis will address
> > about applying structural tests for embedded systems.
> > Then, for now, my activity is study and understand how the gcov works
> > (internally). I've never studied about it before, and I'm having some
> > problems.
> > I' have been researching on the Internet about the subject but I
> > couldn't find anything helpful, and so, I decided to contact you guys.
> > I saw that on GCC there are several sources related to the gcov:
> > -  coverage
> > -  gcov
> > -  profile
> > -  gcov-io
> > -  libgcov
> >
> > I don't understand how each one works and what are their responsibilities.
> > I need understand which function starts the Gcov process. Moreover, i
> > need to know which source is responsible for instrumenting the code..
> > and others things.
> > In short: I need to understand the internal behavior of gcov.
>
> It's hard to answer general questions.  It's much easier to answer
> specific questions.  So, ask specific questions.
>
> I don't know what you mean by asking which function starts the gcov
> process.
>
> The instrumentation code is inserted by code in gcc/tree-profile.c.
>
> Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux