Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
2 years agoMerge pull request #228 from Takishipp/actor-execute
Martin Quinson [Sun, 15 Oct 2017 14:37:30 +0000 (16:37 +0200)]
Merge pull request #228 from Takishipp/actor-execute

Convert actor-execute to s4u API

2 years agoMake it clearer that there's no memory leak here.
Arnaud Giersch [Sun, 15 Oct 2017 13:57:14 +0000 (15:57 +0200)]
Make it clearer that there's no memory leak here.

2 years agoFix segfault when exiting without running the simulation.
Arnaud Giersch [Sun, 15 Oct 2017 13:48:57 +0000 (15:48 +0200)]
Fix segfault when exiting without running the simulation.

A big warning is issued instead: not sure that it's sufficient for bug #230
to be closed.

2 years agoReplace malloc/free by new/delete.
Arnaud Giersch [Sun, 15 Oct 2017 12:55:05 +0000 (14:55 +0200)]
Replace malloc/free by new/delete.

2 years agoDocument last changes to public API, and keep old method (marked as deprecated).
Arnaud Giersch [Sun, 15 Oct 2017 12:41:38 +0000 (14:41 +0200)]
Document last changes to public API, and keep old method (marked as deprecated).

2 years agoDefine XBT_ATTRIB_DEPRECATED_v321.
Arnaud Giersch [Sun, 15 Oct 2017 12:13:56 +0000 (14:13 +0200)]
Define XBT_ATTRIB_DEPRECATED_v321.

2 years agoChange getName() and add getCname() in s4u::Storage.
Arnaud Giersch [Sat, 14 Oct 2017 20:52:46 +0000 (22:52 +0200)]
Change getName() and add getCname() in s4u::Storage.

2 years agoConstify getName()/getCname() in s4u::NetZone.
Arnaud Giersch [Sat, 14 Oct 2017 20:49:28 +0000 (22:49 +0200)]
Constify getName()/getCname() in s4u::NetZone.

2 years agoChange getName() and add getCname() in s4u::Mailbox.
Arnaud Giersch [Sat, 14 Oct 2017 20:40:05 +0000 (22:40 +0200)]
Change getName() and add getCname() in s4u::Mailbox.

2 years agoChange name() to getCname() and add getName() in s4u::Link.
Arnaud Giersch [Sat, 14 Oct 2017 20:15:40 +0000 (22:15 +0200)]
Change name() to getCname() and add getName() in s4u::Link.

2 years agoCosmetics.
Arnaud Giersch [Sat, 14 Oct 2017 20:14:55 +0000 (22:14 +0200)]
Cosmetics.

2 years agoConstify getName()/getCname() in s4u::Actor.
Arnaud Giersch [Sat, 14 Oct 2017 20:11:41 +0000 (22:11 +0200)]
Constify getName()/getCname() in s4u::Actor.

2 years agoAdd getName()/getCname() in kernel::activity::MailboxImpl.
Arnaud Giersch [Sat, 14 Oct 2017 20:07:08 +0000 (22:07 +0200)]
Add getName()/getCname() in kernel::activity::MailboxImpl.

2 years agoChange cname() to getCname() and add getName() in simix::ActorImpl.
Arnaud Giersch [Sat, 14 Oct 2017 14:12:06 +0000 (16:12 +0200)]
Change cname() to getCname() and add getName() in simix::ActorImpl.

2 years agoChange name()/cname() to getName()/getCname() in surf::FileImpl.
Arnaud Giersch [Sat, 14 Oct 2017 13:48:27 +0000 (15:48 +0200)]
Change name()/cname() to getName()/getCname() in surf::FileImpl.

2 years agoChange cname() to getCname() and add getName() in surf::Resource.
Arnaud Giersch [Sat, 14 Oct 2017 12:03:03 +0000 (14:03 +0200)]
Change cname() to getCname() and add getName() in surf::Resource.

2 years agoChange name()/cname() to getName()/getCname() in kernel::routing::NetPoint.
Arnaud Giersch [Sat, 14 Oct 2017 11:23:25 +0000 (13:23 +0200)]
Change name()/cname() to getName()/getCname() in kernel::routing::NetPoint.

2 years agoUse a C++ string instead of char* for mailbox name.
Arnaud Giersch [Sat, 14 Oct 2017 21:24:33 +0000 (23:24 +0200)]
Use a C++ string instead of char* for mailbox name.

2 years agoAdd a method to get the string_data from a simgrid::xbt::string.
Arnaud Giersch [Sat, 14 Oct 2017 21:23:09 +0000 (23:23 +0200)]
Add a method to get the string_data from a simgrid::xbt::string.

2 years agoReindent.
Arnaud Giersch [Fri, 13 Oct 2017 11:57:05 +0000 (13:57 +0200)]
Reindent.

2 years agoAvoid potential memory leak.
Arnaud Giersch [Fri, 13 Oct 2017 11:40:47 +0000 (13:40 +0200)]
Avoid potential memory leak.

2 years agoCosmetics: remove redundant "case" clause.
Arnaud Giersch [Fri, 13 Oct 2017 10:22:17 +0000 (12:22 +0200)]
Cosmetics: remove redundant "case" clause.

2 years agoCosmetics: remove redundant access specifier.
Arnaud Giersch [Fri, 13 Oct 2017 10:07:49 +0000 (12:07 +0200)]
Cosmetics: remove redundant access specifier.

2 years agoCosmetics: one statement per declaration.
Arnaud Giersch [Fri, 13 Oct 2017 09:54:28 +0000 (11:54 +0200)]
Cosmetics: one statement per declaration.

2 years agoRework way of creating Type hierarchy.
Frederic Suter [Fri, 13 Oct 2017 12:51:54 +0000 (14:51 +0200)]
Rework way of creating Type hierarchy.

Not perfect but I hope a bit better/clearer

2 years agouse bools and true/false
Frederic Suter [Fri, 13 Oct 2017 10:48:44 +0000 (12:48 +0200)]
use bools and true/false

2 years agoMore objectification of instr::Type (wip)
Frederic Suter [Fri, 13 Oct 2017 09:49:43 +0000 (11:49 +0200)]
More objectification of instr::Type (wip)

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 13 Oct 2017 09:11:47 +0000 (11:11 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoRepair Dijkstra's cache mode.
Arnaud Giersch [Fri, 13 Oct 2017 08:59:25 +0000 (10:59 +0200)]
Repair Dijkstra's cache mode.

2 years agoRemove an indirection and fix memory leak.
Arnaud Giersch [Fri, 13 Oct 2017 08:08:11 +0000 (10:08 +0200)]
Remove an indirection and fix memory leak.

2 years agoFix memory leaks.
Arnaud Giersch [Thu, 12 Oct 2017 21:37:35 +0000 (23:37 +0200)]
Fix memory leaks.

2 years agoIn MSG_parallel_task_create(), take a copy of flops_amount and bytes_amount.
Arnaud Giersch [Thu, 12 Oct 2017 21:25:14 +0000 (23:25 +0200)]
In MSG_parallel_task_create(), take a copy of flops_amount and bytes_amount.

Fix undefined behavior when they were not dynamically allocated, and permit
to replace more malloc/free.

2 years agoAnother bunch of s/malloc/new/.
Arnaud Giersch [Thu, 12 Oct 2017 14:50:38 +0000 (16:50 +0200)]
Another bunch of s/malloc/new/.

2 years agorefactoring and namespacing
Frederic Suter [Thu, 12 Oct 2017 15:29:10 +0000 (17:29 +0200)]
refactoring and namespacing

2 years agomove creation and destruction logging to Class
Frederic Suter [Thu, 12 Oct 2017 13:18:07 +0000 (15:18 +0200)]
move creation and destruction logging to Class

2 years agosimplify container creation
Frederic Suter [Thu, 12 Oct 2017 12:11:12 +0000 (14:11 +0200)]
simplify container creation

2 years agoPJ_container_remove_from_parent () becomes Container::removeFromParent
Frederic Suter [Thu, 12 Oct 2017 11:14:36 +0000 (13:14 +0200)]
PJ_container_remove_from_parent () becomes Container::removeFromParent

2 years agouse namespaces for instr containers and values
Frederic Suter [Thu, 12 Oct 2017 10:57:35 +0000 (12:57 +0200)]
use namespaces for instr containers and values

2 years agomore stringification/privatization
Frederic Suter [Thu, 12 Oct 2017 09:47:36 +0000 (11:47 +0200)]
more stringification/privatization

2 years agokill another dict in instr
Frederic Suter [Thu, 12 Oct 2017 08:42:21 +0000 (10:42 +0200)]
kill another dict in instr

2 years agodicts to maps in Dijkstra
Frederic Suter [Thu, 12 Oct 2017 07:58:40 +0000 (09:58 +0200)]
dicts to maps in Dijkstra

Is that code tested?

2 years agominor smell--
Frederic Suter [Thu, 12 Oct 2017 07:25:00 +0000 (09:25 +0200)]
minor smell--

2 years agoFix build on freebsd and macos.
Arnaud Giersch [Wed, 11 Oct 2017 21:31:38 +0000 (23:31 +0200)]
Fix build on freebsd and macos.

2 years agoanother pre-release check to do
Martin Quinson [Wed, 11 Oct 2017 21:20:19 +0000 (23:20 +0200)]
another pre-release check to do

2 years agodocument how the jenkins hosts were created (fix #210)
Martin Quinson [Wed, 11 Oct 2017 21:19:43 +0000 (23:19 +0200)]
document how the jenkins hosts were created (fix #210)

2 years agoComment unused function parameter.
Arnaud Giersch [Wed, 11 Oct 2017 20:27:51 +0000 (22:27 +0200)]
Comment unused function parameter.

2 years agoC -> C++ casts.
Arnaud Giersch [Wed, 11 Oct 2017 19:47:55 +0000 (21:47 +0200)]
C -> C++ casts.

2 years agoUse std::string in s4u examples.
Arnaud Giersch [Wed, 11 Oct 2017 12:38:13 +0000 (14:38 +0200)]
Use std::string in s4u examples.

2 years agoReplace some malloc/free by C++ new/delete.
Arnaud Giersch [Wed, 11 Oct 2017 09:08:39 +0000 (11:08 +0200)]
Replace some malloc/free by C++ new/delete.

2 years agoRefactoring instr
Frederic Suter [Wed, 11 Oct 2017 13:23:03 +0000 (15:23 +0200)]
Refactoring instr

PJ_container_get and PJ_container_get_or_null functions become
byName(std::string name) and byNameOrNull(std::string name) methods of
the Container class.

2 years agofurther cleanups in instr
Frederic Suter [Wed, 11 Oct 2017 09:01:31 +0000 (11:01 +0200)]
further cleanups in instr

2 years agouse initialization list to please sonar
Frederic Suter [Wed, 11 Oct 2017 07:24:40 +0000 (09:24 +0200)]
use initialization list to please sonar

2 years agoAdd a comment to empty function.
Arnaud Giersch [Tue, 10 Oct 2017 21:05:52 +0000 (23:05 +0200)]
Add a comment to empty function.

2 years agoRemove useless typedef's from C++ files.
Arnaud Giersch [Tue, 10 Oct 2017 20:48:18 +0000 (22:48 +0200)]
Remove useless typedef's from C++ files.

2 years agoComment some unused parameters.
Arnaud Giersch [Tue, 10 Oct 2017 20:38:40 +0000 (22:38 +0200)]
Comment some unused parameters.

2 years agothis field is useless indeed. Good catch CI
Frederic Suter [Tue, 10 Oct 2017 16:47:21 +0000 (18:47 +0200)]
this field is useless indeed. Good catch CI
(BTW it was useless but public before ;))

2 years agofactoring in instr Events
Frederic Suter [Tue, 10 Oct 2017 16:29:12 +0000 (18:29 +0200)]
factoring in instr Events

If all derived classes share the same fields, they may belong to the
super class ...

sonar will whine about protected fields, but I don't care

2 years agostringify and objectify instr::Value (wip)
Frederic Suter [Tue, 10 Oct 2017 15:05:16 +0000 (17:05 +0200)]
stringify and objectify instr::Value (wip)

get -> byName
get_or_new -> byNameOrCreate (as for mailboxes)
constructor and most fields are private + accessors

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 10 Oct 2017 12:29:16 +0000 (14:29 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoremove useless parameters in header generation
Frederic Suter [Tue, 10 Oct 2017 12:22:56 +0000 (14:22 +0200)]
remove useless parameters in header generation

2 years agoAdd dummy typedefs to fix build in C mode.
Arnaud Giersch [Mon, 9 Oct 2017 13:38:08 +0000 (15:38 +0200)]
Add dummy typedefs to fix build in C mode.

2 years agoApply clang-format on previously renamed files.
Arnaud Giersch [Tue, 10 Oct 2017 10:09:09 +0000 (12:09 +0200)]
Apply clang-format on previously renamed files.

2 years agoSort include lists according to clang-format.
Arnaud Giersch [Tue, 10 Oct 2017 09:48:21 +0000 (11:48 +0200)]
Sort include lists according to clang-format.

2 years agoUse C++ style includes when available.
Arnaud Giersch [Tue, 10 Oct 2017 09:34:46 +0000 (11:34 +0200)]
Use C++ style includes when available.

2 years agoIn C++ files, replace SG_{BEGIN,END}+_DECL() by extern "C" { }.
Arnaud Giersch [Tue, 10 Oct 2017 09:29:10 +0000 (11:29 +0200)]
In C++ files, replace SG_{BEGIN,END}+_DECL() by extern "C" { }.

2 years agoRemove useless #ifdef __cplusplus from hpp files.
Arnaud Giersch [Mon, 9 Oct 2017 21:32:05 +0000 (23:32 +0200)]
Remove useless #ifdef __cplusplus from hpp files.

2 years agoFile smpi/include/private.h cannot be compiled in C mode either. Merge with private...
Arnaud Giersch [Mon, 9 Oct 2017 21:17:45 +0000 (23:17 +0200)]
File smpi/include/private.h cannot be compiled in C mode either. Merge with private.hpp.

2 years agoFix filenames in doc.
Arnaud Giersch [Mon, 9 Oct 2017 19:57:19 +0000 (21:57 +0200)]
Fix filenames in doc.

2 years agoRename C++ only header files from .h to .hpp.
Arnaud Giersch [Mon, 9 Oct 2017 19:46:39 +0000 (21:46 +0200)]
Rename C++ only header files from .h to .hpp.

2 years agosimcalls.py: improve indentation of generated files.
Arnaud Giersch [Mon, 9 Oct 2017 19:34:05 +0000 (21:34 +0200)]
simcalls.py: improve indentation of generated files.

2 years agosimplify destruction of containers
Frederic Suter [Tue, 10 Oct 2017 08:52:12 +0000 (10:52 +0200)]
simplify destruction of containers

2 years agorevalidate tesh files
Frederic Suter [Tue, 10 Oct 2017 08:36:21 +0000 (10:36 +0200)]
revalidate tesh files
(order change in destruction of containers)

2 years agoplease sonar
Frederic Suter [Tue, 10 Oct 2017 06:26:53 +0000 (08:26 +0200)]
please sonar
these are not TODOs anymore
the unused data is a good catch though

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 10 Oct 2017 06:11:14 +0000 (08:11 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoRename file .cc -> .cpp.
Arnaud Giersch [Mon, 9 Oct 2017 13:44:43 +0000 (15:44 +0200)]
Rename file .cc -> .cpp.

2 years agoProtect C++ code when building in C mode.
Arnaud Giersch [Mon, 9 Oct 2017 10:04:24 +0000 (12:04 +0200)]
Protect C++ code when building in C mode.

2 years agoChange some struct to class.
Arnaud Giersch [Sat, 7 Oct 2017 12:21:32 +0000 (14:21 +0200)]
Change some struct to class.

2 years agoReduce number of Sonar smells in Java examples.
Arnaud Giersch [Fri, 6 Oct 2017 21:30:50 +0000 (23:30 +0200)]
Reduce number of Sonar smells in Java examples.

2 years agoUse Msg logger in Java examples.
Arnaud Giersch [Fri, 6 Oct 2017 21:14:30 +0000 (23:14 +0200)]
Use Msg logger in Java examples.

2 years agosloppy replacement of dict by map and char* by string
Frederic Suter [Mon, 9 Oct 2017 15:25:46 +0000 (17:25 +0200)]
sloppy replacement of dict by map and char* by string
some tesh files have to be revalidated as the order in which the
destruction of containers is logged has changed.

2 years agodict->map
Frederic Suter [Mon, 9 Oct 2017 13:51:07 +0000 (15:51 +0200)]
dict->map

2 years agoa dict whose values are "1" (as char* of course) to say a element is
Frederic Suter [Mon, 9 Oct 2017 13:30:28 +0000 (15:30 +0200)]
a dict whose values are "1" (as char* of course) to say a element is
in is a std::set

2 years agofix a tiny todo
Frederic Suter [Mon, 9 Oct 2017 07:11:33 +0000 (09:11 +0200)]
fix a tiny todo

2 years agostringify a bit
Frederic Suter [Mon, 9 Oct 2017 06:54:54 +0000 (08:54 +0200)]
stringify a bit

2 years agouse initialisation lists (and std::string)
Frederic Suter [Mon, 9 Oct 2017 06:39:09 +0000 (08:39 +0200)]
use initialisation lists (and std::string)

2 years agoupdate the doc on how to release
Martin Quinson [Sun, 8 Oct 2017 21:14:15 +0000 (23:14 +0200)]
update the doc on how to release

2 years agostart the dev of the next version
Martin Quinson [Sun, 8 Oct 2017 21:14:03 +0000 (23:14 +0200)]
start the dev of the next version

2 years agoRelease v3.17 v3_17
Martin Quinson [Sun, 8 Oct 2017 16:44:53 +0000 (18:44 +0200)]
Release v3.17

2 years agoimprove doc of how to release
Martin Quinson [Sun, 8 Oct 2017 16:48:20 +0000 (18:48 +0200)]
improve doc of how to release

2 years agoIntegrate a Debian patch (armel portability)
Martin Quinson [Sun, 8 Oct 2017 16:47:14 +0000 (18:47 +0200)]
Integrate a Debian patch (armel portability)

2 years agocodacy
Martin Quinson [Sun, 8 Oct 2017 16:44:31 +0000 (18:44 +0200)]
codacy

2 years agoConvert actor-execute to s4u API
Takishipp [Fri, 6 Oct 2017 14:50:45 +0000 (16:50 +0200)]
Convert actor-execute to s4u API

2 years agoprepare the files for the next release
Martin Quinson [Fri, 6 Oct 2017 05:47:30 +0000 (07:47 +0200)]
prepare the files for the next release

2 years agowe will get ride of <include> very soon
Martin Quinson [Fri, 6 Oct 2017 05:44:09 +0000 (07:44 +0200)]
we will get ride of <include> very soon

2 years agoCover the Full network/optim.
Arnaud Giersch [Thu, 5 Oct 2017 21:02:09 +0000 (23:02 +0200)]
Cover the Full network/optim.

2 years agoCover the Reno2 network model.
Arnaud Giersch [Thu, 5 Oct 2017 20:52:17 +0000 (22:52 +0200)]
Cover the Reno2 network model.

2 years agoSet routing="None" for constant network model.
Arnaud Giersch [Thu, 5 Oct 2017 20:37:31 +0000 (22:37 +0200)]
Set routing="None" for constant network model.

2 years agoKill dead code: it's already split between CpuAction and NetworkCm02Action.
Arnaud Giersch [Thu, 5 Oct 2017 20:30:21 +0000 (22:30 +0200)]
Kill dead code: it's already split between CpuAction and NetworkCm02Action.

2 years agoFix invalid free when SIMIX_global_init() exits early.
Arnaud Giersch [Thu, 5 Oct 2017 19:48:33 +0000 (21:48 +0200)]
Fix invalid free when SIMIX_global_init() exits early.

2 years agoadd a test to cover the Constant-time network model
Martin Quinson [Thu, 5 Oct 2017 20:20:30 +0000 (22:20 +0200)]
add a test to cover the Constant-time network model