PAPI
7.1.0.0
Loading...
Searching...
No Matches
pfmlib_i386_p6_priv.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005-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.
24
*/
25
#ifndef __PFMLIB_I386_P6_PRIV_H__
26
#define __PFMLIB_I386_P6_PRIV_H__
27
28
#define PFMLIB_I386_P6_MAX_UMASK 16
29
30
typedef
struct
{
31
char
*
pme_uname
;
/* unit mask name */
32
char
*
pme_udesc
;
/* event/umask description */
33
unsigned
int
pme_ucode
;
/* unit mask code */
34
}
pme_i386_p6_umask_t
;
35
36
typedef
struct
{
37
char
*
pme_name
;
/* event name */
38
char
*
pme_desc
;
/* event description */
39
pme_i386_p6_umask_t
pme_umasks[
PFMLIB_I386_P6_MAX_UMASK
];
/* umask desc */
40
unsigned
int
pme_code
;
/* event code */
41
unsigned
int
pme_numasks
;
/* number of umasks */
42
unsigned
int
pme_flags
;
/* flags */
43
}
pme_i386_p6_entry_t
;
44
45
/*
46
* pme_flags values
47
*/
48
#define PFMLIB_I386_P6_UMASK_COMBO 0x01
/* unit mask can be combined */
49
#define PFMLIB_I386_P6_CTR0_ONLY 0x02
/* event can only be counted on counter 0 */
50
#define PFMLIB_I386_P6_CTR1_ONLY 0x04
/* event can only be counted on counter 1 */
51
52
#endif
/* __PFMLIB_I386_P6_PRIV_H__ */
PFMLIB_I386_P6_MAX_UMASK
#define PFMLIB_I386_P6_MAX_UMASK
Definition:
pfmlib_i386_p6_priv.h:28
pme_i386_p6_entry_t
Definition:
pfmlib_i386_p6_priv.h:36
pme_i386_p6_entry_t::pme_code
unsigned int pme_code
Definition:
pfmlib_i386_p6_priv.h:40
pme_i386_p6_entry_t::pme_numasks
unsigned int pme_numasks
Definition:
pfmlib_i386_p6_priv.h:41
pme_i386_p6_entry_t::pme_name
char * pme_name
Definition:
pfmlib_i386_p6_priv.h:37
pme_i386_p6_entry_t::pme_desc
char * pme_desc
Definition:
pfmlib_i386_p6_priv.h:38
pme_i386_p6_entry_t::pme_flags
unsigned int pme_flags
Definition:
pfmlib_i386_p6_priv.h:42
pme_i386_p6_umask_t
Definition:
pfmlib_i386_p6_priv.h:30
pme_i386_p6_umask_t::pme_udesc
char * pme_udesc
Definition:
pfmlib_i386_p6_priv.h:32
pme_i386_p6_umask_t::pme_ucode
unsigned int pme_ucode
Definition:
pfmlib_i386_p6_priv.h:33
pme_i386_p6_umask_t::pme_uname
char * pme_uname
Definition:
pfmlib_i386_p6_priv.h:31
src
libperfnec
lib
pfmlib_i386_p6_priv.h
Generated on Wed Dec 20 2023 18:12:52 for PAPI by
1.9.6