|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* ! 26: * Mach Operating System ! 27: * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University ! 28: * All Rights Reserved. ! 29: * ! 30: * Permission to use, copy, modify and distribute this software and its ! 31: * documentation is hereby granted, provided that both the copyright ! 32: * notice and this permission notice appear in all copies of the ! 33: * software, derivative works or modified versions, and any portions ! 34: * thereof, and that both notices appear in supporting documentation. ! 35: * ! 36: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" ! 37: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ! 38: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ! 39: * ! 40: * Carnegie Mellon requests users of this software to return to ! 41: * ! 42: * Software Distribution Coordinator or [email protected] ! 43: * School of Computer Science ! 44: * Carnegie Mellon University ! 45: * Pittsburgh PA 15213-3890 ! 46: * ! 47: * any improvements or extensions that they make and grant Carnegie Mellon ! 48: * the rights to redistribute these changes. ! 49: */ ! 50: ! 51: #include <mach_counters.h> ! 52: ! 53: #include <kern/counters.h> ! 54: ! 55: /* ! 56: * We explicitly initialize the counters to make ! 57: * them contiguous in the kernel's data space. ! 58: * This makes them easier to examine with ddb. ! 59: */ ! 60: ! 61: mach_counter_t c_thread_invoke_hits = 0; ! 62: mach_counter_t c_thread_invoke_misses = 0; ! 63: mach_counter_t c_thread_invoke_csw = 0; ! 64: mach_counter_t c_thread_handoff_hits = 0; ! 65: mach_counter_t c_thread_handoff_misses = 0; ! 66: ! 67: #if MACH_COUNTERS ! 68: mach_counter_t c_threads_current = 0; ! 69: mach_counter_t c_threads_max = 0; ! 70: mach_counter_t c_threads_min = 0; ! 71: mach_counter_t c_threads_total = 0; ! 72: mach_counter_t c_stacks_current = 0; ! 73: mach_counter_t c_stacks_max = 0; ! 74: mach_counter_t c_stacks_min = 0; ! 75: mach_counter_t c_stacks_total = 0; ! 76: mach_counter_t c_clock_ticks = 0; ! 77: mach_counter_t c_ipc_mqueue_send_block = 0; ! 78: mach_counter_t c_ipc_mqueue_receive_block_user = 0; ! 79: mach_counter_t c_ipc_mqueue_receive_block_kernel = 0; ! 80: mach_counter_t c_mach_msg_trap_block_fast = 0; ! 81: mach_counter_t c_mach_msg_trap_block_slow = 0; ! 82: mach_counter_t c_mach_msg_trap_block_exc = 0; ! 83: mach_counter_t c_exception_raise_block = 0; ! 84: mach_counter_t c_swtch_block = 0; ! 85: mach_counter_t c_swtch_pri_block = 0; ! 86: mach_counter_t c_thread_switch_block = 0; ! 87: mach_counter_t c_thread_switch_handoff = 0; ! 88: mach_counter_t c_ast_taken_block = 0; ! 89: mach_counter_t c_thread_halt_self_block = 0; ! 90: mach_counter_t c_vm_fault_page_block_busy_user = 0; ! 91: mach_counter_t c_vm_fault_page_block_busy_kernel = 0; ! 92: mach_counter_t c_vm_fault_page_block_backoff_user = 0; ! 93: mach_counter_t c_vm_fault_page_block_backoff_kernel = 0; ! 94: mach_counter_t c_vm_page_wait_block_user = 0; ! 95: mach_counter_t c_vm_page_wait_block_kernel = 0; ! 96: mach_counter_t c_vm_pageout_block = 0; ! 97: mach_counter_t c_vm_pageout_scan_block = 0; ! 98: mach_counter_t c_idle_thread_block = 0; ! 99: mach_counter_t c_idle_thread_handoff = 0; ! 100: mach_counter_t c_sched_thread_block = 0; ! 101: mach_counter_t c_io_done_thread_block = 0; ! 102: mach_counter_t c_net_thread_block = 0; ! 103: mach_counter_t c_reaper_thread_block = 0; ! 104: mach_counter_t c_swapin_thread_block = 0; ! 105: mach_counter_t c_action_thread_block = 0; ! 106: #endif MACH_COUNTERS
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.