185ec49f3SAdrian Chadd /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 31de7b4b8SPedro F. Giffuni * 485ec49f3SAdrian Chadd * Copyright (c) 2005-2007, Joseph Koshy 585ec49f3SAdrian Chadd * Copyright (c) 2007 The FreeBSD Foundation 685ec49f3SAdrian Chadd * All rights reserved. 785ec49f3SAdrian Chadd * 852467047SWarner Losh * Copyright (c) 2014 Netflix, Inc. 952467047SWarner Losh * Written by: Adrian Chadd <adrian@FreeBSD.org> 1052467047SWarner Losh * 1185ec49f3SAdrian Chadd * Portions of this software were developed by A. Joseph Koshy under 1285ec49f3SAdrian Chadd * sponsorship from the FreeBSD Foundation and Google, Inc. 1385ec49f3SAdrian Chadd * 1485ec49f3SAdrian Chadd * Redistribution and use in source and binary forms, with or without 1585ec49f3SAdrian Chadd * modification, are permitted provided that the following conditions 1685ec49f3SAdrian Chadd * are met: 1785ec49f3SAdrian Chadd * 1. Redistributions of source code must retain the above copyright 1885ec49f3SAdrian Chadd * notice, this list of conditions and the following disclaimer. 1985ec49f3SAdrian Chadd * 2. Redistributions in binary form must reproduce the above copyright 2085ec49f3SAdrian Chadd * notice, this list of conditions and the following disclaimer in the 2185ec49f3SAdrian Chadd * documentation and/or other materials provided with the distribution. 2285ec49f3SAdrian Chadd * 2385ec49f3SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2485ec49f3SAdrian Chadd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2585ec49f3SAdrian Chadd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2685ec49f3SAdrian Chadd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2785ec49f3SAdrian Chadd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2885ec49f3SAdrian Chadd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2985ec49f3SAdrian Chadd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3085ec49f3SAdrian Chadd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3185ec49f3SAdrian Chadd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3285ec49f3SAdrian Chadd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3385ec49f3SAdrian Chadd * SUCH DAMAGE. 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