PAPI
7.1.0.0
Loading...
Searching...
No Matches
pfmlib_cell_priv.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 TOSHIBA CORPORATION based on code from
3
* Copyright (c) 2001-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
#ifndef __PFMLIB_CELL_PRIV_H__
24
#define __PFMLIB_CELL_PRIV_H__
25
26
#define PFM_CELL_PME_FREQ_PPU_MFC 0
27
#define PFM_CELL_PME_FREQ_SPU 1
28
#define PFM_CELL_PME_FREQ_HALF 2
29
30
typedef
struct
{
31
char
*
pme_name
;
/* event name */
32
char
*
pme_desc
;
/* event description */
33
unsigned
long
long
pme_code
;
/* event code */
34
unsigned
int
pme_type
;
/* count type */
35
unsigned
int
pme_freq
;
/* debug_bus_control's frequency value */
36
unsigned
int
pme_enable_word
;
37
}
pme_cell_entry_t
;
38
39
/* PMC register */
40
#define REG_PM0_CONTROL 0x0000
41
#define REG_PM1_CONTROL 0x0001
42
#define REG_PM2_CONTROL 0x0002
43
#define REG_PM3_CONTROL 0x0003
44
#define REG_PM4_CONTROL 0x0004
45
#define REG_PM5_CONTROL 0x0005
46
#define REG_PM6_CONTROL 0x0006
47
#define REG_PM7_CONTROL 0x0007
48
49
#define REG_PM0_EVENT 0x0008
50
#define REG_PM1_EVENT 0x0009
51
#define REG_PM2_EVENT 0x000A
52
#define REG_PM3_EVENT 0x000B
53
#define REG_PM4_EVENT 0x000C
54
#define REG_PM5_EVENT 0x000D
55
#define REG_PM6_EVENT 0x000E
56
#define REG_PM7_EVENT 0x000F
57
58
#define REG_GROUP_CONTROL 0x0010
59
#define REG_DEBUG_BUS_CONTROL 0x0011
60
#define REG_TRACE_ADDRESS 0x0012
61
#define REG_EXT_TRACE_TIMER 0x0013
62
#define REG_PM_STATUS 0x0014
63
#define REG_PM_CONTROL 0x0015
64
#define REG_PM_INTERVAL 0x0016
65
#define REG_PM_START_STOP 0x0017
66
67
#define NONE_SIGNAL 0x0000
68
#define SIGNAL_SPU 41
69
#define SIGNAL_SPU_TRIGGER 42
70
#define SIGNAL_SPU_EVENT 43
71
72
#define COUNT_TYPE_BOTH_TYPE 1
73
#define COUNT_TYPE_CUMULATIVE_LEN 2
74
#define COUNT_TYPE_OCCURRENCE 3
75
#define COUNT_TYPE_MULTI_CYCLE 4
76
#define COUNT_TYPE_SINGLE_CYCLE 5
77
78
#define WORD_0_ONLY 1
/* 0001 */
79
#define WORD_2_ONLY 4
/* 0100 */
80
#define WORD_0_AND_1 3
/* 0011 */
81
#define WORD_0_AND_2 5
/* 0101 */
82
#define WORD_NONE 0
83
84
#endif
/* __PFMLIB_CELL_PRIV_H__ */
pme_cell_entry_t
Definition:
pfmlib_cell_priv.h:30
pme_cell_entry_t::pme_enable_word
unsigned int pme_enable_word
Definition:
pfmlib_cell_priv.h:36
pme_cell_entry_t::pme_desc
char * pme_desc
Definition:
pfmlib_cell_priv.h:32
pme_cell_entry_t::pme_code
unsigned long long pme_code
Definition:
pfmlib_cell_priv.h:33
pme_cell_entry_t::pme_freq
unsigned int pme_freq
Definition:
pfmlib_cell_priv.h:35
pme_cell_entry_t::pme_type
unsigned int pme_type
Definition:
pfmlib_cell_priv.h:34
pme_cell_entry_t::pme_name
char * pme_name
Definition:
pfmlib_cell_priv.h:31
src
libperfnec
lib
pfmlib_cell_priv.h
Generated on Wed Dec 20 2023 18:12:52 for PAPI by
1.9.6