Re: Use -finstrument-functions in module

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

 



----- "Michael Powe" <michael@xxxxxxxxxxxx> wrote:

> Hello,
> 
> I would like to use the gcc option -finstrument-functions to add some
> profiling to my module.  I can implement the functions and compile
> with the option successfully; however, I don't get any log output.
> 
> Documentation is a bit slender.  
> 
> The instrumented functions are declared:
> 
> __cyg_profile_func_enter(void *fn, void *call);
> __cyg_profile_func_exit(void *fn, void *call);
> 
> In order to use ap_log_error(), I need the server information to
> locate the logs to write to.  Attempting to change the function
> signature to include the request_rec object did not create any
> problems at compilation (or deployment) but also did not result in
> successful logging.
> 
> Basically, I want to be able to log the execution times for each
> function called within the module and I would like to avoid manually
> altering each function to record this information.  The instrumented
> functions seem to be a great way to do this.

Use DTrace or SystemTap?

> Thanks.
> 
> mp
> 
> -- 
> Michael Powe		michael@xxxxxxxxxxxx		Naugatuck CT USA
> 
> 
> 47.3% of all statistics are made up on the spot. - Steven Wright

i


-- 
Igor GaliÄ

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux