1203790Sfabient/*-
2203790Sfabient * Copyright (c) 2005-2007, Joseph Koshy
3203790Sfabient * Copyright (c) 2007 The FreeBSD Foundation
4203790Sfabient * All rights reserved.
5203790Sfabient *
6203790Sfabient * Portions of this software were developed by A. Joseph Koshy under
7203790Sfabient * sponsorship from the FreeBSD Foundation and Google, Inc.
8203790Sfabient *
9203790Sfabient * Redistribution and use in source and binary forms, with or without
10203790Sfabient * modification, are permitted provided that the following conditions
11203790Sfabient * are met:
12203790Sfabient * 1. Redistributions of source code must retain the above copyright
13203790Sfabient *    notice, this list of conditions and the following disclaimer.
14203790Sfabient * 2. Redistributions in binary form must reproduce the above copyright
15203790Sfabient *    notice, this list of conditions and the following disclaimer in the
16203790Sfabient *    documentation and/or other materials provided with the distribution.
17203790Sfabient *
18203790Sfabient * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19203790Sfabient * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20203790Sfabient * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21203790Sfabient * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22203790Sfabient * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23203790Sfabient * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24203790Sfabient * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25203790Sfabient * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26203790Sfabient * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27203790Sfabient * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28203790Sfabient * SUCH DAMAGE.
29203790Sfabient *
30203790Sfabient * $FreeBSD$
31203790Sfabient */
32203790Sfabient
33203790Sfabient#ifndef	_PMCSTAT_PL_ANNOTATE_H_
34203790Sfabient#define	_PMCSTAT_PL_ANNOTATE_H_
35203790Sfabient
36203790Sfabient/* Function prototypes */
37203790Sfabientvoid pmcpl_annotate_process(
38203790Sfabient    struct pmcstat_process *pp, struct pmcstat_pmcrecord *pmcr,
39203790Sfabient    uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
40203790Sfabient
41203790Sfabient#endif	/* _PMCSTAT_PL_ANNOTATE_H_ */
42