File: map.h

package info (click to toggle)
papi 5.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (70 lines) | stat: -rw-r--r-- 1,318 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/****************************/
/* THIS IS OPEN SOURCE CODE */
/****************************/

/* 
* File:    freebsd-map.h
* Author:  Harald Servat
*          redcrash@gmail.com
*/

#ifndef _FreeBSD_MAP_H_
#define _FreeBSD_MAP_H_

#include "../papi.h"
#include "../papi_internal.h"
#include "../papi_vector.h"

enum 
{
	CPU_UNKNOWN = 0,
	CPU_P6,
	CPU_P6_C,
	CPU_P6_2,
	CPU_P6_3,
	CPU_P6_M,
	CPU_P4,
	CPU_K7,
	CPU_K8,
	CPU_ATOM,
	CPU_CORE,
	CPU_CORE2,
	CPU_CORE2EXTREME,
	CPU_COREI7,
	CPU_COREWESTMERE,
	CPU_LAST
};

typedef struct Native_Event_LabelDescription 
{
	char *name;
	char *description;
} Native_Event_LabelDescription_t;

typedef struct Native_Event_Info
{
	/* Name and description for all native events */
	Native_Event_LabelDescription_t *info;
} Native_Event_Info_t;

extern Native_Event_Info_t _papi_hwd_native_info[CPU_LAST+1];
extern void init_freebsd_libpmc_mappings (void);
extern int freebsd_number_of_events (int processortype);

#include "map-unknown.h"
#include "map-p6.h"
#include "map-p6-c.h"
#include "map-p6-2.h"
#include "map-p6-3.h"
#include "map-p6-m.h"
#include "map-p4.h"
#include "map-k7.h"
#include "map-k8.h"
#include "map-atom.h"
#include "map-core.h"
#include "map-core2.h"
#include "map-core2-extreme.h"
#include "map-i7.h"
#include "map-westmere.h"

#endif /* _FreeBSD_MAP_H_ */