Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add comments and disable verbose outputs
[simgrid.git] / src / surf / cpu_cas01_private.h
1
2 /* Copyright (c) 2013. The SimGrid Team.
3  * All rights reserved.                                                     */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef _SURF_CPU_CAS01_PRIVATE_H
9 #define _SURF_CPU_CAS01_PRIVATE_H
10
11 typedef struct cpu_Cas01 {
12   s_surf_resource_t generic_resource;
13   s_xbt_swag_hookup_t modified_cpu_hookup;
14   double power_peak;
15   double power_scale;
16   tmgr_trace_event_t power_event;
17   int core;
18   e_surf_resource_state_t state_current;
19   tmgr_trace_event_t state_event;
20   lmm_constraint_t constraint;
21
22   /* Note (hypervisor): */
23   lmm_constraint_t *constraint_core;
24
25 } s_cpu_Cas01_t, *cpu_Cas01_t;
26
27 void *cpu_cas01_create_resource(const char *name,
28     double power_peak,
29     double power_scale,
30     tmgr_trace_t power_trace,
31     int core,
32     e_surf_resource_state_t state_initial,
33     tmgr_trace_t state_trace,
34     xbt_dict_t cpu_properties,
35     surf_model_t cpu_model);
36
37 #endif                          /* _SURF_CPU_CAS01_PRIVATE_H */