pmc.h (153072) | pmc.h (157144) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2003-2005, Joseph Koshy | 2 * Copyright (c) 2003-2006, Joseph Koshy |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/sys/pmc.h 153072 2005-12-04 02:12:43Z ru $ | 26 * $FreeBSD: head/sys/sys/pmc.h 157144 2006-03-26 12:20:54Z jkoshy $ |
27 */ 28 29#ifndef _SYS_PMC_H_ 30#define _SYS_PMC_H_ 31 32#include <dev/hwpmc/pmc_events.h> 33 34#include <machine/pmc_mdep.h> --- 10 unchanged lines hidden (view full) --- 45 * the ABI occurs that older clients will not be able to handle. 46 * 47 * Minor numbers are incremented when a backwards compatible change 48 * occurs that allows older correct programs to run unchanged. For 49 * example, when support for a new PMC type is added. 50 * 51 * The patch version is incremented for every bug fix. 52 */ | 27 */ 28 29#ifndef _SYS_PMC_H_ 30#define _SYS_PMC_H_ 31 32#include <dev/hwpmc/pmc_events.h> 33 34#include <machine/pmc_mdep.h> --- 10 unchanged lines hidden (view full) --- 45 * the ABI occurs that older clients will not be able to handle. 46 * 47 * Minor numbers are incremented when a backwards compatible change 48 * occurs that allows older correct programs to run unchanged. For 49 * example, when support for a new PMC type is added. 50 * 51 * The patch version is incremented for every bug fix. 52 */ |
53#define PMC_VERSION_MAJOR 0x01 54#define PMC_VERSION_MINOR 0x02 55#define PMC_VERSION_PATCH 0x0003 | 53#define PMC_VERSION_MAJOR 0x02 54#define PMC_VERSION_MINOR 0x00 55#define PMC_VERSION_PATCH 0x0000 |
56 57#define PMC_VERSION (PMC_VERSION_MAJOR << 24 | \ 58 PMC_VERSION_MINOR << 16 | PMC_VERSION_PATCH) 59 60/* 61 * Kinds of CPUs known 62 */ 63 --- 469 unchanged lines hidden (view full) --- 533#include <sys/malloc.h> 534#include <sys/sysctl.h> 535 536#define PMC_REQUEST_POOL_SIZE 32 537#define PMC_HASH_SIZE 16 538#define PMC_MTXPOOL_SIZE 32 539#define PMC_LOG_BUFFER_SIZE 4 540#define PMC_NLOGBUFFERS 16 | 56 57#define PMC_VERSION (PMC_VERSION_MAJOR << 24 | \ 58 PMC_VERSION_MINOR << 16 | PMC_VERSION_PATCH) 59 60/* 61 * Kinds of CPUs known 62 */ 63 --- 469 unchanged lines hidden (view full) --- 533#include <sys/malloc.h> 534#include <sys/sysctl.h> 535 536#define PMC_REQUEST_POOL_SIZE 32 537#define PMC_HASH_SIZE 16 538#define PMC_MTXPOOL_SIZE 32 539#define PMC_LOG_BUFFER_SIZE 4 540#define PMC_NLOGBUFFERS 16 |
541#define PMC_NSAMPLES 16 | 541#define PMC_NSAMPLES 32 |
542 543#define PMC_SYSCTL_NAME_PREFIX "kern." PMC_MODULE_NAME "." 544 545/* 546 * Locking keys 547 * 548 * (b) - pmc_bufferlist_mtx (spin lock) 549 * (k) - pmc_kthread_mtx (sleep lock) --- 453 unchanged lines hidden --- | 542 543#define PMC_SYSCTL_NAME_PREFIX "kern." PMC_MODULE_NAME "." 544 545/* 546 * Locking keys 547 * 548 * (b) - pmc_bufferlist_mtx (spin lock) 549 * (k) - pmc_kthread_mtx (sleep lock) --- 453 unchanged lines hidden --- |