PAPI 7.1.0.0
Loading...
Searching...
No Matches
libpfms.h
Go to the documentation of this file.
1/*
2 * libpfms.h - header file for libpfms - a helper library for perfmon SMP monitoring
3 *
4 * Copyright (c) 2006 Hewlett-Packard Development Company, L.P.
5 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
11 * of the Software, and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in all
15 * copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
18 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
19 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
22 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24#ifndef __LIBPFMS_H__
25#define __LIBPFMS_H__
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31typedef int (*pfms_ovfl_t)(pfarg_msg_t *msg);
32
33int pfms_initialize(void);
34int pfms_create(uint64_t *cpu_list, size_t n, pfarg_ctx_t *ctx, pfms_ovfl_t *ovfl, void **desc);
35int pfms_write_pmcs(void *desc, pfarg_pmc_t *pmcs, uint32_t n);
36int pfms_write_pmds(void *desc, pfarg_pmd_t *pmds, uint32_t n);
37int pfms_read_pmds(void *desc, pfarg_pmd_t *pmds, uint32_t n);
38int pfms_start(void *desc);
39int pfms_stop(void *desc);
40int pfms_close(void *desc);
41int pfms_unload(void *desc);
42int pfms_load(void *desc);
43
44#ifdef __cplusplus /* extern C */
45}
46#endif
47#endif /* __LIBPFMS_H__ */
int pfms_write_pmcs(void *desc, pfarg_pmc_t *pmcs, uint32_t n)
Definition: libpfms.c:596
int pfms_unload(void *desc)
Definition: libpfms.c:578
int pfms_write_pmds(void *desc, pfarg_pmd_t *pmds, uint32_t n)
Definition: libpfms.c:602
int pfms_create(uint64_t *cpu_list, size_t n, pfarg_ctx_t *ctx, pfms_ovfl_t *ovfl, void **desc)
Definition: libpfms.c:327
int pfms_stop(void *desc)
Definition: libpfms.c:590
int pfms_load(void *desc)
Definition: libpfms.c:468
int pfms_close(void *desc)
Definition: libpfms.c:608
int pfms_initialize(void)
Definition: libpfms.c:300
int pfms_read_pmds(void *desc, pfarg_pmd_t *pmds, uint32_t n)
Definition: libpfms.c:660
int pfms_start(void *desc)
Definition: libpfms.c:584
int(* pfms_ovfl_t)(pfarg_msg_t *msg)
Definition: libpfms.h:31
int
Definition: sde_internal.h:89