PAPI  5.0.1.0
map.h
Go to the documentation of this file.
00001 /****************************/
00002 /* THIS IS OPEN SOURCE CODE */
00003 /****************************/
00004 
00005 /* 
00006 * File:    freebsd-map.h
00007 * Author:  Harald Servat
00008 *          redcrash@gmail.com
00009 */
00010 
00011 #ifndef _FreeBSD_MAP_H_
00012 #define _FreeBSD_MAP_H_
00013 
00014 #include "../papi.h"
00015 #include "../papi_internal.h"
00016 #include "../papi_vector.h"
00017 
00018 enum 
00019 {
00020     CPU_UNKNOWN = 0,
00021     CPU_P6,
00022     CPU_P6_C,
00023     CPU_P6_2,
00024     CPU_P6_3,
00025     CPU_P6_M,
00026     CPU_P4,
00027     CPU_K7,
00028     CPU_K8,
00029     CPU_ATOM,
00030     CPU_CORE,
00031     CPU_CORE2,
00032     CPU_CORE2EXTREME,
00033     CPU_COREI7,
00034     CPU_COREWESTMERE,
00035     CPU_LAST
00036 };
00037 
00038 typedef struct Native_Event_LabelDescription 
00039 {
00040     char *name;
00041     char *description;
00042 } Native_Event_LabelDescription_t;
00043 
00044 typedef struct Native_Event_Info
00045 {
00046     /* Name and description for all native events */
00047     Native_Event_LabelDescription_t *info;
00048 } Native_Event_Info_t;
00049 
00050 extern Native_Event_Info_t _papi_hwd_native_info[CPU_LAST+1];
00051 extern void init_freebsd_libpmc_mappings (void);
00052 extern int freebsd_number_of_events (int processortype);
00053 
00054 #include "map-unknown.h"
00055 #include "map-p6.h"
00056 #include "map-p6-c.h"
00057 #include "map-p6-2.h"
00058 #include "map-p6-3.h"
00059 #include "map-p6-m.h"
00060 #include "map-p4.h"
00061 #include "map-k7.h"
00062 #include "map-k8.h"
00063 #include "map-atom.h"
00064 #include "map-core.h"
00065 #include "map-core2.h"
00066 #include "map-core2-extreme.h"
00067 #include "map-i7.h"
00068 #include "map-westmere.h"
00069 
00070 #endif /* _FreeBSD_MAP_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines