The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mach/pc_sample.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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  Software.Distribution@CS.CMU.EDU
   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 /*
   28  * HISTORY
   29  * $Log:        pc_sample.h,v $
   30  * Revision 2.3  93/08/03  12:31:37  mrt
   31  *      Defined some flavors for sampling.
   32  *      [93/07/30  10:26:03  bershad]
   33  * 
   34  * Revision 2.2  93/01/24  13:20:55  danner
   35  *      Added sample_control_t.
   36  *      [93/01/15            rvb]
   37  * 
   38  *      File:   mach/pc_sample.h
   39  *      Author: Brian Bershad
   40  *      Date:   January 1992
   41  *
   42  *      Mach external interface definitions -- file two
   43  *
   44  */
   45 
   46 #ifndef _MACH_PC_SAMPLE_H_
   47 #define _MACH_PC_SAMPLE_H_
   48 
   49 #include <mach/machine/vm_types.h>
   50 
   51 
   52 
   53 typedef unsigned sampled_pc_flavor_t;
   54 
   55 
   56 #define SAMPLED_PC_PERIODIC                     0x1     /* default */
   57 
   58 
   59 #define SAMPLED_PC_VM_ZFILL_FAULTS              0x10
   60 #define SAMPLED_PC_VM_REACTIVATION_FAULTS       0x20
   61 #define SAMPLED_PC_VM_PAGEIN_FAULTS             0x40
   62 #define SAMPLED_PC_VM_COW_FAULTS                0x80
   63 #define SAMPLED_PC_VM_FAULTS_ANY                0x100
   64 #define SAMPLED_PC_VM_FAULTS            \
   65                         (SAMPLED_PC_VM_ZFILL_FAULTS | \
   66                          SAMPLED_PC_VM_REACTIVATION_FAULTS |\
   67                          SAMPLED_PC_VM_PAGEIN_FAULTS |\
   68                          SAMPLED_PC_VM_COW_FAULTS )
   69 
   70 
   71 
   72 
   73 /*
   74  *      Control structure.
   75  */
   76 
   77 
   78 
   79 typedef struct sample_control {
   80     vm_offset_t         buffer;
   81     unsigned int        seqno;
   82     sampled_pc_flavor_t sampletypes;
   83 } sample_control_t;
   84 
   85 
   86 /*
   87  *      Definitions for the PC sampling interface.
   88  */
   89 
   90 typedef struct sampled_pc {
   91     unsigned int        id;
   92     vm_offset_t         pc;
   93     sampled_pc_flavor_t sampletype;
   94 } sampled_pc_t;
   95 
   96 typedef sampled_pc_t *sampled_pc_array_t;
   97 typedef unsigned sampled_pc_seqno_t;
   98 
   99 
  100 #ifdef KERNEL
  101 extern void take_pc_sample();
  102 #endif KERNEL
  103 
  104 
  105 #endif  _MACH_PC_SAMPLE_H_

Cache object: 29cf6cdfcf2246bbdb5b3637fe0d3444


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.