PAPI 7.1.0.0
Loading...
Searching...
No Matches
pfmlib_coreduo_priv.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 Google, Inc
3 * Contributed by Stephane Eranian <eranian@gmail.com>
4 *
5 * Based on:
6 * Copyright (c) 2006 Hewlett-Packard Development Company, L.P.
7 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13 * of the Software, and to permit persons to whom the Software is furnished to do so,
14 * subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in all
17 * copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
20 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
21 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
24 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26#ifndef __PFMLIB_COREDUO_PRIV_H__
27#define __PFMLIB_COREDUO_PRIV_H__
28
29#define PFMLIB_COREDUO_MAX_UMASK 16
30
31typedef struct {
32 char *pme_uname; /* unit mask name */
33 char *pme_udesc; /* event/umask description */
34 unsigned int pme_ucode; /* unit mask code */
35 unsigned int pme_flags; /* unit mask flags */
37
38typedef struct {
39 char *pme_name; /* event name */
40 char *pme_desc; /* event description */
41 unsigned int pme_code; /* event code */
42 unsigned int pme_numasks; /* number of umasks */
43 unsigned int pme_flags; /* flags */
44 pme_coreduo_umask_t pme_umasks[PFMLIB_COREDUO_MAX_UMASK]; /* umask desc */
46
47/*
48 * pme_flags value (event and unit mask)
49 */
50
51/* event-level constraints */
52#define PFMLIB_COREDUO_CSPEC 0x02 /* requires a core specification */
53#define PFMLIB_COREDUO_PMC0 0x04 /* works only on IA32_PMC0 */
54#define PFMLIB_COREDUO_PMC1 0x08 /* works only on IA32_PMC1 */
55#define PFMLIB_COREDUO_MESI 0x10 /* requires MESI */
56
57#endif /* __PFMLIB_COREDUO_PRIV_H__ */
#define PFMLIB_COREDUO_MAX_UMASK
char * pme_desc
unsigned int pme_flags
unsigned int pme_numasks
unsigned int pme_code
char * pme_name