Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
13 months agoAdd const attribute.
Arnaud Giersch [Sat, 9 Feb 2019 14:39:44 +0000 (15:39 +0100)]
Add const attribute.

13 months agoUsing cancel() seems to be the right way to do.
Arnaud Giersch [Sat, 9 Feb 2019 14:39:44 +0000 (15:39 +0100)]
Using cancel() seems to be the right way to do.

14 months agocosmetics
Frederic Suter [Fri, 8 Feb 2019 14:46:29 +0000 (15:46 +0100)]
cosmetics

14 months agohandle SleepImpl more like other activities
Frederic Suter [Fri, 8 Feb 2019 13:41:37 +0000 (14:41 +0100)]
handle SleepImpl more like other activities

14 months agobetter chaining
Frederic Suter [Fri, 8 Feb 2019 12:07:35 +0000 (13:07 +0100)]
better chaining

14 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Fri, 8 Feb 2019 11:55:52 +0000 (12:55 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

14 months agonamespace and method chaining for Io activities
Frederic Suter [Fri, 8 Feb 2019 11:55:25 +0000 (12:55 +0100)]
namespace and method chaining for Io activities

14 months agomv examples/platforms/trace examples/platforms/profiles
Martin Quinson [Fri, 8 Feb 2019 11:17:05 +0000 (12:17 +0100)]
mv examples/platforms/trace examples/platforms/profiles

14 months agoallow and use method chaining for ExecImpl
Frederic Suter [Fri, 8 Feb 2019 11:33:51 +0000 (12:33 +0100)]
allow and use method chaining for ExecImpl

14 months agoimprove the doc of this example
Martin Quinson [Fri, 8 Feb 2019 11:11:33 +0000 (12:11 +0100)]
improve the doc of this example

14 months agoadd an example of speed profile in the platform
Martin Quinson [Fri, 8 Feb 2019 10:55:17 +0000 (11:55 +0100)]
add an example of speed profile in the platform

14 months agouse namespaces for sake of readability
Frederic Suter [Fri, 8 Feb 2019 11:09:52 +0000 (12:09 +0100)]
use namespaces for sake of readability

14 months agoreplace SIMIX_execution_start by modern simcall
Frederic Suter [Fri, 8 Feb 2019 11:01:01 +0000 (12:01 +0100)]
replace SIMIX_execution_start by modern simcall

14 months agofix misleading doc!
Martin Quinson [Fri, 8 Feb 2019 10:50:53 +0000 (11:50 +0100)]
fix misleading doc!

14 months agonew functions: Link::is_{on,off}()
Martin Quinson [Fri, 8 Feb 2019 10:49:45 +0000 (11:49 +0100)]
new functions: Link::is_{on,off}()

14 months agochange_host -> set_host
Frederic Suter [Fri, 8 Feb 2019 10:02:26 +0000 (11:02 +0100)]
change_host -> set_host

14 months agoallow to set a profile to links and hosts from S4U
Martin Quinson [Fri, 8 Feb 2019 09:33:29 +0000 (10:33 +0100)]
allow to set a profile to links and hosts from S4U

14 months agoFix generation of graphical-toc.svg.
Arnaud Giersch [Wed, 6 Feb 2019 22:13:25 +0000 (23:13 +0100)]
Fix generation of graphical-toc.svg.

Attribute target="_top" was duplicated on line 6120.

14 months agoUpdate some URLs to simgrid.org.
Arnaud Giersch [Wed, 6 Feb 2019 17:12:29 +0000 (18:12 +0100)]
Update some URLs to simgrid.org.

14 months agoFix URL for simgrid.dtd.
Arnaud Giersch [Wed, 6 Feb 2019 17:01:48 +0000 (18:01 +0100)]
Fix URL for simgrid.dtd.

14 months agoFix null pointer dereference spotted by scan-build.
Arnaud Giersch [Wed, 6 Feb 2019 16:06:23 +0000 (17:06 +0100)]
Fix null pointer dereference spotted by scan-build.

14 months agoAssert that there is no memory leak (help scan-build).
Arnaud Giersch [Wed, 6 Feb 2019 13:53:51 +0000 (14:53 +0100)]
Assert that there is no memory leak (help scan-build).

14 months agoRewrite smpi_copy_file() again.
Arnaud Giersch [Wed, 6 Feb 2019 13:53:19 +0000 (14:53 +0100)]
Rewrite smpi_copy_file() again.

Slightly improve commit b618980c2b58d7347c8f9444dc63bbb3ae082e18.

14 months ago[codacy/cppcheck] Comment dead code (is_homogeneous is always true).
Arnaud Giersch [Wed, 6 Feb 2019 08:56:44 +0000 (09:56 +0100)]
[codacy/cppcheck] Comment dead code (is_homogeneous is always true).

14 months agofactor suspend/resume across Activities
Frederic Suter [Wed, 6 Feb 2019 14:21:14 +0000 (15:21 +0100)]
factor suspend/resume across Activities
 + specific Activity can override (CommImpl and SynchroRaw do that)
   + current comments are pretty confusing
 + signals are now in ActivityImpl

14 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Tue, 5 Feb 2019 21:03:17 +0000 (22:03 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

14 months agorequalify tesh
Augustin Degomme [Tue, 5 Feb 2019 15:16:11 +0000 (16:16 +0100)]
requalify tesh

14 months agoremove some codacy warnings
Augustin Degomme [Tue, 5 Feb 2019 15:10:11 +0000 (16:10 +0100)]
remove some codacy warnings

14 months agoWith Icc, change bogus error into warning.
Arnaud Giersch [Tue, 5 Feb 2019 14:28:52 +0000 (15:28 +0100)]
With Icc, change bogus error into warning.

src/xbt/mallocator.c(49): error #2330: argument of type "atomic_flag *" is incompatible with parameter of type "volatile void *" (dropping qualifiers)
     atomic_flag_clear(&m->lock);
     ^

14 months agoPlug memory leak.
Arnaud Giersch [Tue, 5 Feb 2019 13:09:11 +0000 (14:09 +0100)]
Plug memory leak.

14 months agoProvide our own main() for unit-tests.
Arnaud Giersch [Tue, 5 Feb 2019 13:01:13 +0000 (14:01 +0100)]
Provide our own main() for unit-tests.

The goal is to be able to use the --log=... command line parameters.

14 months agoUse C++11 std::atomic instead of gcc builtins.
Arnaud Giersch [Wed, 7 Mar 2018 17:51:09 +0000 (18:51 +0100)]
Use C++11 std::atomic instead of gcc builtins.

NOTE: wrong type for futex operations (rude cast).

14 months agoUse C11 atomic_flag instead of gcc builtins.
Arnaud Giersch [Tue, 5 Feb 2019 11:05:51 +0000 (12:05 +0100)]
Use C11 atomic_flag instead of gcc builtins.

14 months agoUpdate .mailmap.
Arnaud Giersch [Tue, 5 Feb 2019 11:03:30 +0000 (12:03 +0100)]
Update .mailmap.

14 months agoCosmetics.
Arnaud Giersch [Tue, 5 Feb 2019 10:21:35 +0000 (11:21 +0100)]
Cosmetics.

Undefined macros expand to zero anyway, and it avoids a cppcheck issue.

14 months agoReduce scope for variable 'rank'.
Arnaud Giersch [Tue, 5 Feb 2019 10:11:34 +0000 (11:11 +0100)]
Reduce scope for variable 'rank'.

14 months agoCosmetic rewrite to please cppcheck.
Arnaud Giersch [Tue, 5 Feb 2019 10:10:45 +0000 (11:10 +0100)]
Cosmetic rewrite to please cppcheck.

Fix: Condition 'slow_copy' is always true.

14 months agoReset pointer to make it clear for cppcheck that it's not freed twice.
Arnaud Giersch [Tue, 5 Feb 2019 09:47:52 +0000 (10:47 +0100)]
Reset pointer to make it clear for cppcheck that it's not freed twice.

14 months agoInitialized all struct members.
Arnaud Giersch [Tue, 5 Feb 2019 09:41:19 +0000 (10:41 +0100)]
Initialized all struct members.

Currently not tested, but should fix smpi_shared_free().

14 months agoCosmetic rewrite to please cppcheck.
Arnaud Giersch [Tue, 5 Feb 2019 09:36:53 +0000 (10:36 +0100)]
Cosmetic rewrite to please cppcheck.

Fix: Variable 'rem_size' is assigned a value that is never used.

14 months ago[SMPI] Fix iprobe bound
Christian Heinrich [Tue, 5 Feb 2019 09:09:29 +0000 (10:09 +0100)]
[SMPI] Fix iprobe bound

While looping over iprobes, not the whole CPU can be used.

14 months agoSIMIX_process_change_host becomes ActorImpl::change_host
Frederic Suter [Mon, 4 Feb 2019 11:32:44 +0000 (12:32 +0100)]
SIMIX_process_change_host becomes ActorImpl::change_host

14 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Mon, 4 Feb 2019 10:42:02 +0000 (11:42 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

14 months ago[codacy/cppcheck] A few more issues.
Arnaud Giersch [Mon, 4 Feb 2019 10:01:22 +0000 (11:01 +0100)]
[codacy/cppcheck] A few more issues.

14 months ago[codacy/cppcheck] A few more issues.
Arnaud Giersch [Mon, 4 Feb 2019 10:01:22 +0000 (11:01 +0100)]
[codacy/cppcheck] A few more issues.

14 months agoMerge remote-tracking branch 'origin/master'
Arnaud Giersch [Mon, 4 Feb 2019 09:58:41 +0000 (10:58 +0100)]
Merge remote-tracking branch 'origin/master'

14 months agofix clang builds
Frederic Suter [Mon, 4 Feb 2019 09:54:32 +0000 (10:54 +0100)]
fix clang builds

14 months agoMerge remote-tracking branch 'origin/master'
Arnaud Giersch [Mon, 4 Feb 2019 09:45:21 +0000 (10:45 +0100)]
Merge remote-tracking branch 'origin/master'

14 months ago[codacy/cppcheck] Potential memory leak.
Arnaud Giersch [Mon, 4 Feb 2019 09:42:31 +0000 (10:42 +0100)]
[codacy/cppcheck] Potential memory leak.

14 months agothink about users
Frederic Suter [Mon, 4 Feb 2019 09:40:30 +0000 (10:40 +0100)]
think about users

14 months ago[codacy/cppcheck] Fix: Variable is reassigned a value before the old one has been...
Arnaud Giersch [Mon, 4 Feb 2019 09:29:01 +0000 (10:29 +0100)]
[codacy/cppcheck] Fix: Variable is reassigned a value before the old one has been used.

14 months ago[codacy/cppcheck] Reduce scope for variables.
Arnaud Giersch [Mon, 4 Feb 2019 09:24:31 +0000 (10:24 +0100)]
[codacy/cppcheck] Reduce scope for variables.

14 months ago[codacy] minor issues in shell scripts.
Arnaud Giersch [Mon, 4 Feb 2019 09:24:15 +0000 (10:24 +0100)]
[codacy] minor issues in shell scripts.

14 months agocodacy.yml: complete and sort exclusion list.
Arnaud Giersch [Mon, 4 Feb 2019 07:57:28 +0000 (08:57 +0100)]
codacy.yml: complete and sort exclusion list.

Alsot exclude python scripts for sphinx in docs/ subdirectory.

14 months ago[codacy] Add quotes around exclude paths in .codacy.yml.
Arnaud Giersch [Sun, 3 Feb 2019 20:00:26 +0000 (21:00 +0100)]
[codacy] Add quotes around exclude paths in .codacy.yml.

14 months agoset_kill_time is a method of ActorImpl
Frederic Suter [Sun, 3 Feb 2019 19:25:08 +0000 (20:25 +0100)]
set_kill_time is a method of ActorImpl

14 months agoEngine is in charge of platform creation, not SIMIX anymore
Frederic Suter [Sun, 3 Feb 2019 18:51:40 +0000 (19:51 +0100)]
Engine is in charge of platform creation, not SIMIX anymore

14 months agomove code to the right place
Frederic Suter [Sun, 3 Feb 2019 17:11:54 +0000 (18:11 +0100)]
move code to the right place

14 months agofurther cleaning in simcalls
Frederic Suter [Sun, 3 Feb 2019 17:08:36 +0000 (18:08 +0100)]
further cleaning in simcalls

14 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Sun, 3 Feb 2019 16:22:53 +0000 (17:22 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

14 months agomodern simcall for set_category
Frederic Suter [Sun, 3 Feb 2019 16:22:30 +0000 (17:22 +0100)]
modern simcall for set_category

14 months agoallow all activities to set their tracing category
Frederic Suter [Sun, 3 Feb 2019 15:42:01 +0000 (16:42 +0100)]
allow all activities to set their tracing category

14 months agomodernize a few simcall_execution_* calls
Frederic Suter [Sun, 3 Feb 2019 14:18:50 +0000 (15:18 +0100)]
modernize a few simcall_execution_* calls

14 months agosanitize the OOP of kernel::profile
Martin Quinson [Sun, 3 Feb 2019 14:57:04 +0000 (15:57 +0100)]
sanitize the OOP of kernel::profile

* Add a Profile::next() returning the next event of the list.
  This opens the way to future profile kinds, based on statistical
  generator instead of explicit lists.
  Earlier, FES was advancing the internal pointer of the Profile.

* Change FutureEvtSet::add_trace(Profile, Resource) into Profile::schedule(FutureEvtSet, Resource).
  This way, Profile knows about its FES and there is no need for a
  global (also making testing easier), and FES does not have to mess
  with the internals of Profile.

14 months agoFix (old) clang builds
Martin Quinson [Sun, 3 Feb 2019 11:23:17 +0000 (12:23 +0100)]
Fix (old) clang builds

14 months agoFix lua build
Martin Quinson [Sun, 3 Feb 2019 10:48:00 +0000 (11:48 +0100)]
Fix lua build

14 months agosonar: simplify this code
Martin Quinson [Sat, 2 Feb 2019 22:58:14 +0000 (23:58 +0100)]
sonar: simplify this code

14 months agosonar: Replace this if-then-else statement by a single statement
Martin Quinson [Sat, 2 Feb 2019 21:44:10 +0000 (22:44 +0100)]
sonar: Replace this if-then-else statement by a single statement

14 months agoprofile: cosmetics: inline a function and rename a variable
Martin Quinson [Sat, 2 Feb 2019 17:13:16 +0000 (18:13 +0100)]
profile: cosmetics: inline a function and rename a variable

14 months agos:k:profile: turn two functions into static methods
Martin Quinson [Sat, 2 Feb 2019 16:59:51 +0000 (17:59 +0100)]
s:k:profile: turn two functions into static methods

14 months agoalign file position to the C++ namespaces
Martin Quinson [Sat, 2 Feb 2019 08:02:49 +0000 (09:02 +0100)]
align file position to the C++ namespaces

14 months agoproperly split init/start for Exec activities
Frederic Suter [Sat, 2 Feb 2019 10:17:15 +0000 (11:17 +0100)]
properly split init/start for Exec activities

14 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Sat, 2 Feb 2019 08:45:46 +0000 (09:45 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

14 months agomake sure to define _FILE_OFFSET_BITS as early as possible
Martin Quinson [Fri, 1 Feb 2019 22:56:17 +0000 (23:56 +0100)]
make sure to define _FILE_OFFSET_BITS as early as possible

It won't be effective if defined after the system headers are loaded.

14 months agoPlease codacy, forget about Catch2
Martin Quinson [Fri, 1 Feb 2019 21:29:06 +0000 (22:29 +0100)]
Please codacy, forget about Catch2

14 months agodoc: reword to remove crufts of the old cunit
Martin Quinson [Fri, 1 Feb 2019 21:28:16 +0000 (22:28 +0100)]
doc: reword to remove crufts of the old cunit

14 months agotidy some #includes in MC
Martin Quinson [Fri, 1 Feb 2019 20:54:07 +0000 (21:54 +0100)]
tidy some #includes in MC

14 months agoPlease Sonar.
Arnaud Giersch [Fri, 1 Feb 2019 20:52:53 +0000 (21:52 +0100)]
Please Sonar.

14 months agoRemove last references to testall.
Arnaud Giersch [Fri, 1 Feb 2019 20:40:35 +0000 (21:40 +0100)]
Remove last references to testall.

14 months agofactor surf_action_ in ActivityImpl
Frederic Suter [Fri, 1 Feb 2019 19:42:25 +0000 (20:42 +0100)]
factor surf_action_ in ActivityImpl

14 months agouniform naming across activities
Frederic Suter [Fri, 1 Feb 2019 16:30:31 +0000 (17:30 +0100)]
uniform naming across activities

14 months agocosmetics
Frederic Suter [Fri, 1 Feb 2019 16:30:02 +0000 (17:30 +0100)]
cosmetics

14 months ago[sonar] Split declarations, unshadow variables.
Arnaud Giersch [Fri, 1 Feb 2019 14:43:25 +0000 (15:43 +0100)]
[sonar] Split declarations, unshadow variables.

14 months agoRIP cunit.
Arnaud Giersch [Fri, 1 Feb 2019 14:03:47 +0000 (15:03 +0100)]
RIP cunit.

14 months agoConvert the unit tests of xbt::config to Catch2.
Arnaud Giersch [Fri, 1 Feb 2019 13:58:38 +0000 (14:58 +0100)]
Convert the unit tests of xbt::config to Catch2.

14 months agoConvert the unit tests of xbt::str to Catch2.
Arnaud Giersch [Thu, 31 Jan 2019 22:18:06 +0000 (23:18 +0100)]
Convert the unit tests of xbt::str to Catch2.

14 months agoConvert the unit tests of xbt::dict to Catch2.
Arnaud Giersch [Thu, 31 Jan 2019 20:25:26 +0000 (21:25 +0100)]
Convert the unit tests of xbt::dict to Catch2.

14 months agoReduce number of #include.
Arnaud Giersch [Thu, 31 Jan 2019 15:32:57 +0000 (16:32 +0100)]
Reduce number of #include.

14 months agoCheck for emptyness, and populate dynar before testing xbt_dynar_foreach_ptr.
Arnaud Giersch [Thu, 31 Jan 2019 15:16:37 +0000 (16:16 +0100)]
Check for emptyness, and populate dynar before testing xbt_dynar_foreach_ptr.

14 months agoproperly split init and start for IO activities
Frederic Suter [Fri, 1 Feb 2019 12:07:18 +0000 (13:07 +0100)]
properly split init and start for IO activities

14 months agoIgnore Catch2 in sonar
Martin Quinson [Thu, 31 Jan 2019 20:35:01 +0000 (21:35 +0100)]
Ignore Catch2 in sonar

14 months agoRevert "Try to improve coverage reports for MC tests."
Arnaud Giersch [Thu, 31 Jan 2019 14:29:41 +0000 (15:29 +0100)]
Revert "Try to improve coverage reports for MC tests."

This reverts commit db3df03114cb65a9c27c2c1dfd6faf964b571254.

The following tests are broken (timeout): mc-bugged1-liveness-visited-ucontext,
mc-bugged1-liveness-visited-ucontext-sparse and mc-umpire-comm-dup-no-free2.

To reproduce, it seems that compile_optimizations should be disabled.

14 months agofix makedist
Martin Quinson [Thu, 31 Jan 2019 09:08:33 +0000 (10:08 +0100)]
fix makedist

14 months agoConvert the unit tests of xbt::dynar to Catch2
Martin Quinson [Thu, 31 Jan 2019 08:52:56 +0000 (09:52 +0100)]
Convert the unit tests of xbt::dynar to Catch2

14 months agocosmetics
Martin Quinson [Thu, 31 Jan 2019 08:52:05 +0000 (09:52 +0100)]
cosmetics

14 months agoTry to improve coverage reports for MC tests.
Arnaud Giersch [Wed, 30 Jan 2019 22:36:47 +0000 (23:36 +0100)]
Try to improve coverage reports for MC tests.

14 months agoDefine coverage_checkpoint().
Arnaud Giersch [Wed, 30 Jan 2019 22:36:05 +0000 (23:36 +0100)]
Define coverage_checkpoint().

It's defined as an alias for __gcov_flush() when coverage is enabled, or a
no-op otherwise.

14 months agoDefine COVERAGE for C++ too.
Arnaud Giersch [Wed, 30 Jan 2019 20:41:07 +0000 (21:41 +0100)]
Define COVERAGE for C++ too.

14 months agoRemove unused static functions.
Arnaud Giersch [Wed, 30 Jan 2019 09:14:20 +0000 (10:14 +0100)]
Remove unused static functions.

14 months agoRefactorize and speedup a unit test
Martin Quinson [Thu, 31 Jan 2019 08:03:35 +0000 (09:03 +0100)]
Refactorize and speedup a unit test

I don't think there is a real need to test each region size from 1 to
256. Testing on [1;32[ should give a sufficient coverage, I think.