−class name
Displays the lockstats structures for the specified
lock class. (Use the lockinfo command to display
information about the names of lock classes.)
−cpu number
Displays the lockstats structures for the specified
CPU.
−read
Displays the reads, sleeps attributes, and waitsums
or misses.
−sum
Displays summary data for all CPUs and all lock
types.
−total
Displays summary data for all CPUs.
−update n
Updates the display every n seconds.
For example:
(kdbx) lockstats
Lockstats li_name cpu count tries misses %misses waitsum waitmax waitmin trmax
=========== ==================== === ====== ========== ======= ======= ============ ======= ======= ========
k0x00657d40 inode.i_io_lock 1 1784 74268 1936 2.61 110533 500 6 10
k0x00653400 nfs_daemon_lock 0 1 7 0 0.00 0 0 0 0
k0x00657d80 nfs_daemon_lock 1 1 0 0 0.00 0 0 0 0
k0x00653440 lk_lmf 0 1 0 0 0.00 0 0 0 0
k0x00657dc0 lk_lmf 1 1 2 0 0.00 0 0 0 0
k0x00653480 procfs_global_lock 0 1 3 0 0.00 0 0 0 0
k0x00657e00 procfs_global_lock 1 1 5 0 0.00 0 0 0 0
k0x006534c0 procfs.pr_trace_lock 0 40 0 0 0.00 0 0 0 0
k0x00657e40 procfs.pr_trace_lock 1 40 0 0 0.00 0 0 0 0
.
.
.
2.2.3.15 Displaying lockinfo Structures
The lockinfo extension displays static lock class information contained
in the lockinfo structures. Each lock class is recorded in one lockinfo
structure, which contains the following information:
• The address of the structure
• The index into the array of lockinfo structures
• The class of lock for which information is provided
• The number of instances of the lock
• The lock flag, as defined in the /sys/include/sys/lock.h header file
This extension is available only when the lockmode system attribute is
set to 4.
Kernel Debugging Utilities 2–25