Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
16 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

16 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,
    SD_workstation_get_{properties,property_value}()
    MSG_process_get_{properties,property_value}()
    MSG_host_get_{properties,property_value}()
    gras_process_get_{properties,property_value}()
    gras_os_host_get_{properties,property_value}()
* 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

16 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

16 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

16 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

16 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

16 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

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

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

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

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

16 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

16 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

16 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

16 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

16 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

16 years agoReduce the unimplemented part
mquinson [Tue, 23 Oct 2007 13:51:24 +0000 (13:51 +0000)]
Reduce the unimplemented part

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

16 years agoalso autogenerated
mquinson [Tue, 23 Oct 2007 13:50:08 +0000 (13:50 +0000)]
also autogenerated

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

16 years agoautogenerated
mquinson [Tue, 23 Oct 2007 13:49:13 +0000 (13:49 +0000)]
autogenerated

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

16 years agoKill broken portability bits for visual and macosx
mquinson [Tue, 23 Oct 2007 13:45:58 +0000 (13:45 +0000)]
Kill broken portability bits for visual and macosx

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

16 years agoDo not include the useless semaphore standard header. It's not needed, and moreover...
mquinson [Tue, 23 Oct 2007 13:43:32 +0000 (13:43 +0000)]
Do not include the useless semaphore standard header. It's not needed, and moreover, it seems to load stdio itself. So, loading semaphore from here causes getline to become undefined since stdio.h is loaded before portable.h got a chance to declare _GNU_SOURCE

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

16 years agoprintf format fixups
mquinson [Tue, 23 Oct 2007 13:38:19 +0000 (13:38 +0000)]
printf format fixups

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

16 years ago* Check that sem_timedwait is available (since it's not on mac osx)
mquinson [Tue, 23 Oct 2007 13:29:19 +0000 (13:29 +0000)]
* Check that sem_timedwait is available (since it's not on mac osx)
* Check only once that pthread is available (and use previous result
  the second time)
* Remove a useless rewrite (s/pthreads/pthread/) in with_context since
  nobody ever put pthreads as a value to this variable.

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

16 years agoCosmetics on error messages
mquinson [Tue, 23 Oct 2007 12:13:01 +0000 (12:13 +0000)]
Cosmetics on error messages

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

16 years agoMac OS X doesn't provide the sem_timedwait() function.
cherierm [Tue, 23 Oct 2007 11:26:19 +0000 (11:26 +0000)]
Mac OS X doesn't provide the sem_timedwait() function.

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

16 years agoJust add the simgrid library in the entries of the linker of Visual C++.
cherierm [Tue, 23 Oct 2007 09:54:00 +0000 (09:54 +0000)]
Just add the simgrid library in the entries of the linker of Visual C++.

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

16 years agoThis change is about the the add-on of the semaphore examples and by the implementati...
cherierm [Tue, 23 Oct 2007 09:53:15 +0000 (09:53 +0000)]
This change is about the the add-on of the semaphore examples and by the implementation of the gettimeofday() functions for Windows.

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

16 years agoAdd the Visual C++ projects of the new examples sem_basic and sem_sched.
cherierm [Tue, 23 Oct 2007 09:48:57 +0000 (09:48 +0000)]
Add the Visual C++ projects of the new examples sem_basic and sem_sched.

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

16 years agoThis new directory contains two samples explaining the usage of the semaphore interfa...
cherierm [Tue, 23 Oct 2007 09:42:53 +0000 (09:42 +0000)]
This new directory contains two samples explaining the usage of the semaphore interface provide by the xbt layer.

The first example : sem_basic, show how to use a semaphore to manage the access of a global variable shared by multiple threads.
The second example : sem_sched, show how to use the semaphore interface to implement a simple context switch based on threads.

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

16 years agoThis implement the function gettimeofday() for win32 (Visual C++ does not provides...
cherierm [Tue, 23 Oct 2007 09:38:51 +0000 (09:38 +0000)]
This implement the function gettimeofday() for win32 (Visual C++ does not provides this function)

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

16 years agoThis change is about the refactoring of the source code of the objects use int the...
cherierm [Tue, 23 Oct 2007 09:37:14 +0000 (09:37 +0000)]
This change is about the refactoring of the source code of the objects use int the msg synchronization mechanism :

  - the functions xbt_os_mutex_lock() and xbt_os_mutex_unlock() are renamed xbt_os_mutex_acquire() and xbt_os_mutex_release() respectively
  - the functions xbt_os_sem_wait() and xbt_os_sem_post() are renamed xbt_os_sem_acquire() and xbt_os_sem_release() respectively
This renaming impacts the folowing files :

  - xbt_os_thread.h and xbt_os_thread.c
  - context.c
  - xbt_rl_synchro.c
  - run_context.c

In addition the function unschedule() declared an defined in the file context.c is renamed yield().

The prototype of the function xbt_os_sem_init() takes now only one parameter : the initial value of the semaphore.
The second parameter of the function xbt_os_sem_timedacquire() which replace the function xbt_os_sem_timedwait() is now a double (desired timeout in seconds).
To finish, the semaphore interface of the xbt portability layer does not expose the functions xbt_os_sem_open() and xbt_sem_close().

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

16 years agouse the XBT_EXPORT_NO_IMPORT macro instead XBT_PUBLIC_DATA and add the keyword extern...
cherierm [Mon, 22 Oct 2007 15:02:21 +0000 (15:02 +0000)]
use the XBT_EXPORT_NO_IMPORT macro instead XBT_PUBLIC_DATA and add the keyword extern to avoid the gcc compiler warnings

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

16 years agothis declarations and definitions are only concerned by the thread implementation...
cherierm [Mon, 22 Oct 2007 11:36:59 +0000 (11:36 +0000)]
this declarations and definitions are only concerned by the thread implementation of the xbt context

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

16 years agoThis change exports the gras_procdata pointer and use the Win32 function GetCurrentPr...
cherierm [Mon, 22 Oct 2007 09:29:37 +0000 (09:29 +0000)]
This change exports the gras_procdata pointer and use the Win32 function GetCurrentProcessId() instead the function GetCurrentProcess() to get the process identifier

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

16 years agoVisual C++ already declare the isatty function in the header.h. So this change avoids...
cherierm [Mon, 22 Oct 2007 09:24:55 +0000 (09:24 +0000)]
Visual C++ already declare the isatty function in the header.h. So this change avoids the warning cause by this redeclaration for this compiler.

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

16 years agoRemove the keyword extern to avoid the multiple declaration of the the variables...
cherierm [Mon, 22 Oct 2007 09:18:51 +0000 (09:18 +0000)]
Remove the keyword extern to avoid the multiple declaration of the the variables declared with the macro XBT_PUBLIC_DATA;

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

16 years agoVisual C++ already declare the isatty function in io.h. So this change avoids a warni...
cherierm [Mon, 22 Oct 2007 09:06:52 +0000 (09:06 +0000)]
Visual C++ already declare the isatty function in io.h. So this change avoids a warning for this compiler.

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

16 years agoVisual C++ already declare the environ variable in the stdlib.h. So this redeclaratio...
cherierm [Mon, 22 Oct 2007 09:02:24 +0000 (09:02 +0000)]
Visual C++ already declare the environ variable in the stdlib.h. So this redeclaration cause a warning for this compiler. The declaration of this variable is now platform depend (WIN32 doesn't need this declaration). The pointer of the callback functions context default an context terminate are now exported in the Win32 dll.

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

16 years agoRemove the return keyword at the end of the void function.
cherierm [Mon, 22 Oct 2007 08:55:32 +0000 (08:55 +0000)]
Remove the return keyword at the end of the void function.

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

16 years agoDirectly returns the newly created condition.
cherierm [Mon, 22 Oct 2007 08:54:16 +0000 (08:54 +0000)]
Directly returns the newly created condition.

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

16 years agoThis change concerne the usage of the semaphore object instead the variable condition...
cherierm [Mon, 22 Oct 2007 08:51:31 +0000 (08:51 +0000)]
This change concerne the usage of the semaphore object instead the variable condition to synchronize the msg processes during a simulation.
The xbt_os_sem_t type represents a semaphore and you' ll find its declaration in the header xbt_os_thread.h and its implementation in the file xbt_os_thread.c.
The file portable.h is modified to declare the function gettimeofday() used by many several other functions such the function xbt_os_sem_timedwait() declared in
the header xbt_os_thread.h. The context structure declared in the header context_private.h is modified to use the semaphore instead the condition variable.

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

16 years agoThis, modify the declaration of type of function pointer. It also clear the warnings...
cherierm [Mon, 22 Oct 2007 08:37:06 +0000 (08:37 +0000)]
This, modify the declaration of type of function pointer. It also clear the warnings throws by the compiler Visual C++ when occurs a comparison between an unsigned with and a signed integer.

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

16 years agoKill a rather outdated section.
mquinson [Sun, 21 Oct 2007 07:46:30 +0000 (07:46 +0000)]
Kill a rather outdated section.

Most parts are now in the History document, for the curious.
The rest, such as "we want to make everything as clean as possible
before releasing SimGrid v.3" can certainly be removed now that
SimGrid v3 is released since two years.

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

16 years agoRename section title to betterly express the agenda (generating platforms, then expre...
mquinson [Fri, 19 Oct 2007 10:13:22 +0000 (10:13 +0000)]
Rename section title to betterly express the agenda (generating platforms, then expressing specific things in them, then ...)

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

16 years agoImprove section about platform generation/mapping/collection
mquinson [Fri, 19 Oct 2007 10:01:38 +0000 (10:01 +0000)]
Improve section about platform generation/mapping/collection

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

16 years agostrlen does not return int but size_t on 64bits
mquinson [Thu, 18 Oct 2007 08:59:21 +0000 (08:59 +0000)]
strlen does not return int but size_t on 64bits

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

16 years ago'major bug' fix in ptask_L07.
alegrand [Tue, 16 Oct 2007 13:54:48 +0000 (13:54 +0000)]
'major bug' fix in ptask_L07.

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

16 years agoImprove debug readability.
alegrand [Tue, 16 Oct 2007 13:53:16 +0000 (13:53 +0000)]
Improve debug readability.

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

16 years agoAdding a new test.
alegrand [Fri, 12 Oct 2007 10:31:51 +0000 (10:31 +0000)]
Adding a new test.

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

16 years agocode cleanup, streamlining, removed some redundant function calls.
markls [Fri, 12 Oct 2007 10:29:31 +0000 (10:29 +0000)]
code cleanup, streamlining, removed some redundant function calls.

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

16 years agoLet's be VPATH friendly
mquinson [Fri, 12 Oct 2007 09:16:36 +0000 (09:16 +0000)]
Let's be VPATH friendly

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

16 years agoAllow java to compile in VPATH settings (at the price of a GNUism in the makefile)
mquinson [Fri, 12 Oct 2007 09:02:48 +0000 (09:02 +0000)]
Allow java to compile in VPATH settings (at the price of a GNUism in the makefile)

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

16 years agoAutogenerated
mquinson [Fri, 12 Oct 2007 08:29:53 +0000 (08:29 +0000)]
Autogenerated

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

16 years agoOops, I forgot this one
mquinson [Fri, 12 Oct 2007 08:26:54 +0000 (08:26 +0000)]
Oops, I forgot this one

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

16 years agoEnforce some order on the tags; needs flexml 1.8 to get relevant error messages when...
mquinson [Fri, 12 Oct 2007 08:26:26 +0000 (08:26 +0000)]
Enforce some order on the tags; needs flexml 1.8 to get relevant error messages when the order is violated by the document

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

16 years agoignore more cruft
mquinson [Fri, 12 Oct 2007 08:21:24 +0000 (08:21 +0000)]
ignore more cruft

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

16 years agotypo
mquinson [Fri, 12 Oct 2007 08:21:03 +0000 (08:21 +0000)]
typo

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

16 years agoDo not truncate the output on large messages, but switch to a dynamically allocated...
mquinson [Fri, 12 Oct 2007 08:19:46 +0000 (08:19 +0000)]
Do not truncate the output on large messages, but switch to a dynamically allocated buffer

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

16 years agoreturn NULL to avoid that the function returns an invalid pointer
cherierm [Thu, 11 Oct 2007 10:27:01 +0000 (10:27 +0000)]
return NULL to avoid that the function returns an invalid pointer

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

16 years agothis directory contains all the projects of the exemples msg and simdag for Visual C++
cherierm [Thu, 11 Oct 2007 10:17:17 +0000 (10:17 +0000)]
this directory contains all the projects of the exemples msg and simdag for Visual C++

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

16 years agoadd the project group of simgrid (contains the msg samples and the simdag sample)
cherierm [Thu, 11 Oct 2007 09:20:41 +0000 (09:20 +0000)]
add the project group of simgrid (contains the msg samples and the simdag sample)

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

16 years agodelete the account of the buildbot
cherierm [Thu, 11 Oct 2007 09:13:08 +0000 (09:13 +0000)]
delete the account of the buildbot

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

16 years agoMove string buffers from 'private to tesh' to 'public in xbt' (I'm gonna use them...
mquinson [Thu, 11 Oct 2007 07:41:42 +0000 (07:41 +0000)]
Move string buffers from 'private to tesh' to 'public in xbt' (I'm gonna use them in logs for messages too long to fit into the statically sized string buffer)

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

16 years agoMove private definition out of the log.h public header. Moreover, this public header...
mquinson [Thu, 11 Oct 2007 06:57:25 +0000 (06:57 +0000)]
Move private definition out of the log.h public header. Moreover, this public header is already complicated enough, and loaded everywhere

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

16 years agoDo truncate files before writting into it (gras file sockets are streams, seeking...
mquinson [Thu, 11 Oct 2007 06:22:35 +0000 (06:22 +0000)]
Do truncate files before writting into it (gras file sockets are streams, seeking into it to change only subparts is a non-sense)

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

16 years agoErm. Really revalidate this dataset (old one must be removed before regeneration...
mquinson [Wed, 10 Oct 2007 22:56:54 +0000 (22:56 +0000)]
Erm. Really revalidate this dataset (old one must be removed before regeneration since server file sockets do not blank the file before use).

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

16 years agoRevalidate this dataset after the move to full blown messages instead of direct trans...
mquinson [Wed, 10 Oct 2007 22:50:27 +0000 (22:50 +0000)]
Revalidate this dataset after the move to full blown messages instead of direct transport layer use

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

16 years agoLet's play safe here and don't loose the first char if the socket was already tested...
mquinson [Wed, 10 Oct 2007 22:44:47 +0000 (22:44 +0000)]
Let's play safe here and don't loose the first char if the socket was already tested alive in hte last select, but not read from by caller (which would be such a weirdo)

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

16 years agocosmetics
mquinson [Wed, 10 Oct 2007 22:43:31 +0000 (22:43 +0000)]
cosmetics

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

16 years agoDisplay hexa representation of the borken header if any, since it's often binary...
mquinson [Wed, 10 Oct 2007 22:42:59 +0000 (22:42 +0000)]
Display hexa representation of the borken header if any, since it's often binary garbage

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

16 years agoChange completely the test to use messages instead of mucking directly with the trans...
mquinson [Wed, 10 Oct 2007 22:41:46 +0000 (22:41 +0000)]
Change completely the test to use messages instead of mucking directly with the transport layer: the listener thread won't let us play in his garden so easily

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

16 years agoDo display where the exception comes from when dealing with remote exceptions
mquinson [Wed, 10 Oct 2007 15:56:21 +0000 (15:56 +0000)]
Do display where the exception comes from when dealing with remote exceptions

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

16 years agocosmetics
mquinson [Wed, 10 Oct 2007 15:55:26 +0000 (15:55 +0000)]
cosmetics

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

16 years agoDo not use recv() but read() to check whether a socket returned by select() is valid...
mquinson [Wed, 10 Oct 2007 15:54:23 +0000 (15:54 +0000)]
Do not use recv() but read() to check whether a socket returned by select() is valid to use or good to close. That way, it works not only for real sockets but also for file ones. This implies having a 1-byte-long buffer in the socket for the data we got during this check, and using this micro buffer before the rest of the content in the gras_*_recv()

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

16 years agoKill old cruft
mquinson [Wed, 10 Oct 2007 15:49:30 +0000 (15:49 +0000)]
Kill old cruft

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

16 years agoAnd now, make sure that the logging of the log module do not appear all the time...
mquinson [Wed, 10 Oct 2007 12:38:37 +0000 (12:38 +0000)]
And now, make sure that the logging of the log module do not appear all the time, but only when the module is under debug

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

16 years agoSome more debugging, plus killing a stupid bug: when searching in a tree, exploring...
mquinson [Wed, 10 Oct 2007 12:26:22 +0000 (12:26 +0000)]
Some more debugging, plus killing a stupid bug: when searching in a tree, exploring the first branch [and raising a not_found exception on the first leave] is not quite enough

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

16 years agoupdated to use branching-tree broadcast instead of for-loop.
markls [Wed, 10 Oct 2007 00:34:58 +0000 (00:34 +0000)]
updated to use branching-tree broadcast instead of for-loop.

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

16 years agoWhen the logs are not usable because we are before xbt_init, do intialize them instea...
mquinson [Tue, 9 Oct 2007 14:47:35 +0000 (14:47 +0000)]
When the logs are not usable because we are before xbt_init, do intialize them instead of whining

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

16 years agoSome comments in the initalization of categories. Once again, remove the misplaced...
mquinson [Tue, 9 Oct 2007 14:45:00 +0000 (14:45 +0000)]
Some comments in the initalization of categories. Once again, remove the misplaced WIN portability cruft. Malek, search for your name in the comments...

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

16 years agoOther useless copyright notice updates
mquinson [Fri, 5 Oct 2007 09:09:38 +0000 (09:09 +0000)]
Other useless copyright notice updates

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

16 years agoGot bored during a meeting: fix the copyright notice of several useless files (found...
mquinson [Fri, 5 Oct 2007 08:53:59 +0000 (08:53 +0000)]
Got bored during a meeting: fix the copyright notice of several useless files (found nothing more useless)

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

16 years agofight against multiple 'extern' specification
mquinson [Thu, 4 Oct 2007 14:22:11 +0000 (14:22 +0000)]
fight against multiple 'extern' specification

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

16 years agoMark data as extern; hopefully it'll help the macOSx linker
mquinson [Thu, 4 Oct 2007 14:03:48 +0000 (14:03 +0000)]
Mark data as extern; hopefully it'll help the macOSx linker

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

16 years agocosmetics around portability
mquinson [Thu, 4 Oct 2007 13:21:12 +0000 (13:21 +0000)]
cosmetics around portability

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

16 years agokill some misplaced portability bits, leftover from the conversion from OS synchroniz...
mquinson [Thu, 4 Oct 2007 13:17:12 +0000 (13:17 +0000)]
kill some misplaced portability bits, leftover from the conversion from OS synchronization to java one

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

16 years agoGcc is *very* permissive with pointers to functions. If we declare them as function...
mquinson [Thu, 4 Oct 2007 13:07:35 +0000 (13:07 +0000)]
Gcc is *very* permissive with pointers to functions. If we declare them as function, it understands that we meant pointer to functions. If we try to call a pointer to function, it understand we want to dereference that pointer before the call. Visual C++ is not that cleaver (what a surprise). So, try to sanitize a bit the situation by doing the Right Thing without expecting the compiler to understand what we really meant in the middle of what we said. (sorry for the huge diff)

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

16 years agoCleanup parts of malek's mess: reintroduce the bunch of changes he erased in his...
mquinson [Thu, 4 Oct 2007 09:38:57 +0000 (09:38 +0000)]
Cleanup parts of malek's mess: reintroduce the bunch of changes he erased in his last commit; This still breaks GRAS

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

16 years agoAdd the indent command line to the coding style
mquinson [Thu, 4 Oct 2007 09:11:07 +0000 (09:11 +0000)]
Add the indent command line to the coding style

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

16 years agoLet's learn a bit of svn syntax to not tell ugly things to users
mquinson [Thu, 4 Oct 2007 08:42:29 +0000 (08:42 +0000)]
Let's learn a bit of svn syntax to not tell ugly things to users

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

16 years agoautogenerated
mquinson [Thu, 4 Oct 2007 08:28:24 +0000 (08:28 +0000)]
autogenerated

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

16 years agoautogenerated
mquinson [Thu, 4 Oct 2007 08:27:53 +0000 (08:27 +0000)]
autogenerated

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

16 years agoAllow to change the execution environment in this test (this allows to run it under...
mquinson [Thu, 4 Oct 2007 08:24:35 +0000 (08:24 +0000)]
Allow to change the execution environment in this test (this allows to run it under valgrind)

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

16 years agonow the simgrid dll is named simgrid so i have destroyed the previous dll project...
cherierm [Thu, 4 Oct 2007 08:24:07 +0000 (08:24 +0000)]
now the simgrid dll is named simgrid so i have destroyed the previous dll project and i have added the new files.

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

16 years agoignore cruft
mquinson [Thu, 4 Oct 2007 08:23:45 +0000 (08:23 +0000)]
ignore cruft

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

16 years agouse snprintf of Visual C++
cherierm [Thu, 4 Oct 2007 08:11:21 +0000 (08:11 +0000)]
use snprintf of Visual C++

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

16 years agoNow the java processes don't use the native locks so i have remove all functions...
cherierm [Thu, 4 Oct 2007 08:09:49 +0000 (08:09 +0000)]
Now the java processes don't use the native locks so i have remove all functions connected to this locks. Because in the windows  we can't signal a condition variable and wait it in the same thread i introduce a separate condition to schedule the msg processes.

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

16 years agoNow the java processes don't use the native locks
cherierm [Thu, 4 Oct 2007 08:06:19 +0000 (08:06 +0000)]
Now the java processes don't use the native locks

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

16 years agosorry martin but i really need the portable.h inclusion
cherierm [Thu, 4 Oct 2007 07:54:29 +0000 (07:54 +0000)]
sorry martin but i really need the portable.h inclusion

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

16 years agothe xbt_thread_create function must use a function pointer as first parameter
cherierm [Thu, 4 Oct 2007 07:52:40 +0000 (07:52 +0000)]
the xbt_thread_create function must use a function pointer as first parameter

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

16 years agodeclare portable snprintf and vsnprintf functions for Visual C++ 7
cherierm [Thu, 4 Oct 2007 07:51:16 +0000 (07:51 +0000)]
declare portable snprintf and vsnprintf functions for Visual C++ 7

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

16 years agothe first pointer of the xbt_thread_create() function must be a function pointer...
cherierm [Thu, 4 Oct 2007 07:46:36 +0000 (07:46 +0000)]
the first pointer of the xbt_thread_create() function must be a function pointer (not a function type ?)

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