PAPI
7.1.0.0
Loading...
Searching...
No Matches
pfmlib_sicortex_priv.h
Go to the documentation of this file.
1
/*
2
* Contributed by Philip Mucci <mucci@cs.utk.edu> based on code from
3
* Copyright (c) 2004-2006 Hewlett-Packard Development Company, L.P.
4
* Contributed by Stephane Eranian <eranian@hpl.hp.com>
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy
7
* of this software and associated documentation files (the "Software"), to deal
8
* in the Software without restriction, including without limitation the rights
9
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10
* of the Software, and to permit persons to whom the Software is furnished to do so,
11
* subject to the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included in all
14
* copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
18
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
*
23
* This file is part of libpfm, a performance monitoring support library for
24
* applications on Linux/ia64.
25
*/
26
#ifndef __PFMLIB_SICORTEX_PRIV_H__
27
#define __PFMLIB_SICORTEX_PRIV_H__
28
#include "
pfmlib_gen_mips64_priv.h
"
29
30
#define PFMLIB_SICORTEX_MAX_UMASK 5
31
32
typedef
struct
{
33
char
*
pme_uname
;
/* unit mask name */
34
char
*
pme_udesc
;
/* event/umask description */
35
unsigned
int
pme_ucode
;
/* unit mask code */
36
}
pme_sicortex_umask_t
;
37
38
typedef
struct
{
39
char
*
pme_name
;
40
char
*
pme_desc
;
/* text description of the event */
41
unsigned
int
pme_code
;
/* event mask, holds room for four events, low 8 bits cntr0, ... high 8 bits cntr3 */
42
unsigned
int
pme_counters
;
/* Which counter event lives on */
43
unsigned
int
pme_numasks
;
/* number of umasks */
44
pme_sicortex_umask_t
pme_umasks[
PFMLIB_SICORTEX_MAX_UMASK
];
/* umask desc */
45
}
pme_sicortex_entry_t
;
46
47
static
pme_sicortex_umask_t
sicortex_scb_umasks
[
PFMLIB_SICORTEX_MAX_UMASK
] = {
48
{
49
"IFOTHER_NONE"
,
"Both buckets count independently"
,0x00
50
},
51
{
52
"IFOTHER_AND"
,
"Increment where this event counts and the opposite bucket counts"
,0x02
53
},
54
{
55
"IFOTHER_ANDNOT"
,
"Increment where this event counts and the opposite bucket does not"
,0x04
56
},
57
{
58
"HIST_NONE"
,
"Count cycles where the event is asserted"
,0x0
59
},
60
{
61
"HIST_EDGE"
,
"Histogram on edges of the specified event"
,0x1
62
}
63
};
64
#endif
/* __PFMLIB_GEN_MIPS64_PRIV_H__ */
pfmlib_gen_mips64_priv.h
sicortex_scb_umasks
static pme_sicortex_umask_t sicortex_scb_umasks[PFMLIB_SICORTEX_MAX_UMASK]
Definition:
pfmlib_sicortex_priv.h:47
PFMLIB_SICORTEX_MAX_UMASK
#define PFMLIB_SICORTEX_MAX_UMASK
Definition:
pfmlib_sicortex_priv.h:30
pme_sicortex_entry_t
Definition:
pfmlib_sicortex_priv.h:38
pme_sicortex_entry_t::pme_numasks
unsigned int pme_numasks
Definition:
pfmlib_sicortex_priv.h:43
pme_sicortex_entry_t::pme_name
char * pme_name
Definition:
pfmlib_sicortex_priv.h:39
pme_sicortex_entry_t::pme_code
unsigned int pme_code
Definition:
pfmlib_sicortex_priv.h:41
pme_sicortex_entry_t::pme_desc
char * pme_desc
Definition:
pfmlib_sicortex_priv.h:40
pme_sicortex_entry_t::pme_counters
unsigned int pme_counters
Definition:
pfmlib_sicortex_priv.h:42
pme_sicortex_umask_t
Definition:
pfmlib_sicortex_priv.h:32
pme_sicortex_umask_t::pme_ucode
unsigned int pme_ucode
Definition:
pfmlib_sicortex_priv.h:35
pme_sicortex_umask_t::pme_udesc
char * pme_udesc
Definition:
pfmlib_sicortex_priv.h:34
pme_sicortex_umask_t::pme_uname
char * pme_uname
Definition:
pfmlib_sicortex_priv.h:33
src
libperfnec
lib
pfmlib_sicortex_priv.h
Generated on Wed Dec 20 2023 18:12:52 for PAPI by
1.9.6