Deleted Added
full compact
pmc.h (197706) pmc.h (201021)
1/*-
2 * Copyright (c) 2003-2008, Joseph Koshy
3 * Copyright (c) 2007 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * Portions of this software were developed by A. Joseph Koshy under
7 * sponsorship from the FreeBSD Foundation and Google, Inc.
8 *

--- 13 unchanged lines hidden (view full) ---

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
1/*-
2 * Copyright (c) 2003-2008, Joseph Koshy
3 * Copyright (c) 2007 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * Portions of this software were developed by A. Joseph Koshy under
7 * sponsorship from the FreeBSD Foundation and Google, Inc.
8 *

--- 13 unchanged lines hidden (view full) ---

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/sys/pmc.h 197706 2009-10-02 11:14:12Z rpaulo $
30 * $FreeBSD: head/sys/sys/pmc.h 201021 2009-12-26 13:58:52Z jkoshy $
31 */
32
33#ifndef _SYS_PMC_H_
34#define _SYS_PMC_H_
35
36#include <dev/hwpmc/pmc_events.h>
37
38#include <machine/pmc_mdep.h>

--- 708 unchanged lines hidden (view full) ---

747 TAILQ_HEAD(, pmclog_buffer) po_logbuffers; /* (o) logbuffer list */
748 struct mtx po_mtx; /* spin lock for (o) */
749 struct proc *po_owner; /* owner proc */
750 uint32_t po_flags; /* (k) flags PMC_PO_* */
751 struct proc *po_kthread; /* (k) helper kthread */
752 struct pmclog_buffer *po_curbuf; /* current log buffer */
753 struct file *po_file; /* file reference */
754 int po_error; /* recorded error */
31 */
32
33#ifndef _SYS_PMC_H_
34#define _SYS_PMC_H_
35
36#include <dev/hwpmc/pmc_events.h>
37
38#include <machine/pmc_mdep.h>

--- 708 unchanged lines hidden (view full) ---

747 TAILQ_HEAD(, pmclog_buffer) po_logbuffers; /* (o) logbuffer list */
748 struct mtx po_mtx; /* spin lock for (o) */
749 struct proc *po_owner; /* owner proc */
750 uint32_t po_flags; /* (k) flags PMC_PO_* */
751 struct proc *po_kthread; /* (k) helper kthread */
752 struct pmclog_buffer *po_curbuf; /* current log buffer */
753 struct file *po_file; /* file reference */
754 int po_error; /* recorded error */
755 int po_sscount; /* # SS PMCs owned */
755 short po_sscount; /* # SS PMCs owned */
756 short po_logprocmaps; /* global mappings done */
756};
757
758#define PMC_PO_OWNS_LOGFILE 0x00000001 /* has a log file */
759#define PMC_PO_IN_FLUSH 0x00000010 /* in the middle of a flush */
760#define PMC_PO_INITIAL_MAPPINGS_DONE 0x00000020
761
762/*
763 * struct pmc_hw -- describe the state of the PMC hardware

--- 295 unchanged lines hidden ---
757};
758
759#define PMC_PO_OWNS_LOGFILE 0x00000001 /* has a log file */
760#define PMC_PO_IN_FLUSH 0x00000010 /* in the middle of a flush */
761#define PMC_PO_INITIAL_MAPPINGS_DONE 0x00000020
762
763/*
764 * struct pmc_hw -- describe the state of the PMC hardware

--- 295 unchanged lines hidden ---