Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
13 years agoThis change avoids a warning on the Visual C++ compiler.
cherierm [Tue, 6 Nov 2007 13:40:32 +0000 (13:40 +0000)]
This change avoids a warning on the Visual C++ compiler.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4984 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoRemove the masterslave example from the solution
cherierm [Tue, 6 Nov 2007 13:39:24 +0000 (13:39 +0000)]
Remove the masterslave example from the solution

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4983 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAdapt some Visual C++ compiler options.
cherierm [Tue, 6 Nov 2007 13:38:50 +0000 (13:38 +0000)]
Adapt some Visual C++ compiler options.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4982 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoA distraction, the SIMIX_process_create() function takes only six parameters.
cherierm [Tue, 6 Nov 2007 12:40:24 +0000 (12:40 +0000)]
A distraction, the SIMIX_process_create() function takes only six parameters.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4981 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoThis change allow to avoid the Visual C++ compiler Warning that occur when you try...
cherierm [Tue, 6 Nov 2007 12:38:11 +0000 (12:38 +0000)]
This change allow to avoid the Visual C++ compiler Warning that occur when you try to compare an signed integer with a signed integer (xbt_dynar_length() function returns an unsigned long and the iterators or the indexes are generally integers).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4980 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoThis change avoid the redefinitions of log categories. To do this, the parent categor...
cherierm [Tue, 6 Nov 2007 12:30:06 +0000 (12:30 +0000)]
This change avoid the redefinitions of log categories. To do this, the parent category of a subcategory must be declared extern instead
public data (see the definition of the macro XBT_LOG_NEW_SUBCATEGORY). An other change corrects the definition of the macro
XBT_LOG_NEW_ROOT_SUBCATEGORY. Indeed, Ansi C (Visual C++ compiler standard language) doesn't allow to initialize a structure during
its declaration with non constant values.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4979 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCosmetics
mquinson [Tue, 6 Nov 2007 12:28:39 +0000 (12:28 +0000)]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4978 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAlso fix the prototype of the RL stub
mquinson [Tue, 6 Nov 2007 12:28:13 +0000 (12:28 +0000)]
Also fix the prototype of the RL stub

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4977 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoadd gras prop tests to the make check
mquinson [Tue, 6 Nov 2007 12:27:19 +0000 (12:27 +0000)]
add gras prop tests to the make check

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4976 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoJust disable a specific warning on Visual C++
cherierm [Tue, 6 Nov 2007 12:26:22 +0000 (12:26 +0000)]
Just disable a specific warning on Visual C++

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4975 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoadded compute timer test
markls [Tue, 6 Nov 2007 08:29:25 +0000 (08:29 +0000)]
added compute timer test

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4974 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agocleanups (among which example simplification)
mquinson [Tue, 6 Nov 2007 08:01:54 +0000 (08:01 +0000)]
cleanups (among which example simplification)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4973 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoRevalidate output
mquinson [Tue, 6 Nov 2007 08:01:22 +0000 (08:01 +0000)]
Revalidate output

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4972 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoFix constness of arguments
mquinson [Tue, 6 Nov 2007 08:00:28 +0000 (08:00 +0000)]
Fix constness of arguments

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4971 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agotesh file for simdag props updated...again
quasar [Mon, 5 Nov 2007 12:27:27 +0000 (12:27 +0000)]
tesh file for simdag props updated...again

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4969 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoone more buf fix to simdag prop
quasar [Mon, 5 Nov 2007 11:59:06 +0000 (11:59 +0000)]
one more buf fix to simdag prop

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4968 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoone more buf fix to simdag prop
quasar [Mon, 5 Nov 2007 11:55:02 +0000 (11:55 +0000)]
one more buf fix to simdag prop

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4967 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agocleared warn: init discards pointer...
quasar [Mon, 5 Nov 2007 10:49:00 +0000 (10:49 +0000)]
cleared warn: init discards pointer...

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4966 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoupdating gras prop example
quasar [Mon, 5 Nov 2007 10:36:16 +0000 (10:36 +0000)]
updating gras prop example

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4965 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoupdatig simdag prop examples
quasar [Mon, 5 Nov 2007 10:26:29 +0000 (10:26 +0000)]
updatig simdag prop examples

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4964 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agodelete platform msg props
quasar [Mon, 5 Nov 2007 10:21:04 +0000 (10:21 +0000)]
delete platform msg props

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4963 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoupdating msg prop tests
quasar [Mon, 5 Nov 2007 10:20:23 +0000 (10:20 +0000)]
updating msg prop tests

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4962 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agofactorized platform file
quasar [Mon, 5 Nov 2007 10:16:50 +0000 (10:16 +0000)]
factorized platform file

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4961 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoUpdate msg property test
quasar [Fri, 2 Nov 2007 09:07:05 +0000 (09:07 +0000)]
Update msg property test

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4960 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoUpdate msg property test
quasar [Fri, 2 Nov 2007 09:01:55 +0000 (09:01 +0000)]
Update msg property test

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4959 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agomodified tesh file for simdag/properties
quasar [Fri, 2 Nov 2007 08:37:45 +0000 (08:37 +0000)]
modified tesh file for simdag/properties

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4958 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoThis time, hopefully, the files are in valid version 2 of the DTD
mquinson [Fri, 2 Nov 2007 00:24:15 +0000 (00:24 +0000)]
This time, hopefully, the files are in valid version 2 of the DTD

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4957 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agosimdag properties example
quasar [Thu, 1 Nov 2007 16:42:09 +0000 (16:42 +0000)]
simdag properties example

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4954 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agogras prop example
quasar [Thu, 1 Nov 2007 16:06:39 +0000 (16:06 +0000)]
gras prop example

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4953 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agomsg properties example
quasar [Thu, 1 Nov 2007 15:59:42 +0000 (15:59 +0000)]
msg properties example

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4952 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoUpdate the platform files: the root tag is now called 'platform', not 'platform_descr...
mquinson [Wed, 31 Oct 2007 17:51:35 +0000 (17:51 +0000)]
Update the platform files: the root tag is now called 'platform', not 'platform_description'. Everyone knows that XML is a descriptive language, right?

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4946 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCorrected a small bug for transfers, and added host visualization,
lmarchal [Wed, 31 Oct 2007 16:01:57 +0000 (16:01 +0000)]
Corrected a small bug for transfers, and added host visualization,
process sorting, time axis and legend.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4944 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoupdating the dtd and some memory leacks
quasar [Wed, 31 Oct 2007 10:08:37 +0000 (10:08 +0000)]
updating the dtd and some memory leacks

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4943 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAdd totals
mquinson [Sun, 28 Oct 2007 22:37:16 +0000 (22:37 +0000)]
Add totals

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4932 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAdd the SVN revision to the VERSION string so that it lands into the archive names
mquinson [Sun, 28 Oct 2007 09:38:12 +0000 (09:38 +0000)]
Add the SVN revision to the VERSION string so that it lands into the archive names

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4930 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoUpdate the FAQ wrt lastest XML changes
mquinson [Sun, 28 Oct 2007 08:44:19 +0000 (08:44 +0000)]
Update the FAQ wrt lastest XML changes

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4929 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoExport the cute little macro that Arnaud devised to ease the bypassing work (and...
mquinson [Sun, 28 Oct 2007 08:32:07 +0000 (08:32 +0000)]
Export the cute little macro that Arnaud devised to ease the bypassing work (and add a pointer to the right example in its new location)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4928 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAlso display the status of the last build in the top box of each column
mquinson [Sat, 27 Oct 2007 23:05:43 +0000 (23:05 +0000)]
Also display the status of the last build in the top box of each column

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4927 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoReindent and cosmetics
mquinson [Sat, 27 Oct 2007 23:05:12 +0000 (23:05 +0000)]
Reindent and cosmetics

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4926 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoMac does not find the prototype of getline
mquinson [Sat, 27 Oct 2007 22:12:40 +0000 (22:12 +0000)]
Mac does not find the prototype of getline

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4925 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCosmetics: do display the amount of failed tests in the waterfall, as well as the...
mquinson [Sat, 27 Oct 2007 20:58:38 +0000 (20:58 +0000)]
Cosmetics: do display the amount of failed tests in the waterfall, as well as the svn revision

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4924 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoOff by one access
mquinson [Sat, 27 Oct 2007 18:02:44 +0000 (18:02 +0000)]
Off by one access

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4923 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoDamn it, we forgot to update the stubs, once again
mquinson [Sat, 27 Oct 2007 18:01:23 +0000 (18:01 +0000)]
Damn it, we forgot to update the stubs, once again

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4922 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoMessage improvements
mquinson [Sat, 27 Oct 2007 15:08:12 +0000 (15:08 +0000)]
Message improvements

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4921 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoRevalidate the output after the conversion to the lastest XML version (s/cpu/host...
mquinson [Sat, 27 Oct 2007 15:06:11 +0000 (15:06 +0000)]
Revalidate the output after the conversion to the lastest XML version (s/cpu/host/ changed every logging lines)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4920 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoOoops. When restarting the logging action with dynamic buffer because we overflowed...
mquinson [Sat, 27 Oct 2007 15:02:13 +0000 (15:02 +0000)]
Ooops. When restarting the logging action with dynamic buffer because we overflowed the static one, use the copy of the vaargs, not the original ones (which were already used by static action)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4919 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agocosmetics
mquinson [Sat, 27 Oct 2007 14:53:03 +0000 (14:53 +0000)]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4918 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoLet's be brutal: copy the pthread_mutex_timedlock prototype since I fail to get this...
mquinson [Sat, 27 Oct 2007 14:47:29 +0000 (14:47 +0000)]
Let's be brutal: copy the pthread_mutex_timedlock prototype since I fail to get this from the system headers on amd64

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4917 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCleanups around the inter-unixes portability code for sem_init, sem_timedwait and...
mquinson [Sat, 27 Oct 2007 14:35:18 +0000 (14:35 +0000)]
Cleanups around the inter-unixes portability code for sem_init, sem_timedwait and mutex_timedlock

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4916 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCheck for sem_init
mquinson [Sat, 27 Oct 2007 14:32:52 +0000 (14:32 +0000)]
Check for sem_init

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4915 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agonew line at EOF
mquinson [Sat, 27 Oct 2007 14:30:24 +0000 (14:30 +0000)]
new line at EOF

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4914 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCheck for pthread_mutex_timedlock()
mquinson [Sat, 27 Oct 2007 13:13:52 +0000 (13:13 +0000)]
Check for pthread_mutex_timedlock()

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4913 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoKill useless variable
mquinson [Sat, 27 Oct 2007 13:08:22 +0000 (13:08 +0000)]
Kill useless variable

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4912 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoMake test more verbose to understand why it timeouts on build daemons
mquinson [Sat, 27 Oct 2007 12:06:43 +0000 (12:06 +0000)]
Make test more verbose to understand why it timeouts on build daemons

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4911 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoOops, forgot to add this file
mquinson [Sat, 27 Oct 2007 11:47:05 +0000 (11:47 +0000)]
Oops, forgot to add this file

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4910 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agomore explicit error messages, and random cleanups
mquinson [Sat, 27 Oct 2007 11:45:21 +0000 (11:45 +0000)]
more explicit error messages, and random cleanups

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4909 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoFixup the bypassing example: pretend we've found v2 XML, and split the bypassing...
mquinson [Sat, 27 Oct 2007 11:43:08 +0000 (11:43 +0000)]
Fixup the bypassing example: pretend we've found v2 XML, and split the bypassing function in two (one for the platform and one for the application) to make sure that the platform isn't declared twice (once in MSG_create_environment and once in MSG_launch_application) since it fools things

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4908 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoFix stupid comments
mquinson [Sat, 27 Oct 2007 11:33:33 +0000 (11:33 +0000)]
Fix stupid comments

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4907 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoCheck that the platform file does not define the same element (host or link) twice...
mquinson [Sat, 27 Oct 2007 11:31:47 +0000 (11:31 +0000)]
Check that the platform file does not define the same element (host or link) twice. Fail otherwise.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4906 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAvoid segfault when trying to retrieve the name of the current thread while being...
mquinson [Sat, 27 Oct 2007 11:06:55 +0000 (11:06 +0000)]
Avoid segfault when trying to retrieve the name of the current thread while being in the maestro before initialization (where SIMIX_process_self returns NULL)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4905 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoMore java approach with a specific task type for finalization instead of magic value...
mquinson [Sat, 27 Oct 2007 09:59:52 +0000 (09:59 +0000)]
More java approach with a specific task type for finalization instead of magic value in uniq task type, plus random cleanups

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4904 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoBetter Java philosophy: create a new type of tasks to mean terminaison instead of...
mquinson [Sat, 27 Oct 2007 09:44:36 +0000 (09:44 +0000)]
Better Java philosophy: create a new type of tasks to mean terminaison instead of relying of some magic value of the classical computation task (plus reduce the verbosity of the slaves)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4903 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoReset the clock to 0 in surf_exit so that it gets zeroed in MSG_clean for people...
mquinson [Sat, 27 Oct 2007 09:21:27 +0000 (09:21 +0000)]
Reset the clock to 0 in surf_exit so that it gets zeroed in MSG_clean for people wanting to rerun simullations in the same setting (hello Pablo)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4902 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoReduce drastically the size of the test since it causes timeouts on slow build daemons
mquinson [Sat, 27 Oct 2007 09:12:22 +0000 (09:12 +0000)]
Reduce drastically the size of the test since it causes timeouts on slow build daemons

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4901 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoLast useless cleanup about Marc jumbo commit
mquinson [Sat, 27 Oct 2007 09:09:46 +0000 (09:09 +0000)]
Last useless cleanup about Marc jumbo commit

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4900 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoFactorize the current_property_set symbol of simix (for process properties) and surf...
mquinson [Sat, 27 Oct 2007 09:07:26 +0000 (09:07 +0000)]
Factorize the current_property_set symbol of simix (for process properties) and surf (for host and link properties); mark it 'extern' in include/surf/surf.h, and declare it strongly (ie, initialize it) in surf/surfxml_parse.c so that the poor macosx linker don't get fooled

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4899 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoKill code duplication, and doc tiny improvements
mquinson [Sat, 27 Oct 2007 08:36:33 +0000 (08:36 +0000)]
Kill code duplication, and doc tiny improvements

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4898 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoKill the useless _MSG_process_create_with_env_from_SIMIX(). _MSG_process_create_from_...
mquinson [Sat, 27 Oct 2007 08:24:36 +0000 (08:24 +0000)]
Kill the useless _MSG_process_create_with_env_from_SIMIX(). _MSG_process_create_from_SIMIX() is part of the private API of MSG (I mean internal to the lib), so it can be changed without pissing of users

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4897 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoLastest cleanups in surf/ of Marc's jumbo commit
mquinson [Sat, 27 Oct 2007 08:17:22 +0000 (08:17 +0000)]
Lastest cleanups in surf/ of Marc's jumbo commit

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4896 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoI think I now better understand the surf internals: each resource can be *either...
mquinson [Sat, 27 Oct 2007 07:34:39 +0000 (07:34 +0000)]
I think I now better understand the surf internals: each resource can be *either* a cpu or a link, so we can merge all the get_??_properties into only one method. No object will need both of them. This could be further improved by moving this to a function in surf directly instead of leaving this in models, but it would be the first attribute being handled that way, so I prefer keeping the pseudo object philosophy in place in surf

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4895 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agouseless cleanups
mquinson [Fri, 26 Oct 2007 21:17:37 +0000 (21:17 +0000)]
useless cleanups

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4894 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoYeah, that was a bit agressive against leaks...
mquinson [Fri, 26 Oct 2007 21:16:52 +0000 (21:16 +0000)]
Yeah, that was a bit agressive against leaks...

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4893 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoOoops, this is a graphxml file, not a surfxml one. It shouldn't be updated... (revert)
mquinson [Fri, 26 Oct 2007 21:08:05 +0000 (21:08 +0000)]
Ooops, this is a graphxml file, not a surfxml one. It shouldn't be updated... (revert)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4892 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoFixup the is_first semantic (does not change anything, but you're first the first...
mquinson [Fri, 26 Oct 2007 20:42:22 +0000 (20:42 +0000)]
Fixup the is_first semantic (does not change anything, but you're first the first time, not afterward)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4891 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoPropagate the s/network_link/link/ from the XML to the C code (hope I didn't break...
mquinson [Fri, 26 Oct 2007 20:38:57 +0000 (20:38 +0000)]
Propagate the s/network_link/link/ from the XML to the C code (hope I didn't break anything)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4890 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoAdd the stubs to properties related functions in real life
mquinson [Fri, 26 Oct 2007 19:51:25 +0000 (19:51 +0000)]
Add the stubs to properties related functions in real life

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4889 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoRename gras_os_property_value() to gras_os_host_property_value(); Documentation tiny...
mquinson [Fri, 26 Oct 2007 19:48:48 +0000 (19:48 +0000)]
Rename gras_os_property_value() to gras_os_host_property_value(); Documentation tiny improvements

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4888 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoprovide a value for the properties of the child
quasar [Fri, 26 Oct 2007 18:58:19 +0000 (18:58 +0000)]
provide a value for the properties of the child

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4887 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agolet's also be brutal with what seems to be a typo from Malek [Mt]
quasar [Fri, 26 Oct 2007 18:53:23 +0000 (18:53 +0000)]
let's also be brutal with what seems to be a typo from Malek [Mt]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4886 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoLet's be brutal since we fail to understand the problem: time to get some food&sleep
quasar [Fri, 26 Oct 2007 18:52:39 +0000 (18:52 +0000)]
Let's be brutal since we fail to understand the problem: time to get some food&sleep

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4885 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agorelax ordering enforcement
quasar [Fri, 26 Oct 2007 18:24:57 +0000 (18:24 +0000)]
relax ordering enforcement

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4884 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agothese symbols where only defined as extern, fooling the linker (plus some cleanups...
quasar [Fri, 26 Oct 2007 18:24:08 +0000 (18:24 +0000)]
these symbols where only defined as extern, fooling the linker (plus some cleanups in the output when the XML is too old

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4883 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agomove the callback lists to the public headers
quasar [Fri, 26 Oct 2007 18:01:06 +0000 (18:01 +0000)]
move the callback lists to the public headers

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4882 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoUpdate the bypass example to the lastest DTD
quasar [Fri, 26 Oct 2007 17:49:47 +0000 (17:49 +0000)]
Update the bypass example to the lastest DTD

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4881 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoupdate all the XML files
quasar [Fri, 26 Oct 2007 17:42:10 +0000 (17:42 +0000)]
update all the XML files

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4880 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agooops, my last minute cleanup broke everything [Mt]
quasar [Fri, 26 Oct 2007 17:07:04 +0000 (17:07 +0000)]
oops, my last minute cleanup broke everything [Mt]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4878 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agokill cruft
quasar [Fri, 26 Oct 2007 16:46:59 +0000 (16:46 +0000)]
kill cruft

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4877 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years ago* Cleanup the DTD by renaming:
quasar [Fri, 26 Oct 2007 16:45:56 +0000 (16:45 +0000)]
* Cleanup the DTD by renaming:
   <cpu> to <host>
   <network_link> to <link>
   <route_element> to <link:ctn>
   "name" attributes to "id"
* Modify the DTD to add properties to <process>, <host> and <link>
  In the DTD, these are <prop name=... value=...> subtags, and this
  can be retrieved as a xbt_dict from the source code (see below)
* Add the following functions to the user API to retrieve (as
  xbt_dict) the  properties defined in XML:
    xbt_dict_t SD_link_get_properties(SD_link_t link);
    const char* SD_link_get_property_value(SD_link_t l,char* name);
   and, on the same model,
* Modify the parser to work in one pass only.
  Some more work may be done so that surf does the parsing after the
  models have declared the callbacks.
* Enforce the order in the DTD: routes must come after the last CPU,
  router and link

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4876 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoa distraction
cherierm [Fri, 26 Oct 2007 09:12:09 +0000 (09:12 +0000)]
a distraction

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4875 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoThis change the semantic of the timed function. The behavior depends now of the value...
cherierm [Fri, 26 Oct 2007 08:56:35 +0000 (08:56 +0000)]
This change the semantic of the timed function. The behavior depends now of the value of the parameters delay or timeout. If these parameters are negative, the timed function have the behavior of a blocking function. For example the following call : xbt_os_mutex_timedacquire(mutex,-1) is equivalent to xbt_os_mutex_acquire(mutex). If you set these parameters to zero
the timed function have the behavior of a try function. For example, to try to lock a mutex you must call the xbt_os_mutex_timedacquire() function with the parameter delay/timeout set to zero.
Finally, if you specify a delay more than zero, the timed function try to acquire the lock until the delay was expired, which is the normal behavior of the function.

Remark : the changes of the other files are the consequence of this new semantic : because the timed functions also implement the behavior of the try functions, theirs declarations and theirs definitions are removed.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4874 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoTiny improvement of the search speed
mquinson [Thu, 25 Oct 2007 18:27:49 +0000 (18:27 +0000)]
Tiny improvement of the search speed

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4873 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agothe version of the xbt_os_time() function needs the declaration of the structure...
cherierm [Thu, 25 Oct 2007 16:01:56 +0000 (16:01 +0000)]
the version of the xbt_os_time() function needs the declaration of the structure timeval. The structure of this function change :

if the macro HAVE_GETTIMEOFDAY is defined or if we are on a Windows platform compute the timeval and return else use the poor resolution.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4872 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agothe inclusion of the header stat.h is tested in the file portability header portable...
cherierm [Thu, 25 Oct 2007 15:22:24 +0000 (15:22 +0000)]
the inclusion of the header stat.h is tested in the file portability header portable.h (HAVE_SYS_STAT_H)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4871 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agodistraction
cherierm [Thu, 25 Oct 2007 12:48:06 +0000 (12:48 +0000)]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4870 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agodistraction
cherierm [Thu, 25 Oct 2007 12:10:39 +0000 (12:10 +0000)]

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4869 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoVisual C++ need sys/stat.h for open() function
cherierm [Thu, 25 Oct 2007 12:02:09 +0000 (12:02 +0000)]
Visual C++ need sys/stat.h for open() function

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4868 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agojust had SG_BEGIN_DECL and SG_END_DECL macro (for c++ compilers)
cherierm [Thu, 25 Oct 2007 11:58:39 +0000 (11:58 +0000)]
just had SG_BEGIN_DECL and SG_END_DECL macro (for c++ compilers)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4867 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoMost of this change is the consequence of the refactoring of the name of the function...
cherierm [Thu, 25 Oct 2007 11:57:20 +0000 (11:57 +0000)]
Most of this change is the consequence of the refactoring of the name of the function connected to the mutex object and of the unsupported semaphore function on MAC OS X.

The file synchro.h rename the functions xbt_mutex_acquire() and xbt_mutex_release() to xbt_mutex_acquire() an respectively xbt_mutex_release().
This file also contains the declaration of two new functions xbt_mutex_tryacquire() and xbt_mutex_timedacquire(). The first
is the non blocking version of the function xbt_mutex_acquire() (if the lock is already owned by an other thread the function immediately
returns). The second function xbt_mutex_timedacquire() attempts to get the mutex during a specified delay (timeout), if the lock is not available
during this delay the function returns (throws a timeout exception). These functions (for the real life) are defined in the file xbt_rl_synchro.c and (for the simulation) in the file xbt_sg_synchro.c.

The header xbt_os_thread.h declare two new functions xbt_os_mutex_tryacquire() and xbt_os_mutex_timedaquire(). These functions represent
the implementation of the xbt_mutex_tryacquire() and xbt_mutex_timeacquire() for the real live.
These functions are implemented in the source code file xbt_os_thread.c.

The change in the files dynar.c and xbt_queue.c, philosopher.c and parallel_log_crashtest.c is the consequence of the refactoring of the functions previously described.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4866 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agoThe configuration file visualc.h is change to declare the _WIN32_WINNT macro before...
cherierm [Thu, 25 Oct 2007 11:55:34 +0000 (11:55 +0000)]
The configuration file visualc.h is change to declare the _WIN32_WINNT macro before the inclusion of the windows.h header (this permits to use the TryEnterCriticalSection() only available if the previous macro is more or equals to 0x400).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4865 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 years agocleanup windows portability in there
mquinson [Thu, 25 Oct 2007 08:33:48 +0000 (08:33 +0000)]
cleanup windows portability in there

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4864 48e7efb5-ca39-0410-a469-dd3cf9ba447f