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