]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach_debug/lockgroup_info.h
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * File: mach/lockgroup_info.h
25 * Definitions for host_lockgroup_info call.
28 #ifndef _MACH_DEBUG_LOCKGROUP_INFO_H_
29 #define _MACH_DEBUG_LOCKGROUP_INFO_H_
31 #include <mach/mach_types.h>
33 #define LOCKGROUP_MAX_NAME 64
35 #define LOCKGROUP_ATTR_STAT 0x01ULL
37 typedef struct lockgroup_info
{
38 char lockgroup_name
[LOCKGROUP_MAX_NAME
];
39 uint64_t lockgroup_attr
;
40 uint64_t lock_spin_cnt
;
41 uint64_t lock_spin_util_cnt
;
42 uint64_t lock_spin_held_cnt
;
43 uint64_t lock_spin_miss_cnt
;
44 uint64_t lock_spin_held_max
;
45 uint64_t lock_spin_held_cum
;
46 uint64_t lock_mtx_cnt
;
47 uint64_t lock_mtx_util_cnt
;
48 uint64_t lock_mtx_held_cnt
;
49 uint64_t lock_mtx_miss_cnt
;
50 uint64_t lock_mtx_wait_cnt
;
51 uint64_t lock_mtx_held_max
;
52 uint64_t lock_mtx_held_cum
;
53 uint64_t lock_mtx_wait_max
;
54 uint64_t lock_mtx_wait_cum
;
56 uint64_t lock_rw_util_cnt
;
57 uint64_t lock_rw_held_cnt
;
58 uint64_t lock_rw_miss_cnt
;
59 uint64_t lock_rw_wait_cnt
;
60 uint64_t lock_rw_held_max
;
61 uint64_t lock_rw_held_cum
;
62 uint64_t lock_rw_wait_max
;
63 uint64_t lock_rw_wait_cum
;
66 typedef lockgroup_info_t
*lockgroup_info_array_t
;
68 #endif /* _MACH_DEBUG_LOCKGROUP_INFO_H_ */