003 File Manager
Current Path:
/usr/src/sys/i386/include
usr
/
src
/
sys
/
i386
/
include
/
📁
..
📄
_align.h
(87 B)
📄
_bus.h
(1.82 KB)
📄
_inttypes.h
(90 B)
📄
_limits.h
(88 B)
📄
_stdint.h
(88 B)
📄
_types.h
(87 B)
📄
acpica_machdep.h
(95 B)
📄
apm_bios.h
(89 B)
📄
apm_segments.h
(1.16 KB)
📄
asm.h
(4.01 KB)
📄
asmacros.h
(8.5 KB)
📄
atomic.h
(27.13 KB)
📄
bootinfo.h
(4.51 KB)
📄
bus.h
(84 B)
📄
bus_dma.h
(1.51 KB)
📄
clock.h
(853 B)
📄
counter.h
(4.78 KB)
📄
cpu.h
(2.99 KB)
📄
cpufunc.h
(15.05 KB)
📄
cputypes.h
(2.64 KB)
📄
cserial.h
(14.25 KB)
📄
db_machdep.h
(2.87 KB)
📄
dump.h
(85 B)
📄
efi.h
(322 B)
📄
elan_mmcr.h
(7.09 KB)
📄
elf.h
(84 B)
📄
endian.h
(87 B)
📄
exec.h
(1.76 KB)
📄
fdt.h
(84 B)
📄
float.h
(86 B)
📄
floatingpoint.h
(2.01 KB)
📄
fpu.h
(87 B)
📄
frame.h
(1.98 KB)
📄
gdb_machdep.h
(1.89 KB)
📄
ieeefp.h
(6.83 KB)
📄
in_cksum.h
(3.98 KB)
📄
intr_machdep.h
(93 B)
📄
iodev.h
(1.81 KB)
📄
iommu.h
(121 B)
📄
kdb.h
(1.85 KB)
📄
limits.h
(1.9 KB)
📄
md_var.h
(3.41 KB)
📄
memdev.h
(1.6 KB)
📄
metadata.h
(89 B)
📄
minidump.h
(1.71 KB)
📄
mp_watchdog.h
(1.53 KB)
📄
nexusvar.h
(1.76 KB)
📄
npx.h
(3.39 KB)
📄
ofw_machdep.h
(92 B)
📄
param.h
(5.17 KB)
📁
pc
📄
pcb.h
(3.61 KB)
📄
pcb_ext.h
(1.88 KB)
📄
pci_cfgreg.h
(91 B)
📄
pcpu.h
(7.63 KB)
📄
pcpu_aux.h
(2.3 KB)
📄
perfmon.h
(7.25 KB)
📄
pmap.h
(9.9 KB)
📄
pmap_base.h
(5.33 KB)
📄
pmap_nopae.h
(3.62 KB)
📄
pmap_pae.h
(5.18 KB)
📄
pmc_mdep.h
(5.51 KB)
📄
ppireg.h
(1.88 KB)
📄
proc.h
(2.92 KB)
📄
procctl.h
(88 B)
📄
profile.h
(5.53 KB)
📄
psl.h
(84 B)
📄
ptrace.h
(87 B)
📄
pvclock.h
(88 B)
📄
reg.h
(84 B)
📄
reloc.h
(2.26 KB)
📄
resource.h
(1.93 KB)
📄
runq.h
(1.85 KB)
📄
segments.h
(3.59 KB)
📄
setjmp.h
(87 B)
📄
sf_buf.h
(1.62 KB)
📄
sigframe.h
(2.9 KB)
📄
signal.h
(2.28 KB)
📄
smapi.h
(2.57 KB)
📄
smp.h
(1.16 KB)
📄
speaker.h
(291 B)
📄
specialreg.h
(91 B)
📄
stack.h
(85 B)
📄
stdarg.h
(87 B)
📄
sysarch.h
(88 B)
📄
timerreg.h
(2.05 KB)
📄
trap.h
(85 B)
📄
tss.h
(3.13 KB)
📄
ucontext.h
(2.34 KB)
📄
vdso.h
(85 B)
📄
vm.h
(2.02 KB)
📄
vm86.h
(4.53 KB)
📄
vmparam.h
(7.59 KB)
📁
xen
Editing: perfmon.h
/*- * Copyright 1996 Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby * granted, provided that both the above copyright notice and this * permission notice appear in all copies, that both the above * copyright notice and this permission notice appear in all * supporting documentation, and that the name of M.I.T. not be used * in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. M.I.T. makes * no representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied * warranty. * * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''. M.I.T. DISCLAIMS * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ /* * Interface to performance-monitoring counters for Intel Pentium and * Pentium Pro CPUs. */ #ifndef _MACHINE_PERFMON_H_ #define _MACHINE_PERFMON_H_ #ifndef _KERNEL #include <sys/types.h> #endif #include <sys/ioccom.h> #define NPMC 2 #define PMIOSETUP _IOW('5', 1, struct pmc) #define PMIOGET _IOWR('5', 7, struct pmc) #define PMIOSTART _IOW('5', 2, int) #define PMIOSTOP _IOW('5', 3, int) #define PMIOREAD _IOWR('5', 4, struct pmc_data) #define PMIORESET _IOW('5', 5, int) #define PMIOTSTAMP _IOR('5', 6, struct pmc_tstamp) struct pmc { int pmc_num; union { struct { unsigned char pmcus_event; unsigned char pmcus_unit; unsigned char pmcus_flags; unsigned char pmcus_mask; } pmcu_s; unsigned int pmcu_val; } pmc_pmcu; }; #define PMC_ALL (-1) #define pmc_event pmc_pmcu.pmcu_s.pmcus_event #define pmc_unit pmc_pmcu.pmcu_s.pmcus_unit #define pmc_flags pmc_pmcu.pmcu_s.pmcus_flags #define pmc_mask pmc_pmcu.pmcu_s.pmcus_mask #define pmc_val pmc_pmcu.pmcu_val #define PMCF_USR 0x01 /* count events in user mode */ #define PMCF_OS 0x02 /* count events in kernel mode */ #define PMCF_E 0x04 /* use edge-detection mode */ #define PMCF_PC 0x08 /* PMx output pin control */ #define PMCF_INT 0x10 /* APIC interrupt enable (do not use) */ #define PMCF_EN 0x40 /* enable counters */ #define PMCF_INV 0x80 /* invert counter mask comparison */ #define PMCF_SYS_FLAGS (PMCF_INT | PMCF_EN) /* user cannot set */ struct pmc_data { int pmcd_num; quad_t pmcd_value; }; struct pmc_tstamp { int pmct_rate; quad_t pmct_value; }; #ifndef _KERNEL #define _PATH_PERFMON "/dev/perfmon" #else /* * Intra-kernel interface to performance monitoring counters */ void perfmon_init(void); int perfmon_avail(void); int perfmon_setup(int, unsigned int); int perfmon_get(int, unsigned int *); int perfmon_fini(int); int perfmon_start(int); int perfmon_stop(int); int perfmon_read(int, quad_t *); int perfmon_reset(int); #endif /* _KERNEL */ /* * Pentium Pro performance counters, from Appendix B. */ /* Data Cache Unit */ #define PMC6_DATA_MEM_REFS 0x43 #define PMC6_DCU_LINES_IN 0x45 #define PMC6_DCU_M_LINES_IN 0x46 #define PMC6_DCU_M_LINES_OUT 0x47 #define PMC6_DCU_MISS_OUTSTANDING 0x48 /* Instruction Fetch Unit */ #define PMC6_IFU_IFETCH 0x80 #define PMC6_IFU_IFETCH_MISS 0x81 #define PMC6_ITLB_MISS 0x85 #define PMC6_IFU_MEM_STALL 0x86 #define PMC6_ILD_STALL 0x87 /* L2 Cache */ #define PMC6_L2_IFETCH 0x28 /* MESI */ #define PMC6_L2_LD 0x29 /* MESI */ #define PMC6_L2_ST 0x2a /* MESI */ #define PMC6_L2_LINES_IN 0x24 #define PMC6_L2_LINES_OUT 0x26 #define PMC6_L2_M_LINES_INM 0x25 #define PMC6_L2_M_LINES_OUTM 0x27 #define PMC6_L2_RQSTS 0x2e /* MESI */ #define PMC6_L2_ADS 0x21 #define PMC6_L2_DBUS_BUSY 0x22 #define PMC6_L2_DBUS_BUSY_RD 0x23 /* External Bus Logic */ #define PMC6_BUS_DRDY_CLOCKS 0x62 #define PMC6_BUS_LOCK_CLOCKS 0x63 #define PMC6_BUS_REQ_OUTSTANDING 0x60 #define PMC6_BUS_TRAN_BRD 0x65 #define PMC6_BUS_TRAN_RFO 0x66 #define PMC6_BUS_TRAN_WB 0x67 #define PMC6_BUS_TRAN_IFETCH 0x68 #define PMC6_BUS_TRAN_INVAL 0x69 #define PMC6_BUS_TRAN_PWR 0x6a #define PMC6_BUS_TRAN_P 0x6b #define PMC6_BUS_TRAN_IO 0x6c #define PMC6_BUS_TRAN_DEF 0x6d #define PMC6_BUS_TRAN_BURST 0x6e #define PMC6_BUS_TRAN_ANY 0x70 #define PMC6_BUS_TRAN_MEM 0x6f #define PMC6_BUS_DATA_RCV 0x64 #define PMC6_BUS_BNR_DRV 0x61 #define PMC6_BUS_HIT_DRV 0x7a #define PMC6_BUS_HITM_DRV 0x7b #define PMC6_BUS_SNOOP_STALL 0x7e /* Floating Point Unit */ #define PMC6_FLOPS 0xc1 /* counter 0 only */ #define PMC6_FP_COMP_OPS_EXE 0x10 /* counter 0 only */ #define PMC6_FP_ASSIST 0x11 /* counter 1 only */ #define PMC6_MUL 0x12 /* counter 1 only */ #define PMC6_DIV 0x13 /* counter 1 only */ #define PMC6_CYCLES_DIV_BUSY 0x14 /* counter 0 only */ /* Memory Ordering */ #define PMC6_LD_BLOCKS 0x03 #define PMC6_SB_DRAINS 0x04 #define PMC6_MISALIGN_MEM_REF 0x05 /* Instruction Decoding and Retirement */ #define PMC6_INST_RETIRED 0xc0 #define PMC6_UOPS_RETIRED 0xc2 #define PMC6_INST_DECODER 0xd0 /* (sic) */ /* Interrupts */ #define PMC6_HW_INT_RX 0xc8 #define PMC6_CYCLES_INT_MASKED 0xc6 #define PMC6_CYCLES_INT_PENDING_AND_MASKED 0xc7 /* Branches */ #define PMC6_BR_INST_RETIRED 0xc4 #define PMC6_BR_MISS_PRED_RETIRED 0xc5 #define PMC6_BR_TAKEN_RETIRED 0xc9 #define PMC6_BR_MISS_PRED_TAKEN_RET 0xca #define PMC6_BR_INST_DECODED 0xe0 #define PMC6_BTB_MISSES 0xe2 #define PMC6_BR_BOGUS 0xe4 #define PMC6_BACLEARS 0xe6 /* Stalls */ #define PMC6_RESOURCE_STALLS 0xa2 #define PMC6_PARTIAL_RAT_STALLS 0xd2 /* Segment Register Loads */ #define PMC6_SEGMENT_REG_LOADS 0x06 /* Clocks */ #define PMC6_CPU_CLK_UNHALTED 0x79 /* * Pentium Performance Counters * This list comes from the Harvard people, not Intel. */ #define PMC5_DATA_READ 0 #define PMC5_DATA_WRITE 1 #define PMC5_DATA_TLB_MISS 2 #define PMC5_DATA_READ_MISS 3 #define PMC5_DATA_WRITE_MISS 4 #define PMC5_WRITE_M_E 5 #define PMC5_DATA_LINES_WBACK 6 #define PMC5_DATA_CACHE_SNOOP 7 #define PMC5_DATA_CACHE_SNOOP_HIT 8 #define PMC5_MEM_ACCESS_BOTH 9 #define PMC5_BANK_CONFLICTS 10 #define PMC5_MISALIGNED_DATA 11 #define PMC5_INST_READ 12 #define PMC5_INST_TLB_MISS 13 #define PMC5_INST_CACHE_MISS 14 #define PMC5_SEGMENT_REG_LOAD 15 #define PMC5_BRANCHES 18 #define PMC5_BTB_HITS 19 #define PMC5_BRANCH_TAKEN 20 #define PMC5_PIPELINE_FLUSH 21 #define PMC5_INST_EXECUTED 22 #define PMC5_INST_EXECUTED_V 23 #define PMC5_BUS_UTILIZATION 24 #define PMC5_WRITE_BACKUP_STALL 25 #define PMC5_DATA_READ_STALL 26 #define PMC5_WRITE_E_M_STALL 27 #define PMC5_LOCKED_BUS 28 #define PMC5_IO_CYCLE 29 #define PMC5_NONCACHE_MEMORY 30 #define PMC5_ADDR_GEN_INTERLOCK 31 #define PMC5_FLOPS 34 #define PMC5_BP0_MATCH 35 #define PMC5_BP1_MATCH 36 #define PMC5_BP2_MATCH 37 #define PMC5_BP3_MATCH 38 #define PMC5_HW_INTR 39 #define PMC5_DATA_RW 40 #define PMC5_DATA_RW_MISS 41 #endif /* !_MACHINE_PERFMON_H_ */
Upload File
Create Folder