1*85ec49f3SAdrian Chadd /*- 2*85ec49f3SAdrian Chadd * Copyright (c) 2005-2007, Joseph Koshy 3*85ec49f3SAdrian Chadd * Copyright (c) 2007 The FreeBSD Foundation 4*85ec49f3SAdrian Chadd * All rights reserved. 5*85ec49f3SAdrian Chadd * 6*85ec49f3SAdrian Chadd * Portions of this software were developed by A. Joseph Koshy under 7*85ec49f3SAdrian Chadd * sponsorship from the FreeBSD Foundation and Google, Inc. 8*85ec49f3SAdrian Chadd * 9*85ec49f3SAdrian Chadd * Redistribution and use in source and binary forms, with or without 10*85ec49f3SAdrian Chadd * modification, are permitted provided that the following conditions 11*85ec49f3SAdrian Chadd * are met: 12*85ec49f3SAdrian Chadd * 1. Redistributions of source code must retain the above copyright 13*85ec49f3SAdrian Chadd * notice, this list of conditions and the following disclaimer. 14*85ec49f3SAdrian Chadd * 2. Redistributions in binary form must reproduce the above copyright 15*85ec49f3SAdrian Chadd * notice, this list of conditions and the following disclaimer in the 16*85ec49f3SAdrian Chadd * documentation and/or other materials provided with the distribution. 17*85ec49f3SAdrian Chadd * 18*85ec49f3SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19*85ec49f3SAdrian Chadd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*85ec49f3SAdrian Chadd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*85ec49f3SAdrian Chadd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22*85ec49f3SAdrian Chadd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23*85ec49f3SAdrian Chadd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24*85ec49f3SAdrian Chadd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25*85ec49f3SAdrian Chadd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26*85ec49f3SAdrian Chadd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27*85ec49f3SAdrian Chadd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28*85ec49f3SAdrian Chadd * SUCH DAMAGE. 29*85ec49f3SAdrian Chadd * 30*85ec49f3SAdrian Chadd * $FreeBSD$ 31*85ec49f3SAdrian Chadd */ 32*85ec49f3SAdrian Chadd 33*85ec49f3SAdrian Chadd #ifndef _PMCSTAT_PL_ANNOTATE_CG_H_ 34*85ec49f3SAdrian Chadd #define _PMCSTAT_PL_ANNOTATE_CG_H_ 35*85ec49f3SAdrian Chadd 36*85ec49f3SAdrian Chadd /* Function prototypes */ 37*85ec49f3SAdrian Chadd void pmcpl_annotate_cg_process( 38*85ec49f3SAdrian Chadd struct pmcstat_process *pp, struct pmcstat_pmcrecord *pmcr, 39*85ec49f3SAdrian Chadd uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu); 40*85ec49f3SAdrian Chadd 41*85ec49f3SAdrian Chadd #endif /* _PMCSTAT_PL_ANNOTATE_CG_H_ */ 42