Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
17 months agoprivatize some fields of kernel::resource::Cpu
Martin Quinson [Sun, 20 May 2018 13:36:55 +0000 (15:36 +0200)]
privatize some fields of kernel::resource::Cpu

17 months agosnake_case some parts of kernel::resource::Cpu
Martin Quinson [Sun, 20 May 2018 13:21:44 +0000 (15:21 +0200)]
snake_case some parts of kernel::resource::Cpu

17 months agoplug another memleak by not mallocating in the first place
Martin Quinson [Sat, 19 May 2018 14:03:26 +0000 (16:03 +0200)]
plug another memleak by not mallocating in the first place

17 months agosnake_case some methods in s4u::Host
Martin Quinson [Fri, 18 May 2018 22:03:48 +0000 (00:03 +0200)]
snake_case some methods in s4u::Host

17 months agounsecure commit
Frederic Suter [Fri, 18 May 2018 12:11:02 +0000 (14:11 +0200)]
unsecure commit

17 months agosonar: redundent forward declaration
Martin Quinson [Fri, 18 May 2018 08:09:49 +0000 (10:09 +0200)]
sonar: redundent forward declaration

17 months agoplug a memleak -- bummer
Martin Quinson [Fri, 18 May 2018 07:59:14 +0000 (09:59 +0200)]
plug a memleak -- bummer

17 months agomore signals and more lambdas
Frederic Suter [Fri, 18 May 2018 08:10:12 +0000 (10:10 +0200)]
more signals and more lambdas

actor sleep/wake up is now tracable in S4U

17 months agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 18 May 2018 07:21:02 +0000 (09:21 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

17 months agocleanup the resource::Action::State::IGNORED thing
Martin Quinson [Thu, 17 May 2018 20:43:44 +0000 (22:43 +0200)]
cleanup the resource::Action::State::IGNORED thing

Factorize stuff of CpuCas01Model and CpuTiModel into Model directly.
This way, Action::get_state() always knows in which set the action is.
No shit, no magic here.

17 months agoUPPER_CASE the Action::State values (+ uniformity with s4u::Activity)
Martin Quinson [Thu, 17 May 2018 20:26:52 +0000 (22:26 +0200)]
UPPER_CASE the Action::State values (+ uniformity with s4u::Activity)

17 months agochange macro names to avoid nameclashes on FINISHED
Martin Quinson [Thu, 17 May 2018 20:15:15 +0000 (22:15 +0200)]
change macro names to avoid nameclashes on FINISHED

17 months agodoc improvement
Martin Quinson [Thu, 17 May 2018 20:01:44 +0000 (22:01 +0200)]
doc improvement

17 months agoEnum values are in UPPER_SNAKE_CASE
Martin Quinson [Thu, 17 May 2018 19:54:16 +0000 (21:54 +0200)]
Enum values are in UPPER_SNAKE_CASE

17 months agocleanups in Action::State
Martin Quinson [Thu, 17 May 2018 19:30:15 +0000 (21:30 +0200)]
cleanups in Action::State

- Rename "ready" to "inited", for symmetry to s4u::Activity
- Remove the unused state "to_free"
- Rename the funky state "not_in_the_system" into "ignored", and
  improve its documentation.

Further cleanups could include not having any action set beyond the
ones existing in kernel::resource::Model, so that
kernel::resource::Action::get_state() see them all.

CpuCas01 is the one heavily using ignored actions, as failure detectors.

17 months agoReduce the foreign usages of s4u::Host::pimpl_cpu, which should be private
Martin Quinson [Thu, 17 May 2018 12:43:57 +0000 (14:43 +0200)]
Reduce the foreign usages of s4u::Host::pimpl_cpu, which should be private

17 months agoinline SIMIX_host_off into s4u::Host->turnOff()
Martin Quinson [Thu, 17 May 2018 12:56:22 +0000 (14:56 +0200)]
inline SIMIX_host_off into s4u::Host->turnOff()

17 months agokill a couple more of the long descriptions in instr
Frederic Suter [Thu, 17 May 2018 10:39:28 +0000 (12:39 +0200)]
kill a couple more of the long descriptions in instr

17 months agokill a not so useful tracing option
Frederic Suter [Wed, 16 May 2018 15:26:44 +0000 (17:26 +0200)]
kill a not so useful tracing option

17 months agos4u::Host: move signals to the top and deprecated functions to the end
Martin Quinson [Wed, 16 May 2018 15:07:48 +0000 (17:07 +0200)]
s4u::Host: move signals to the top and deprecated functions to the end

17 months agothis should allow the tracing of resource usage with this model
Frederic Suter [Wed, 16 May 2018 14:29:20 +0000 (16:29 +0200)]
this should allow the tracing of resource usage with this model

17 months agono need to set tracing/buffer to its default value
Frederic Suter [Wed, 16 May 2018 12:03:08 +0000 (14:03 +0200)]
no need to set tracing/buffer to its default value

17 months agocosmetics
Frederic Suter [Wed, 16 May 2018 11:39:10 +0000 (13:39 +0200)]
cosmetics

17 months agooutput long descriptions on a single line
Frederic Suter [Wed, 16 May 2018 11:05:21 +0000 (13:05 +0200)]
output long descriptions on a single line

18 months agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 16 May 2018 10:08:39 +0000 (12:08 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

18 months agostart to simplify options descriptions in instr
Frederic Suter [Wed, 16 May 2018 10:08:18 +0000 (12:08 +0200)]
start to simplify options descriptions in instr

18 months agocosmetics
Frederic Suter [Wed, 16 May 2018 07:14:11 +0000 (09:14 +0200)]
cosmetics

18 months agosnake_case s4u::Link
Martin Quinson [Wed, 16 May 2018 06:43:14 +0000 (08:43 +0200)]
snake_case s4u::Link

18 months agosnake_case s4u::Mailbox
Martin Quinson [Tue, 15 May 2018 20:46:29 +0000 (22:46 +0200)]
snake_case s4u::Mailbox

18 months agocleanups in Storage-related signals
Frederic Suter [Tue, 15 May 2018 08:45:58 +0000 (10:45 +0200)]
cleanups in Storage-related signals

18 months agocosmetics
Frederic Suter [Tue, 15 May 2018 07:30:24 +0000 (09:30 +0200)]
cosmetics

18 months agoadd the badge to CII best practices
Martin Quinson [Tue, 15 May 2018 06:40:03 +0000 (08:40 +0200)]
add the badge to CII best practices

18 months agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 14 May 2018 20:52:59 +0000 (22:52 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

18 months agofix callback (& not *)
Frederic Suter [Mon, 14 May 2018 19:49:34 +0000 (21:49 +0200)]
fix callback (& not *)

18 months agoyet another callbacks
Frederic Suter [Mon, 14 May 2018 19:19:07 +0000 (21:19 +0200)]
yet another callbacks

network_interface is TRACE-free \o/

18 months agouse signal to trace link usage
Frederic Suter [Mon, 14 May 2018 18:23:51 +0000 (20:23 +0200)]
use signal to trace link usage

+ Still have to deal with NS3
+ trigger the signal only when the state changes

18 months agocleanups in the wannabe Activity::test()
Martin Quinson [Sun, 13 May 2018 20:10:04 +0000 (22:10 +0200)]
cleanups in the wannabe Activity::test()

18 months agosnake_case the s4u::Host signals
Martin Quinson [Sat, 12 May 2018 21:44:45 +0000 (23:44 +0200)]
snake_case the s4u::Host signals

18 months agoKill unused function simcall_call().
Arnaud Giersch [Sat, 12 May 2018 19:45:50 +0000 (21:45 +0200)]
Kill unused function simcall_call().

18 months agoTry again when wait returns 128.
Arnaud Giersch [Sat, 12 May 2018 19:34:19 +0000 (21:34 +0200)]
Try again when wait returns 128.

18 months agoMissing copyright header
Martin Quinson [Sat, 12 May 2018 00:48:13 +0000 (02:48 +0200)]
Missing copyright header

18 months agorename simix::kernelImmediate into simix::simcall
Martin Quinson [Sat, 12 May 2018 00:43:24 +0000 (02:43 +0200)]
rename simix::kernelImmediate into simix::simcall

18 months ago[smpi] kill an unused method
Martin Quinson [Sat, 12 May 2018 00:24:49 +0000 (02:24 +0200)]
[smpi] kill an unused method

18 months ago[smpi] s4u processes are actors
Martin Quinson [Sat, 12 May 2018 00:21:47 +0000 (02:21 +0200)]
[smpi] s4u processes are actors

18 months agosimplifications & cosmetics in CpuTi model
Martin Quinson [Fri, 11 May 2018 23:38:23 +0000 (01:38 +0200)]
simplifications & cosmetics in CpuTi model

18 months agodon't set a field to its default value from the constructor
Martin Quinson [Fri, 11 May 2018 23:24:18 +0000 (01:24 +0200)]
don't set a field to its default value from the constructor

18 months agocosmetics: snake_case some random local variables, fields and non-s4u methods
Martin Quinson [Fri, 11 May 2018 23:12:37 +0000 (01:12 +0200)]
cosmetics: snake_case some random local variables, fields and non-s4u methods

18 months agorename some fields (change toto to toto_)
Martin Quinson [Fri, 11 May 2018 23:11:28 +0000 (01:11 +0200)]
rename some fields (change toto to toto_)

18 months agocosmetics and reduce the amount of direct call to simcall_*
Martin Quinson [Fri, 11 May 2018 20:50:38 +0000 (22:50 +0200)]
cosmetics and reduce the amount of direct call to simcall_*

18 months agosnake_case the signals in s4u::Link (no way to make a deprecation warning)
Martin Quinson [Fri, 11 May 2018 20:19:04 +0000 (22:19 +0200)]
snake_case the signals in s4u::Link (no way to make a deprecation warning)

18 months agocosmetics: rename 2 fields
Martin Quinson [Thu, 10 May 2018 10:22:05 +0000 (12:22 +0200)]
cosmetics: rename 2 fields

18 months agoprivatize ExecImpl::timeoutDetector and partially ExecImpl::surfAction
Martin Quinson [Thu, 10 May 2018 09:45:49 +0000 (11:45 +0200)]
privatize ExecImpl::timeoutDetector and partially ExecImpl::surfAction

I fail to understand why a direct access to ExecImpl::surfAction is
mandatory

18 months agofactorize code between SIMIX_execution_start and SIMIX_execution_parallel_start
Martin Quinson [Thu, 10 May 2018 09:16:01 +0000 (11:16 +0200)]
factorize code between SIMIX_execution_start and SIMIX_execution_parallel_start

18 months agokill an unused method in HostImpl (that should be renamed StorageImpl or something)
Martin Quinson [Thu, 10 May 2018 08:15:57 +0000 (10:15 +0200)]
kill an unused method in HostImpl (that should be renamed StorageImpl or something)

18 months agocosmetic in mutex
Martin Quinson [Thu, 10 May 2018 08:07:30 +0000 (10:07 +0200)]
cosmetic in mutex

18 months agosnake_case kernel::activity::ExecImpl
Martin Quinson [Thu, 10 May 2018 02:58:56 +0000 (04:58 +0200)]
snake_case kernel::activity::ExecImpl

18 months agorename SmpiHost file and class to blend in better
Augustin Degomme [Fri, 11 May 2018 17:12:58 +0000 (19:12 +0200)]
rename SmpiHost file and class to blend in better

18 months agosnake_case in instr
Frederic Suter [Fri, 11 May 2018 13:25:12 +0000 (15:25 +0200)]
snake_case in instr

18 months agorefactor with templated method
Frederic Suter [Fri, 11 May 2018 11:41:46 +0000 (13:41 +0200)]
refactor with templated method

18 months agomove function to class
Frederic Suter [Fri, 11 May 2018 09:54:11 +0000 (11:54 +0200)]
move function to class

18 months agofix tracing debug mode (and please sonar)
Frederic Suter [Fri, 11 May 2018 07:18:49 +0000 (09:18 +0200)]
fix tracing debug mode (and please sonar)

18 months agoReplace deprecated function.
Arnaud Giersch [Fri, 11 May 2018 06:28:30 +0000 (08:28 +0200)]
Replace deprecated function.

18 months agostart to use surf signals to trace resource usage
Frederic Suter [Thu, 10 May 2018 18:17:15 +0000 (20:17 +0200)]
start to use surf signals to trace resource usage

Remarks:
 + one signal is missing (when remains is updated)
 + not sure examples capture this tracing (I had to use debug to check
   the validity of my changes)

18 months agosnake_case (and document) s4u::Exec
Martin Quinson [Wed, 9 May 2018 23:22:08 +0000 (01:22 +0200)]
snake_case (and document) s4u::Exec

18 months agomake s4u::Engine::pimpl private at the price of a static_cast deep below
Martin Quinson [Wed, 9 May 2018 23:01:16 +0000 (01:01 +0200)]
make s4u::Engine::pimpl private at the price of a static_cast deep below

There is something rotten between Netzone and NetzoneImpl. They should
be aligned with the design of the other s4u/kernel objects. At some
point.

18 months agofinish snake_case s4u::Engine
Martin Quinson [Wed, 9 May 2018 21:58:08 +0000 (23:58 +0200)]
finish snake_case s4u::Engine

18 months agoTypos.
Arnaud Giersch [Tue, 8 May 2018 19:40:18 +0000 (21:40 +0200)]
Typos.

18 months agoalso use ofstream for tracing_files
Frederic Suter [Wed, 9 May 2018 14:40:29 +0000 (16:40 +0200)]
also use ofstream for tracing_files

18 months agoreplace FILE* by ofstream for tracing_file
Frederic Suter [Wed, 9 May 2018 13:56:55 +0000 (15:56 +0200)]
replace FILE* by ofstream for tracing_file

18 months agorefactor TRACE_start and TRACE_end
Frederic Suter [Wed, 9 May 2018 11:58:14 +0000 (13:58 +0200)]
refactor TRACE_start and TRACE_end

18 months agoMSG_VM => VM in instr
Frederic Suter [Wed, 9 May 2018 08:08:04 +0000 (10:08 +0200)]
MSG_VM => VM in instr

18 months agouse signals to instrument VMs
Frederic Suter [Wed, 9 May 2018 08:01:49 +0000 (10:01 +0200)]
use signals to instrument VMs

18 months agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 9 May 2018 07:08:47 +0000 (09:08 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

18 months ago'not' is not a C keyword (C++ only) -- bummer
Martin Quinson [Tue, 8 May 2018 18:10:07 +0000 (20:10 +0200)]
'not' is not a C keyword (C++ only) -- bummer

18 months agofix a FIXME
Martin Quinson [Tue, 8 May 2018 17:51:26 +0000 (19:51 +0200)]
fix a FIXME

18 months agocosmetics: use explicitly 'not' instead of a raw !
Martin Quinson [Tue, 8 May 2018 10:50:46 +0000 (12:50 +0200)]
cosmetics: use explicitly 'not' instead of a raw !

18 months agocapture in the doc a recent discussion on ML
Martin Quinson [Fri, 4 May 2018 23:49:04 +0000 (01:49 +0200)]
capture in the doc a recent discussion on ML

18 months agosnake_casing file system plugin
Frederic Suter [Tue, 8 May 2018 16:38:17 +0000 (18:38 +0200)]
snake_casing file system plugin

18 months agoRemove useless check for null before free.
Arnaud Giersch [Mon, 7 May 2018 20:06:42 +0000 (22:06 +0200)]
Remove useless check for null before free.

18 months agoUse xxx_is_empty().
Arnaud Giersch [Mon, 7 May 2018 20:06:20 +0000 (22:06 +0200)]
Use xxx_is_empty().

18 months agoFix memory leak.
Arnaud Giersch [Mon, 7 May 2018 19:33:53 +0000 (21:33 +0200)]
Fix memory leak.

TRACE_end() needs to be called, which is run from simgrid::s4u::on_simulation_end(),
called at the end of SIMIX_run(), which is called from MSG_main().  Since MSG_init()
is already used, it seems an acceptable choice.

18 months agosurfExitCallbacks are gone.
Arnaud Giersch [Mon, 7 May 2018 09:56:35 +0000 (11:56 +0200)]
surfExitCallbacks are gone.

18 months agoadd and use callback instr_actor_on_creation
Frederic Suter [Mon, 7 May 2018 09:45:41 +0000 (11:45 +0200)]
add and use callback instr_actor_on_creation

 + rename instr_ actor callbacks
 + create actor related stuff when the first actor is created and not
   the first host (makes more sense)
 + revalidate a tesh file accordingly

18 months agosnake_casing the dirty page tracking plugin
Frederic Suter [Mon, 7 May 2018 08:05:03 +0000 (10:05 +0200)]
snake_casing the dirty page tracking plugin

18 months agothis parameter belongs to the plugin
Frederic Suter [Mon, 7 May 2018 07:24:30 +0000 (09:24 +0200)]
this parameter belongs to the plugin

18 months agorevalidate tesh
Frederic Suter [Mon, 7 May 2018 07:16:38 +0000 (09:16 +0200)]
revalidate tesh

18 months agocosmetics: remove double include and reorder
Frederic Suter [Mon, 7 May 2018 07:00:41 +0000 (09:00 +0200)]
cosmetics: remove double include and reorder

18 months agoconsistency: merge src/simgrid/host.cpp into src/s4u/s4u_Host.cpp
Frederic Suter [Mon, 7 May 2018 06:59:13 +0000 (08:59 +0200)]
consistency: merge src/simgrid/host.cpp into src/s4u/s4u_Host.cpp

18 months agocosmetics: reorder file to be consistent with others
Frederic Suter [Mon, 7 May 2018 06:50:28 +0000 (08:50 +0200)]
cosmetics: reorder file to be consistent with others

18 months agofix java and build
Frederic Suter [Sun, 6 May 2018 17:57:23 +0000 (19:57 +0200)]
fix java and build

18 months agodid I say bummer?
Frederic Suter [Sun, 6 May 2018 16:36:33 +0000 (18:36 +0200)]
did I say bummer?

18 months agobummer
Frederic Suter [Sun, 6 May 2018 14:25:50 +0000 (16:25 +0200)]
bummer

18 months agomore legacy MSG functions
Frederic Suter [Sun, 6 May 2018 14:20:31 +0000 (16:20 +0200)]
more legacy MSG functions

18 months agouse signals and callbacks to trace actors
Frederic Suter [Sat, 5 May 2018 14:20:36 +0000 (16:20 +0200)]
use signals and callbacks to trace actors

18 months agoplease sonar by removing redundant test
Augustin Degomme [Sat, 5 May 2018 08:17:16 +0000 (10:17 +0200)]
please sonar by removing redundant test

18 months agoFix for s4u::ConditionVariable::wait_for, lost by previous commit.
Arnaud Giersch [Fri, 4 May 2018 21:30:51 +0000 (23:30 +0200)]
Fix for s4u::ConditionVariable::wait_for, lost by previous commit.

18 months agoStop using costly exceptions on timeout for simix synchros.
Arnaud Giersch [Fri, 4 May 2018 15:05:40 +0000 (17:05 +0200)]
Stop using costly exceptions on timeout for simix synchros.

Gives a speedup up to 1.7 on a particular application!

18 months agoCosmetics: define function before use.
Arnaud Giersch [Fri, 4 May 2018 14:06:00 +0000 (16:06 +0200)]
Cosmetics: define function before use.

18 months agoUse kernelImmediate for simcall cond_init.
Arnaud Giersch [Fri, 4 May 2018 14:03:57 +0000 (16:03 +0200)]
Use kernelImmediate for simcall cond_init.

18 months agomsg_process_from_PID => sg_actor_by_PID
Frederic Suter [Fri, 4 May 2018 09:05:47 +0000 (11:05 +0200)]
msg_process_from_PID => sg_actor_by_PID