This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2 problems with sprof


"H . J . Lu" <hjl@lucon.org> writes:

> > It's only not the same with regard to the data structures created and
> > the dynamic nature of loading and unloading.  The rest is the same.
> 
> Did you mean profiling executable plus a DSO doesn't work or just
> profiling executable doesn't work? I agree profiling executable plus
> a DSO is almost the same as profiling 2 DSOs. But I don't think it
> is worth fixing profiling executable alone if we still can't profile
> DSO at the same time. As I said, when I make the change, I will take
> profiling executable into account.

This means writing a completely new profiler and it also means ld.so
is not involved.  BTW: ld.so's method is everything but good for real
profiling since you cannot look inside it.

Don't waste time in looking for multiple-DSO support in ld.so, this
won't help you solve the real problem.

> Do we need a way to tell ld.so to profile executable? If yes, how?

You cannot.

> Also does sprof support executable?

No.  The whole concept is completely alien to executables.

> Are there any patches for kernel POSIX timer?

Yes, I think so.  Linus comments that he doesn't like it, though.
Don't know what the current status is, though.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]