File: cpus.h

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (24 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @file cpus.h
 * Author:  Gary Mohr
 *          gary.mohr@bull.com
 *          - based on threads.h by unknown author -
 */

#ifndef PAPI_CPUS_H
#define PAPI_CPUS_H

typedef struct _CpuInfo
{
	unsigned int cpu_num;
	struct _CpuInfo *next;
  	hwd_context_t **context;
	EventSetInfo_t **running_eventset;
  	EventSetInfo_t *from_esi;          /* ESI used for last update this control state */
        int num_users;
} CpuInfo_t;

int _papi_hwi_initialize_cpu( CpuInfo_t **dest, unsigned int cpu_num );
int _papi_hwi_shutdown_cpu( CpuInfo_t *cpu );
int _papi_hwi_lookup_or_create_cpu( CpuInfo_t ** here, unsigned int cpu_num );

#endif