• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shark and kernel/driver profiling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shark and kernel/driver profiling


  • Subject: Re: shark and kernel/driver profiling
  • From: Garth Cummings <email@hidden>
  • Date: Fri, 23 Feb 2007 17:25:02 -0800

Hi Drew,

On Feb 23, 2007, at 2:22 PM, Andrew Gallatin wrote:


Garth Cummings writes:
I wonder if the copy of the driver in the same directory as the .sym
file has its symbols stripped. Was it built using the debug or the release Xcode configuration?

Neither.. I build it from the command line, using a Makefile.  It has
been a while since I extracted xcode's idea of debug or release cflags.
The optimization/debugging flags I use are -O2 -g2.

I'd be more interested in your use of the strip command. That's what will remove symbols from the KEXT binary.


Gdb can easily print source addresses from this .sym file.

Based on the Shark docs it looks like the symbols have to be in the KEXT binary. You can confirm this by running nm on the binary.


Oh well, maybe I'll just wait for dtrace in leopard before I
profile anything.

Naw, this should work. I tried getting a time profile of everything using the 10.4.8 Kernel Debug Kit. Shark definitely was able to find symbols in IOUSBFamily, but I didn't have time to see if those symbols were only available from the KDK. I'll take another stab at this on Monday.


Drew


--gc

____________________________________________________________________
Garth Cummings  email@hidden
Sr. Software Engineer
Apple Developer Technical Support

<http://developer.apple.com/technicalsupport>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: shark and kernel/driver profiling
      • From: Andrew Gallatin <email@hidden>
References: 
 >shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Garth Cummings <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Garth Cummings <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)

  • Prev by Date: Re: shark and kernel/driver profiling
  • Next by Date: Kext function SMP locking
  • Previous by thread: Re: shark and kernel/driver profiling
  • Next by thread: Re: shark and kernel/driver profiling
  • Index(es):
    • Date
    • Thread