1262424Sadrian/*-
2262424Sadrian * Copyright (c) 2005-2007, Joseph Koshy
3262424Sadrian * Copyright (c) 2007 The FreeBSD Foundation
4265604Sscottl * Copyright (c) 2014, Adrian Chadd, Netflix Inc.
5262424Sadrian * All rights reserved.
6262424Sadrian *
7262424Sadrian * Portions of this software were developed by A. Joseph Koshy under
8262424Sadrian * sponsorship from the FreeBSD Foundation and Google, Inc.
9262424Sadrian *
10262424Sadrian * Redistribution and use in source and binary forms, with or without
11262424Sadrian * modification, are permitted provided that the following conditions
12262424Sadrian * are met:
13262424Sadrian * 1. Redistributions of source code must retain the above copyright
14262424Sadrian *    notice, this list of conditions and the following disclaimer.
15262424Sadrian * 2. Redistributions in binary form must reproduce the above copyright
16262424Sadrian *    notice, this list of conditions and the following disclaimer in the
17262424Sadrian *    documentation and/or other materials provided with the distribution.
18262424Sadrian *
19262424Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20262424Sadrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21262424Sadrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22262424Sadrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23262424Sadrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24262424Sadrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25262424Sadrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26262424Sadrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27262424Sadrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28262424Sadrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29262424Sadrian * SUCH DAMAGE.
30262424Sadrian *
31262424Sadrian * $FreeBSD$
32262424Sadrian */
33262424Sadrian
34262424Sadrian#ifndef	_PMCSTAT_PL_ANNOTATE_CG_H_
35262424Sadrian#define	_PMCSTAT_PL_ANNOTATE_CG_H_
36262424Sadrian
37262424Sadrian/* Function prototypes */
38262424Sadrianvoid pmcpl_annotate_cg_process(
39262424Sadrian    struct pmcstat_process *pp, struct pmcstat_pmcrecord *pmcr,
40262424Sadrian    uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
41262424Sadrian
42262424Sadrian#endif	/* _PMCSTAT_PL_ANNOTATE_CG_H_ */
43