PAPI
7.1.0.0
Loading...
Searching...
No Matches
map.h
Go to the documentation of this file.
1
/****************************/
2
/* THIS IS OPEN SOURCE CODE */
3
/****************************/
4
5
/*
6
* File: freebsd-map.h
7
* Author: Harald Servat
8
* redcrash@gmail.com
9
*/
10
11
#ifndef _FreeBSD_MAP_H_
12
#define _FreeBSD_MAP_H_
13
14
#include "../papi.h"
15
#include "../papi_internal.h"
16
#include "../papi_vector.h"
17
18
enum
19
{
20
CPU_UNKNOWN
= 0,
21
CPU_P6
,
22
CPU_P6_C
,
23
CPU_P6_2
,
24
CPU_P6_3
,
25
CPU_P6_M
,
26
CPU_P4
,
27
CPU_K7
,
28
CPU_K8
,
29
CPU_ATOM
,
30
CPU_CORE
,
31
CPU_CORE2
,
32
CPU_CORE2EXTREME
,
33
CPU_COREI7
,
34
CPU_COREWESTMERE
,
35
CPU_LAST
36
};
37
38
typedef
struct
Native_Event_LabelDescription
39
{
40
char
*
name
;
41
char
*
description
;
42
}
Native_Event_LabelDescription_t
;
43
44
typedef
struct
Native_Event_Info
45
{
46
/* Name and description for all native events */
47
Native_Event_LabelDescription_t
*
info
;
48
}
Native_Event_Info_t
;
49
50
extern
Native_Event_Info_t
_papi_hwd_native_info
[
CPU_LAST
+1];
51
extern
void
init_freebsd_libpmc_mappings
(
void
);
52
extern
int
freebsd_number_of_events
(
int
processortype);
53
54
#include "
map-unknown.h
"
55
#include "
map-p6.h
"
56
#include "
map-p6-c.h
"
57
#include "
map-p6-2.h
"
58
#include "
map-p6-3.h
"
59
#include "
map-p6-m.h
"
60
#include "
map-p4.h
"
61
#include "
map-k7.h
"
62
#include "
map-k8.h
"
63
#include "
map-atom.h
"
64
#include "
map-core.h
"
65
#include "
map-core2.h
"
66
#include "
map-core2-extreme.h
"
67
#include "
map-i7.h
"
68
#include "
map-westmere.h
"
69
70
#endif
/* _FreeBSD_MAP_H_ */
map-atom.h
map-core2-extreme.h
map-core2.h
map-core.h
map-i7.h
map-k7.h
map-k8.h
map-p4.h
map-p6-2.h
map-p6-3.h
map-p6-c.h
map-p6-m.h
map-p6.h
map-unknown.h
map-westmere.h
init_freebsd_libpmc_mappings
void init_freebsd_libpmc_mappings(void)
Definition:
map.c:19
CPU_K7
@ CPU_K7
Definition:
map.h:27
CPU_P6
@ CPU_P6
Definition:
map.h:21
CPU_P6_2
@ CPU_P6_2
Definition:
map.h:23
CPU_COREWESTMERE
@ CPU_COREWESTMERE
Definition:
map.h:34
CPU_P6_3
@ CPU_P6_3
Definition:
map.h:24
CPU_LAST
@ CPU_LAST
Definition:
map.h:35
CPU_P6_M
@ CPU_P6_M
Definition:
map.h:25
CPU_CORE
@ CPU_CORE
Definition:
map.h:30
CPU_CORE2
@ CPU_CORE2
Definition:
map.h:31
CPU_P6_C
@ CPU_P6_C
Definition:
map.h:22
CPU_ATOM
@ CPU_ATOM
Definition:
map.h:29
CPU_K8
@ CPU_K8
Definition:
map.h:28
CPU_CORE2EXTREME
@ CPU_CORE2EXTREME
Definition:
map.h:32
CPU_P4
@ CPU_P4
Definition:
map.h:26
CPU_COREI7
@ CPU_COREI7
Definition:
map.h:33
CPU_UNKNOWN
@ CPU_UNKNOWN
Definition:
map.h:20
_papi_hwd_native_info
Native_Event_Info_t _papi_hwd_native_info[CPU_LAST+1]
Definition:
map.c:17
freebsd_number_of_events
int freebsd_number_of_events(int processortype)
Definition:
map.c:40
Native_Event_Info_t
Definition:
map.h:45
Native_Event_Info_t::info
Native_Event_LabelDescription_t * info
Definition:
map.h:47
Native_Event_LabelDescription_t
Definition:
map.h:39
Native_Event_LabelDescription_t::name
char * name
Definition:
map.h:40
Native_Event_LabelDescription_t::description
char * description
Definition:
map.h:41
src
freebsd
map.h
Generated on Wed Dec 20 2023 18:12:51 for PAPI by
1.9.6