Files
erofs-linux/include/linux
Peter Zijlstra 96645678cd lockstat: measure lock bouncing
__acquire
        |
       lock _____
        |        \
        |    __contended
        |         |
        |        wait
        | _______/
        |/
        |
   __acquired
        |
   __release
        |
     unlock

We measure acquisition and contention bouncing.

This is done by recording a cpu stamp in each lock instance.

Contention bouncing requires the cpu stamp to be set on acquisition. Hence we
move __acquired into the generic path.

__acquired is then used to measure acquisition bouncing by comparing the
current cpu with the old stamp before replacing it.

__contended is used to measure contention bouncing (only useful for preemptable
locks)

[[email protected]: cleanups]
Signed-off-by: Peter Zijlstra <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-07-19 10:04:49 -07:00
..
…
…
…
…
…
…
…
2007-07-17 10:23:05 -07:00
…
…
…
…
…
…
…
…
2007-07-19 10:04:43 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-19 10:04:45 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-17 10:23:04 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-17 10:23:06 -07:00
…
…
…
…
…
…
…
…
…
2007-07-16 09:05:52 -07:00
…
2007-07-16 09:05:52 -07:00
…
2007-07-18 09:15:20 -04:00
2007-07-18 09:15:20 -04:00
…
2007-07-17 10:23:13 -07:00
…
…
…
…
…
…
…
…
2007-07-19 10:04:44 -07:00
2007-07-18 18:29:37 -04:00
…
…
…
…
2007-07-17 10:22:59 -07:00
…
…
…
…
…
…
…
…
2007-07-19 10:04:41 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-16 09:05:50 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-18 08:47:40 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-17 10:23:03 -07:00
…
2007-07-17 10:23:13 -07:00
…
…
2007-07-19 10:04:49 -07:00
…
…
…
…
…
…
…
2007-07-18 08:47:45 -07:00
…
…
…
…
…
…
…
…
2007-07-19 10:04:45 -07:00
…
…
2007-07-17 10:22:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
2007-07-19 10:04:45 -07:00
…
2007-07-16 09:05:51 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-19 10:04:42 -07:00
…
…
…
…
…
…
2007-07-16 09:05:50 -07:00
…
…
…
…
2007-07-17 10:23:03 -07:00
…
…
…
…
…
…
2007-07-18 08:47:40 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-16 09:05:50 -07:00
…
…
…
2007-07-18 08:38:22 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-19 10:04:49 -07:00
…
…
…
…
…
2007-07-18 08:47:40 -07:00
…
2007-07-17 10:22:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-18 15:57:15 -07:00
…
…
…
…
…
…
…
…
…
…
…
2007-07-18 08:47:41 -07:00
2007-07-17 10:22:59 -07:00
…
…
…
…
…
…
…
…
…
…