pmc.h (145256) | pmc.h (145774) |
---|---|
1/*- 2 * Copyright (c) 2003,2004 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2003,2004 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libpmc/pmc.h 145256 2005-04-19 04:01:25Z jkoshy $ | 26 * $FreeBSD: head/lib/libpmc/pmc.h 145774 2005-05-01 14:11:49Z jkoshy $ |
27 */ 28 29#ifndef _PMC_H_ 30#define _PMC_H_ 31 32#include <sys/pmc.h> 33 34/* 35 * Prototypes 36 */ 37 38int pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags, 39 int _cpu, pmc_id_t *_pmcid); 40int pmc_attach(pmc_id_t _pmcid, pid_t _pid); | 27 */ 28 29#ifndef _PMC_H_ 30#define _PMC_H_ 31 32#include <sys/pmc.h> 33 34/* 35 * Prototypes 36 */ 37 38int pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags, 39 int _cpu, pmc_id_t *_pmcid); 40int pmc_attach(pmc_id_t _pmcid, pid_t _pid); |
41int pmc_capabilities(pmc_id_t _pmc, uint32_t *_caps); |
|
41int pmc_configure_logfile(int _fd); 42int pmc_detach(pmc_id_t _pmcid, pid_t _pid); 43int pmc_disable(int _cpu, int _pmc); 44int pmc_enable(int _cpu, int _pmc); 45int pmc_get_driver_stats(struct pmc_op_getdriverstats *_gms); 46int pmc_init(void); 47int pmc_read(pmc_id_t _pmc, pmc_value_t *_value); 48int pmc_release(pmc_id_t _pmc); 49int pmc_rw(pmc_id_t _pmc, pmc_value_t _newvalue, pmc_value_t *_oldvalue); 50int pmc_set(pmc_id_t _pmc, pmc_value_t _value); 51int pmc_start(pmc_id_t _pmc); 52int pmc_stop(pmc_id_t _pmc); | 42int pmc_configure_logfile(int _fd); 43int pmc_detach(pmc_id_t _pmcid, pid_t _pid); 44int pmc_disable(int _cpu, int _pmc); 45int pmc_enable(int _cpu, int _pmc); 46int pmc_get_driver_stats(struct pmc_op_getdriverstats *_gms); 47int pmc_init(void); 48int pmc_read(pmc_id_t _pmc, pmc_value_t *_value); 49int pmc_release(pmc_id_t _pmc); 50int pmc_rw(pmc_id_t _pmc, pmc_value_t _newvalue, pmc_value_t *_oldvalue); 51int pmc_set(pmc_id_t _pmc, pmc_value_t _value); 52int pmc_start(pmc_id_t _pmc); 53int pmc_stop(pmc_id_t _pmc); |
54int pmc_width(pmc_id_t _pmc, uint32_t *_width); |
|
53int pmc_write(pmc_id_t _pmc, pmc_value_t _value); 54 55int pmc_ncpu(void); 56int pmc_npmc(int _cpu); 57int pmc_cpuinfo(const struct pmc_op_getcpuinfo **_cpu_info); 58int pmc_pmcinfo(int _cpu, struct pmc_op_getpmcinfo **_pmc_info); 59 60const char *pmc_name_of_capability(uint32_t _c); --- 19 unchanged lines hidden --- | 55int pmc_write(pmc_id_t _pmc, pmc_value_t _value); 56 57int pmc_ncpu(void); 58int pmc_npmc(int _cpu); 59int pmc_cpuinfo(const struct pmc_op_getcpuinfo **_cpu_info); 60int pmc_pmcinfo(int _cpu, struct pmc_op_getpmcinfo **_pmc_info); 61 62const char *pmc_name_of_capability(uint32_t _c); --- 19 unchanged lines hidden --- |