A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #280 from mpoquet/replay-steroid-example
[simgrid.git]
/
src
/
plugins
/
host_load.cpp
diff --git
a/src/plugins/host_load.cpp
b/src/plugins/host_load.cpp
index
dd1d428
..
264ea2d
100644
(file)
--- a/
src/plugins/host_load.cpp
+++ b/
src/plugins/host_load.cpp
@@
-3,9
+3,12
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include <simgrid/s4u.hpp>
#include "simgrid/plugins/load.h"
#include "simgrid/plugins/load.h"
+#include "src/include/surf/surf.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
+#include <simgrid/s4u.hpp>
+
+SIMGRID_REGISTER_PLUGIN(host_load, "Cpu load", &sg_host_load_plugin_init)
/** @addtogroup plugin_load
/** @addtogroup plugin_load
@@
-132,7
+135,7
@@
static void on_host_change(simgrid::s4u::Host& host)
}
/* This callback is called when an action (computation, idle, ...) terminates */
}
/* This callback is called when an action (computation, idle, ...) terminates */
-static void on_action_state_change(simgrid::surf::CpuAction* action)
+static void on_action_state_change(simgrid::surf::CpuAction* action
, simgrid::kernel::resource::Action::State /*previous*/
)
{
for (simgrid::surf::Cpu* const& cpu : action->cpus()) {
simgrid::s4u::Host* host = cpu->get_host();
{
for (simgrid::surf::Cpu* const& cpu : action->cpus()) {
simgrid::s4u::Host* host = cpu->get_host();