[lkml]   [2001]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] improve spinlock debugging
    On Mon, 2001-12-03 at 23:21, David S. Miller wrote:

    > Keep track of how many locks are being held at once, and check if it
    > is zero at switch_to() time. You can also do this to measure things
    > like max number of locks held at once and other statistics.
    > I added the first bit to sparc64 while hunting down a bug.

    Another interesting idea is see if a lock is held during a call to

    Once you get a lock count, a lot is possible. I have looked into doing
    some of these tests with the preemptible kernel patch. Since the
    preemption count is essential the lock depth, we have quick access to
    all this data.

    Robert Love

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:13    [W:0.021 / U:0.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site