Blame src/cpus.h

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