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
31
typedef
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 */
36
}
pme_coreduo_umask_t
;
37
38
typedef
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 */
45
}
pme_coreduo_entry_t
;
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__ */
PFMLIB_COREDUO_MAX_UMASK
#define PFMLIB_COREDUO_MAX_UMASK
Definition:
pfmlib_coreduo_priv.h:29
pme_coreduo_entry_t
Definition:
pfmlib_coreduo_priv.h:38
pme_coreduo_entry_t::pme_desc
char * pme_desc
Definition:
pfmlib_coreduo_priv.h:40
pme_coreduo_entry_t::pme_flags
unsigned int pme_flags
Definition:
pfmlib_coreduo_priv.h:43
pme_coreduo_entry_t::pme_numasks
unsigned int pme_numasks
Definition:
pfmlib_coreduo_priv.h:42
pme_coreduo_entry_t::pme_code
unsigned int pme_code
Definition:
pfmlib_coreduo_priv.h:41
pme_coreduo_entry_t::pme_name
char * pme_name
Definition:
pfmlib_coreduo_priv.h:39
pme_coreduo_umask_t
Definition:
pfmlib_coreduo_priv.h:31
pme_coreduo_umask_t::pme_ucode
unsigned int pme_ucode
Definition:
pfmlib_coreduo_priv.h:34
pme_coreduo_umask_t::pme_flags
unsigned int pme_flags
Definition:
pfmlib_coreduo_priv.h:35
pme_coreduo_umask_t::pme_udesc
char * pme_udesc
Definition:
pfmlib_coreduo_priv.h:33
pme_coreduo_umask_t::pme_uname
char * pme_uname
Definition:
pfmlib_coreduo_priv.h:32
src
libperfnec
lib
pfmlib_coreduo_priv.h
Generated on Wed Dec 20 2023 18:12:52 for PAPI by
1.9.6