Annotation of OSKit-Mach/include/mach/pc_sample.h, revision 1.1

1.1     ! root        1: /* 
        !             2:  * Mach Operating System
        !             3:  * Copyright (c) 1993,1992 Carnegie Mellon University
        !             4:  * All Rights Reserved.
        !             5:  * 
        !             6:  * Permission to use, copy, modify and distribute this software and its
        !             7:  * documentation is hereby granted, provided that both the copyright
        !             8:  * notice and this permission notice appear in all copies of the
        !             9:  * software, derivative works or modified versions, and any portions
        !            10:  * thereof, and that both notices appear in supporting documentation.
        !            11:  * 
        !            12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
        !            13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
        !            14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
        !            15:  * 
        !            16:  * Carnegie Mellon requests users of this software to return to
        !            17:  * 
        !            18:  *  Software Distribution Coordinator  or  [email protected]
        !            19:  *  School of Computer Science
        !            20:  *  Carnegie Mellon University
        !            21:  *  Pittsburgh PA 15213-3890
        !            22:  * 
        !            23:  * any improvements or extensions that they make and grant Carnegie Mellon
        !            24:  * the rights to redistribute these changes.
        !            25:  */
        !            26: 
        !            27: #ifndef        _MACH_PC_SAMPLE_H_
        !            28: #define _MACH_PC_SAMPLE_H_
        !            29: 
        !            30: #include <mach/machine/vm_types.h>
        !            31: 
        !            32: typedef natural_t      sampled_pc_flavor_t;
        !            33: 
        !            34: 
        !            35: #define SAMPLED_PC_PERIODIC                    0x1     /* default */
        !            36: 
        !            37: 
        !            38: #define SAMPLED_PC_VM_ZFILL_FAULTS             0x10
        !            39: #define SAMPLED_PC_VM_REACTIVATION_FAULTS      0x20
        !            40: #define SAMPLED_PC_VM_PAGEIN_FAULTS            0x40
        !            41: #define SAMPLED_PC_VM_COW_FAULTS               0x80
        !            42: #define SAMPLED_PC_VM_FAULTS_ANY               0x100
        !            43: #define SAMPLED_PC_VM_FAULTS           \
        !            44:                        (SAMPLED_PC_VM_ZFILL_FAULTS | \
        !            45:                         SAMPLED_PC_VM_REACTIVATION_FAULTS |\
        !            46:                         SAMPLED_PC_VM_PAGEIN_FAULTS |\
        !            47:                         SAMPLED_PC_VM_COW_FAULTS )
        !            48: 
        !            49: 
        !            50: 
        !            51: 
        !            52: /*
        !            53:  *     Definitions for the PC sampling interface.
        !            54:  */
        !            55: 
        !            56: typedef struct sampled_pc {
        !            57:     natural_t          id;
        !            58:     vm_offset_t                pc;
        !            59:     sampled_pc_flavor_t sampletype;
        !            60: } sampled_pc_t;
        !            61: 
        !            62: typedef sampled_pc_t *sampled_pc_array_t;
        !            63: typedef unsigned int sampled_pc_seqno_t;
        !            64: 
        !            65: 
        !            66: #endif /* _MACH_PC_SAMPLE_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.