10SN/A/*- 212737Sysr * SPDX-License-Identifier: BSD-2-Clause 30SN/A * 40SN/A * Copyright (c) 2009, Fabien Thomas 50SN/A * All rights reserved. 60SN/A * 70SN/A * Redistribution and use in source and binary forms, with or without 80SN/A * modification, are permitted provided that the following conditions 90SN/A * are met: 100SN/A * 1. Redistributions of source code must retain the above copyright 110SN/A * notice, this list of conditions and the following disclaimer. 120SN/A * 2. Redistributions in binary form must reproduce the above copyright 130SN/A * notice, this list of conditions and the following disclaimer in the 140SN/A * documentation and/or other materials provided with the distribution. 150SN/A * 160SN/A * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 170SN/A * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 180SN/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 191472SN/A * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 201472SN/A * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 211472SN/A * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 220SN/A * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 230SN/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 240SN/A * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 251879SN/A * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 268413Spliden * SUCH DAMAGE. 278413Spliden */ 289077Sbrutisso 299727Sbrutisso#ifndef _PMCSTAT_PL_CALLTREE_H_ 301879SN/A#define _PMCSTAT_PL_CALLTREE_H_ 311879SN/A 321879SN/A/* Function prototypes */ 3311857Sdholmesint pmcpl_ct_init(void); 341879SN/Avoid pmcpl_ct_shutdown(FILE *mf); 351879SN/Avoid pmcpl_ct_process( 361879SN/A struct pmcstat_process *pp, struct pmcstat_pmcrecord *pmcr, 371879SN/A uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu); 380SN/Aint pmcpl_ct_topkeypress(int c, void *w); 390SN/Avoid pmcpl_ct_topdisplay(void); 400SN/Aint pmcpl_ct_configure(char *opt); 410SN/A 420SN/A#endif /* _PMCSTAT_PL_CALLTREE_H_ */ 430SN/A