• 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: Get the caller of socket_lock()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the caller of socket_lock()


  • Subject: Re: Get the caller of socket_lock()
  • From: Laurent Dumont <email@hidden>
  • Date: Wed, 02 Aug 2006 13:23:00 -0700

Michael,

On 10.4.x for i386 there is a slightly different debug mechanism for the
socket lock and unlock. Instead of reserved3 and reserverd4, there is
circular buffers with the 4 last lock/unlocks for the socket:

        u_int32_t lock_lr[4];
        int next_lock_lr;
        u_int32_t unlock_lr[4];
        int next_unlock_lr;

"next_lock_lr" and "next_unlock_lr" provide the number (0 to 3) for the next
debug link register slot to be used. You can work your way from n-1 and find
the last four lock/unlock recorded for that socket.

Laurent



on 8/2/06 11:23, Michael Tuexen at email@hidden wrote:

> Dear all,
>
> we are currently debugging a locking issue on Mac OS X on Intel. It
> is related to
> socket locks and we are able to break into the debugger to inspect
> the socket
> structures. On PPC one can find the last caller of the socket_lock()
> function,
> but is there a similar way in doing it in Intel, possibly by
> inspecting the reserved3
> or reserved4 fields in the socket structure? What is stored in these
> fields?
>
> Thank you very much for your help in advance.
>
> Best regards
> Michael
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Get the caller of socket_lock()
      • From: Michael Tuexen <email@hidden>
References: 
 >Get the caller of socket_lock() (From: Michael Tuexen <email@hidden>)

  • Prev by Date: Re: Non-priv way to collect job stats under Intel?
  • Next by Date: Re: Get the caller of socket_lock()
  • Previous by thread: Get the caller of socket_lock()
  • Next by thread: Re: Get the caller of socket_lock()
  • Index(es):
    • Date
    • Thread