PAPI 7.1.0.0
Loading...
Searching...
No Matches
pfmlib_core_priv.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2006 Hewlett-Packard Development Company, L.P.
3 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
20 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * This file is part of libpfm, a performance monitoring support library for
23 * applications on Linux/ia64.
24 */
25#ifndef __PFMLIB_CORE_PRIV_H__
26#define __PFMLIB_CORE_PRIV_H__
27
28#define PFMLIB_CORE_MAX_UMASK 32
29
30typedef struct {
31 char *pme_uname; /* unit mask name */
32 char *pme_udesc; /* event/umask description */
33 unsigned int pme_ucode; /* unit mask code */
34 unsigned int pme_flags; /* unit mask flags */
36
37typedef struct {
38 char *pme_name; /* event name */
39 char *pme_desc; /* event description */
40 unsigned int pme_code; /* event code */
41 unsigned int pme_numasks; /* number of umasks */
42 unsigned int pme_flags; /* flags */
43 pme_core_umask_t pme_umasks[PFMLIB_CORE_MAX_UMASK]; /* umask desc */
45
46/*
47 * pme_flags value (event and unit mask)
48 */
49
50/* event or unit-mask level constraints */
51#define PFMLIB_CORE_FIXED0 0x02 /* event supported by FIXED_CTR0, can work on generic counters */
52#define PFMLIB_CORE_FIXED1 0x04 /* event supported by FIXED_CTR1, can work on generic counters */
53#define PFMLIB_CORE_FIXED2_ONLY 0x08 /* works only on FIXED_CTR2 */
54
55/* event-level constraints */
56#define PFMLIB_CORE_UMASK_NCOMBO 0x01 /* unit mask cannot be combined (default: combination ok) */
57
58#define PFMLIB_CORE_CSPEC 0x40 /* requires a core specification */
59#define PFMLIB_CORE_PEBS 0x20 /* support PEBS (precise event) */
60#define PFMLIB_CORE_PMC0 0x10 /* works only on IA32_PMC0 */
61#define PFMLIB_CORE_PMC1 0x80 /* works only on IA32_PMC1 */
62#define PFMLIB_CORE_MESI 0x100 /* requires MESI */
63
64#endif /* __PFMLIB_CORE_PRIV_H__ */
#define PFMLIB_CORE_MAX_UMASK
char * pme_desc
unsigned int pme_numasks
unsigned int pme_code
unsigned int pme_flags
char * pme_name
unsigned int pme_flags
unsigned int pme_ucode