185ec49f3SAdrian Chadd /*- 2*1de7b4b8SPedro F. Giffuni * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3*1de7b4b8SPedro F. Giffuni * 485ec49f3SAdrian Chadd * Copyright (c) 2005-2007, Joseph Koshy 585ec49f3SAdrian Chadd * Copyright (c) 2007 The FreeBSD Foundation 633d6df9aSAdrian Chadd * Copyright (c) 2014, Adrian Chadd, Netflix Inc. 785ec49f3SAdrian Chadd * All rights reserved. 885ec49f3SAdrian Chadd * 985ec49f3SAdrian Chadd * Portions of this software were developed by A. Joseph Koshy under 1085ec49f3SAdrian Chadd * sponsorship from the FreeBSD Foundation and Google, Inc. 1185ec49f3SAdrian Chadd * 1285ec49f3SAdrian Chadd * Redistribution and use in source and binary forms, with or without 1385ec49f3SAdrian Chadd * modification, are permitted provided that the following conditions 1485ec49f3SAdrian Chadd * are met: 1585ec49f3SAdrian Chadd * 1. Redistributions of source code must retain the above copyright 1685ec49f3SAdrian Chadd * notice, this list of conditions and the following disclaimer. 1785ec49f3SAdrian Chadd * 2. Redistributions in binary form must reproduce the above copyright 1885ec49f3SAdrian Chadd * notice, this list of conditions and the following disclaimer in the 1985ec49f3SAdrian Chadd * documentation and/or other materials provided with the distribution. 2085ec49f3SAdrian Chadd * 2185ec49f3SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2285ec49f3SAdrian Chadd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2385ec49f3SAdrian Chadd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2485ec49f3SAdrian Chadd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2585ec49f3SAdrian Chadd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2685ec49f3SAdrian Chadd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2785ec49f3SAdrian Chadd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2885ec49f3SAdrian Chadd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2985ec49f3SAdrian Chadd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3085ec49f3SAdrian Chadd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3185ec49f3SAdrian Chadd * SUCH DAMAGE. 3285ec49f3SAdrian Chadd * 3385ec49f3SAdrian Chadd * $FreeBSD$ 3485ec49f3SAdrian Chadd */ 3585ec49f3SAdrian Chadd 3685ec49f3SAdrian Chadd #ifndef _PMCSTAT_PL_ANNOTATE_CG_H_ 3785ec49f3SAdrian Chadd #define _PMCSTAT_PL_ANNOTATE_CG_H_ 3885ec49f3SAdrian Chadd 3985ec49f3SAdrian Chadd /* Function prototypes */ 4085ec49f3SAdrian Chadd void pmcpl_annotate_cg_process( 4185ec49f3SAdrian Chadd struct pmcstat_process *pp, struct pmcstat_pmcrecord *pmcr, 4285ec49f3SAdrian Chadd uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu); 4385ec49f3SAdrian Chadd 4485ec49f3SAdrian Chadd #endif /* _PMCSTAT_PL_ANNOTATE_CG_H_ */ 45