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