Blame src/cpus.h

Packit 577717
/** @file cpus.h
Packit 577717
 * Author:  Gary Mohr
Packit 577717
 *          gary.mohr@bull.com
Packit 577717
 *          - based on threads.h by unknown author -
Packit 577717
 */
Packit 577717
Packit 577717
#ifndef PAPI_CPUS_H
Packit 577717
#define PAPI_CPUS_H
Packit 577717
Packit 577717
typedef struct _CpuInfo
Packit 577717
{
Packit 577717
	unsigned int cpu_num;
Packit 577717
	struct _CpuInfo *next;
Packit 577717
  	hwd_context_t **context;
Packit 577717
	EventSetInfo_t **running_eventset;
Packit 577717
  	EventSetInfo_t *from_esi;          /* ESI used for last update this control state */
Packit 577717
        int num_users;
Packit 577717
} CpuInfo_t;
Packit 577717
Packit 577717
int _papi_hwi_initialize_cpu( CpuInfo_t **dest, unsigned int cpu_num );
Packit 577717
int _papi_hwi_shutdown_cpu( CpuInfo_t *cpu );
Packit 577717
int _papi_hwi_lookup_or_create_cpu( CpuInfo_t ** here, unsigned int cpu_num );
Packit 577717
Packit 577717
#endif