Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
9 years agoParenthesis should be protected in test parameters.
Arnaud Giersch [Mon, 7 Nov 2011 22:14:01 +0000 (23:14 +0100)]
Parenthesis should be protected in test parameters.

9 years agofurther parser cleanups
Martin Quinson [Tue, 8 Nov 2011 14:06:44 +0000 (15:06 +0100)]
further parser cleanups

- kill some dead code related to the old lua console
- do not load a header at the *end* of another header
- solve some header inclusion madness created in this process

9 years agodo use the parameters I'm given, not some random globals
Martin Quinson [Tue, 8 Nov 2011 13:52:27 +0000 (14:52 +0100)]
do use the parameters I'm given, not some random globals

9 years agokill dead code
Martin Quinson [Tue, 8 Nov 2011 13:29:21 +0000 (14:29 +0100)]
kill dead code

9 years agoimprove comments
Martin Quinson [Tue, 8 Nov 2011 13:24:05 +0000 (14:24 +0100)]
improve comments

9 years agoplug a memleak when the cluster's router_id is not given
Martin Quinson [Tue, 8 Nov 2011 13:22:01 +0000 (14:22 +0100)]
plug a memleak when the cluster's router_id is not given

9 years agofix constness in parser
Martin Quinson [Tue, 8 Nov 2011 12:43:27 +0000 (13:43 +0100)]
fix constness in parser

9 years agofurther fields renamings in the parser
Martin Quinson [Tue, 8 Nov 2011 12:15:40 +0000 (13:15 +0100)]
further fields renamings in the parser

9 years agoUpdate README of Lua examples
Christophe Thiéry [Tue, 8 Nov 2011 10:55:47 +0000 (11:55 +0100)]
Update README of Lua examples

9 years agoClean the code of Lua examples.
Christophe Thiéry [Tue, 8 Nov 2011 10:38:41 +0000 (11:38 +0100)]
Clean the code of Lua examples.

Reindent, remove useless semicolons, declare variables as local, etc.

9 years agoAdd unversioned chord large deployment files to .gitignore
Christophe Thiéry [Tue, 8 Nov 2011 09:58:58 +0000 (10:58 +0100)]
Add unversioned chord large deployment files to .gitignore

Also remove '\r' characters from .gitignore

9 years agoThese files have nothing to do here
Christophe Thiéry [Tue, 8 Nov 2011 09:48:40 +0000 (10:48 +0100)]
These files have nothing to do here

9 years agofurther code simplification. This one were nasty
Martin Quinson [Tue, 8 Nov 2011 11:51:01 +0000 (12:51 +0100)]
further code simplification. This one were nasty

9 years agosimplify the code a bit
Martin Quinson [Tue, 8 Nov 2011 11:22:00 +0000 (12:22 +0100)]
simplify the code a bit

9 years agoAlso cleanup the fields of s_sg_platf_link_cbarg_t
Martin Quinson [Tue, 8 Nov 2011 11:05:51 +0000 (12:05 +0100)]
Also cleanup the fields of s_sg_platf_link_cbarg_t

This one is not just a renaming:
 - kill the unused V_policy_initial_link
 - make V_link_sharing_policy (now 'policy') a
   e_surf_link_sharing_policy_t (which thus become public)
This should be enough for field renaming for now. But the cleanup is
definitly not finished :-/

9 years agoalso cleanup the field names of s_sg_platf_router_cbarg_t
Martin Quinson [Tue, 8 Nov 2011 10:48:32 +0000 (11:48 +0100)]
also cleanup the field names of s_sg_platf_router_cbarg_t

Still manual, so atomic commits to avoid issues

9 years agoParser cleanup: simplify structure's fields' names
Martin Quinson [Tue, 8 Nov 2011 10:42:19 +0000 (11:42 +0100)]
Parser cleanup: simplify structure's fields' names

Damn, my eclipse fail that refactoring! That's manual, pity me...

9 years agoReimplement the lua console on top of sg_platf
Martin Quinson [Tue, 8 Nov 2011 10:27:02 +0000 (11:27 +0100)]
Reimplement the lua console on top of sg_platf

I admit it was too early to do that change since sg_platf is not quite
fully separated from the XML parsing yet, but the cruft accumulates
from everywhere, so I have to break stuff a bit to fix the overall
picture. Yeah, the lua tests are not fixed yet.

9 years agokill more empty function chaining in lua console
Martin Quinson [Tue, 8 Nov 2011 08:06:29 +0000 (09:06 +0100)]
kill more empty function chaining in lua console

9 years agoSlight cleanups in the lua console
Martin Quinson [Mon, 7 Nov 2011 23:16:44 +0000 (00:16 +0100)]
Slight cleanups in the lua console

- kill some empty functions chaining
- allow for the creation of routers from lua
(the console is still broken, more profund cleanups will be needed)

9 years agoKill some further empty function chaining.
Martin Quinson [Mon, 7 Nov 2011 23:10:41 +0000 (00:10 +0100)]
Kill some further empty function chaining.

This breaks the lua console for a while, but this is to be redone with
the new sg_platf anyway.

9 years agoProperly integrate the link creation into sg_platf
Martin Quinson [Mon, 7 Nov 2011 22:57:42 +0000 (23:57 +0100)]
Properly integrate the link creation into sg_platf

9 years agoThis structure was not necessary
Christophe Thiéry [Mon, 7 Nov 2011 21:14:27 +0000 (22:14 +0100)]
This structure was not necessary

9 years agoLua: don't garbage collect a task after sending it (the receiver will)
Christophe Thiéry [Mon, 7 Nov 2011 18:21:29 +0000 (19:21 +0100)]
Lua: don't garbage collect a task after sending it (the receiver will)

Also clean the code of Lua tasks. Show an appropriate error message when
the sender tries to access a task already sent to someone else.

9 years agoLua: add a function sglua_copy_value
Christophe Thiéry [Mon, 7 Nov 2011 18:20:49 +0000 (19:20 +0100)]
Lua: add a function sglua_copy_value

9 years agoAdd comments about who should or shouldn't call MSG_task_destroy
Christophe Thiéry [Mon, 7 Nov 2011 18:19:24 +0000 (19:19 +0100)]
Add comments about who should or shouldn't call MSG_task_destroy

9 years agoAfter a send, the sender should never access the task anymore.
Christophe Thiéry [Mon, 7 Nov 2011 17:30:46 +0000 (18:30 +0100)]
After a send, the sender should never access the task anymore.

Since processes are in different Lua worlds, the receiver can garbage
collect the task.

9 years agofurther parser cleanups
Martin Quinson [Mon, 7 Nov 2011 17:05:18 +0000 (18:05 +0100)]
further parser cleanups

Properly integrate the begin and end of platform definition in sg_platf.

New public functions:
 - sg_platf_open()
 - sg_platf_close()
New internal callback:
 - sg_platf_postparse_add_cb(void_f_void_t)
 (nobody cares about sg_platf_open(), it's just here for cosmetics in
  user code)

9 years agoalso deprecate ETag_surfxml_router
Martin Quinson [Mon, 7 Nov 2011 15:40:25 +0000 (16:40 +0100)]
also deprecate ETag_surfxml_router

9 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 7 Nov 2011 15:33:59 +0000 (16:33 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

9 years agoFurther parser cleanups
Martin Quinson [Mon, 7 Nov 2011 15:33:11 +0000 (16:33 +0100)]
Further parser cleanups

- Kill useless function chaining
- Deprecate the ETag_host in XML now that it's useless

9 years agoDon't use a fix value of host.
Navarrop [Mon, 7 Nov 2011 15:06:05 +0000 (16:06 +0100)]
Don't use a fix value of host.

9 years agoAdd a source file for model vivaldi. Write vivaldi_get_route.
Navarrop [Mon, 7 Nov 2011 14:35:46 +0000 (15:35 +0100)]
Add a source file for model vivaldi. Write vivaldi_get_route.
Update vivaldi platforms (examples/platforms/syscoord/

9 years agoRemove some bprintf, fix memleaks.
Navarrop [Mon, 7 Nov 2011 13:39:13 +0000 (14:39 +0100)]
Remove some bprintf, fix memleaks.

9 years agofix the last broken tests by sanitizing the way properties are handled during the...
Martin Quinson [Mon, 7 Nov 2011 13:11:01 +0000 (14:11 +0100)]
fix the last broken tests by sanitizing the way properties are handled during the parse

9 years agoResolved merge "merge changes. Strange, it seems to ate pierre commit" and
Navarrop [Mon, 7 Nov 2011 12:52:30 +0000 (13:52 +0100)]
Resolved merge "merge changes. Strange, it seems to ate pierre commit" and
 redo the missing part. Set the struct for get_route of tag cluster.

9 years agoRemove unused function.
Navarrop [Mon, 7 Nov 2011 12:50:43 +0000 (13:50 +0100)]
Remove unused function.

9 years agoFurther parser cleanups
Martin Quinson [Mon, 7 Nov 2011 11:14:15 +0000 (12:14 +0100)]
Further parser cleanups

Simply rename a bunch of symbols to make the module logic clear

9 years agointegrate properly the router creation in sg_platf module
Martin Quinson [Mon, 7 Nov 2011 11:04:31 +0000 (12:04 +0100)]
integrate properly the router creation in sg_platf module

9 years agoplug memleaks: surfxml does not allocate memory, sg_platf (and callbacks) do it on...
Martin Quinson [Mon, 7 Nov 2011 10:47:11 +0000 (11:47 +0100)]
plug memleaks: surfxml does not allocate memory, sg_platf (and callbacks) do it on need

9 years agoMake the sg_plat_new_host() function public
Martin Quinson [Mon, 7 Nov 2011 10:41:10 +0000 (11:41 +0100)]
Make the sg_plat_new_host() function public

9 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 7 Nov 2011 10:35:08 +0000 (11:35 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

9 years agoContinue parser cleanups
Martin Quinson [Mon, 7 Nov 2011 10:31:15 +0000 (11:31 +0100)]
Continue parser cleanups

Prepare to split the interface of sg_platf in two: one public
interface (include/simgrid/platf.h) will contain the function
available to the user code to create elements while another interface
(src/include/simgrid/platf_interface.h) will contain what internal
modules need to declare callbacks on the element creation events.

For now, the files are still very empty, but I try to not break stuff
even further, so I commit soon.

9 years agoThe parser's behavior has changed, revalidate the output of msg-trace
Christophe Thiéry [Mon, 7 Nov 2011 10:03:09 +0000 (11:03 +0100)]
The parser's behavior has changed, revalidate the output of msg-trace

9 years agoAdd some _XBT_GNUC_UNUSED to avoid compilation warnings with NDEBUG
Christophe Thiéry [Mon, 7 Nov 2011 09:50:42 +0000 (10:50 +0100)]
Add some _XBT_GNUC_UNUSED to avoid compilation warnings with NDEBUG

9 years agoThis include is not needed anymore.
Arnaud Giersch [Mon, 7 Nov 2011 06:40:43 +0000 (07:40 +0100)]
This include is not needed anymore.

9 years agoRemove useless code obfuscation.
Arnaud Giersch [Sun, 6 Nov 2011 17:18:21 +0000 (18:18 +0100)]
Remove useless code obfuscation.

9 years agoFix handling of the backtrace log formatters %b and %B.
Arnaud Giersch [Sun, 6 Nov 2011 10:54:58 +0000 (11:54 +0100)]
Fix handling of the backtrace log formatters %b and %B.

The first backtrace entry (_xbt_log_event_log) is not displayed.

9 years agoCosmetics: fix comment.
Arnaud Giersch [Sun, 6 Nov 2011 10:50:18 +0000 (11:50 +0100)]
Cosmetics: fix comment.

9 years agoA message changed its category.
Arnaud Giersch [Sat, 5 Nov 2011 22:53:23 +0000 (23:53 +0100)]
A message changed its category.

9 years agoImprove xbt_log_layout_format_doit().
Arnaud Giersch [Sat, 5 Nov 2011 22:24:26 +0000 (23:24 +0100)]
Improve xbt_log_layout_format_doit().

Make it simpler and faster.

Not sure about the %b formatter, but who cares?

9 years agoImprove xbt_log_layout_simple_doit().
Arnaud Giersch [Sat, 5 Nov 2011 21:37:12 +0000 (22:37 +0100)]
Improve xbt_log_layout_simple_doit().

Make it simpler and slightly faster.

9 years agoAvoid (almost) duplicated code in xbt_log_layout_*.
Arnaud Giersch [Sat, 5 Nov 2011 21:12:11 +0000 (22:12 +0100)]
Avoid (almost) duplicated code in xbt_log_layout_*.

Remove the dynamic log layout function.

The layout functions now try to build the log string in a buffer of given
length, and return success or failure.

The first try is with a buffer of fixed size.
In case of failure, the buffer is expanded, until it is large enough.

With this change, the code is much simpler, and the only penalty is with
very large log strings.

9 years agoUse fputs() instead of fprintf("%s") in file log appender.
Arnaud Giersch [Sat, 5 Nov 2011 20:54:10 +0000 (21:54 +0100)]
Use fputs() instead of fprintf("%s") in file log appender.

It is more natural, and should be faster.

9 years agoRemove old debugging cruft.
Arnaud Giersch [Sat, 5 Nov 2011 20:51:52 +0000 (21:51 +0100)]
Remove old debugging cruft.

Rationale: xbt_backtrace_display_current() uses fprintf(stderr) instead
of the logging facility.

9 years agoFix the fixme.
Arnaud Giersch [Sat, 5 Nov 2011 20:50:41 +0000 (21:50 +0100)]
Fix the fixme.

And don't short-circuit the logging facility.

9 years agousing pointer to scalar is a strange way to return a value...
Martin Quinson [Sat, 5 Nov 2011 15:41:42 +0000 (16:41 +0100)]
using pointer to scalar is a strange way to return a value...

9 years agoNobody will ever need to override the behavior of config parsing, so simplify the...
Martin Quinson [Sat, 5 Nov 2011 15:18:13 +0000 (16:18 +0100)]
Nobody will ever need to override the behavior of config parsing, so simplify the code

9 years agoAdd a new module allowing to interact with the platform directly
Martin Quinson [Sat, 5 Nov 2011 14:27:26 +0000 (15:27 +0100)]
Add a new module allowing to interact with the platform directly

* For now, it's super sparse, but the ongoing cleanup in the parser aims
  precisely at populating it.
* Also, kill some oneline brain-dead functions in the lua console

9 years agoCall surf_parse_models_setup() from the right level
Martin Quinson [Fri, 4 Nov 2011 21:34:04 +0000 (22:34 +0100)]
Call surf_parse_models_setup() from the right level

This function is in charge of initializing the models after all
configs have been parsed. It used to be called in the XML parser
callback, it is now called from the platform creation API, which is
intended to be called either from the XML parser or from the lua
console, or directly from the user code.

9 years agoRegister the generic <AS> callback soon enough
Martin Quinson [Fri, 4 Nov 2011 21:21:43 +0000 (22:21 +0100)]
Register the generic <AS> callback soon enough

- It is generic because it calls routing_AS_init() with the arguments
  from AX_*
- soon enough is right at the beginning of the parsing process, not
  deep after the models are inited

9 years agofixing lua console (brain dead) damages to the parser
Martin Quinson [Fri, 4 Nov 2011 21:00:57 +0000 (22:00 +0100)]
fixing lua console (brain dead) damages to the parser

9 years agothis function should definitely not be called from lua, but from within the parsing...
Martin Quinson [Fri, 4 Nov 2011 20:43:18 +0000 (21:43 +0100)]
this function should definitely not be called from lua, but from within the parsing logic

9 years agoClean callbacks for the host parsing.
Martin Quinson [Fri, 4 Nov 2011 20:33:29 +0000 (21:33 +0100)]
Clean callbacks for the host parsing.

- do not rely on global field, but pass the parameter to the callbacks
- do not show the dynar containing the callbacks to the public, but
  provide a specific function to add a callback not needing to see the
  dynar

This breaks some tests, but I need to split my changes to see when I
improve the situation, and revert stuff when I degrade the situation.
I start to fix the tests right away.

9 years agoputain, ca compile pas cette merde
Martin Quinson [Fri, 4 Nov 2011 19:29:50 +0000 (20:29 +0100)]
putain, ca compile pas cette merde

9 years agomerge changes. Strange, it seems to ate pierre commit
Martin Quinson [Fri, 4 Nov 2011 15:32:12 +0000 (16:32 +0100)]
merge changes. Strange, it seems to ate pierre commit

9 years agoyet another psychotic cleanup
Martin Quinson [Fri, 4 Nov 2011 14:54:14 +0000 (15:54 +0100)]
yet another psychotic cleanup

9 years agoregenerate with flexml 1.9.2 (fix to my recent changes by ... agier ;)
Martin Quinson [Fri, 4 Nov 2011 14:53:46 +0000 (15:53 +0100)]
regenerate with flexml 1.9.2 (fix to my recent changes by ... agier ;)

9 years agoCreate a structure to put link up and down for model cluster. Factorize the tag cluster.
Navarrop [Fri, 4 Nov 2011 14:20:36 +0000 (15:20 +0100)]
Create a structure to put link up and down for model cluster. Factorize the tag cluster.

9 years agonormalize some type names
Martin Quinson [Fri, 4 Nov 2011 13:32:26 +0000 (14:32 +0100)]
normalize some type names

9 years agoremove useless empty parsing callbacks
Martin Quinson [Fri, 4 Nov 2011 13:09:22 +0000 (14:09 +0100)]
remove useless empty parsing callbacks

9 years agokill a bunch of warnings that prevented me from compiling
Martin Quinson [Fri, 4 Nov 2011 12:57:56 +0000 (13:57 +0100)]
kill a bunch of warnings that prevented me from compiling

9 years agoWithout ! is better sorry...
Navarrop [Fri, 4 Nov 2011 12:47:44 +0000 (13:47 +0100)]
Without ! is better sorry...

9 years agoAdd V_cluster_availability_file and V_cluster_state_file to struct for cluster.
Navarrop [Fri, 4 Nov 2011 12:17:15 +0000 (13:17 +0100)]
Add V_cluster_availability_file and V_cluster_state_file to struct for cluster.

9 years agoDo the free into the right file.
Navarrop [Fri, 4 Nov 2011 11:54:57 +0000 (12:54 +0100)]
Do the free into the right file.

9 years agoGet rid of uselessly duplicated code.
Navarrop [Fri, 4 Nov 2011 11:34:09 +0000 (12:34 +0100)]
Get rid of uselessly duplicated code.

9 years agono need to reset a struct that will be freed
Martin Quinson [Fri, 4 Nov 2011 10:59:43 +0000 (11:59 +0100)]
no need to reset a struct that will be freed

9 years agoReplace stupid char* by doubles in the cluster struct to avoid tons of useless printf...
Navarrop [Fri, 4 Nov 2011 10:51:00 +0000 (11:51 +0100)]
Replace stupid char* by doubles in the cluster struct to avoid tons of useless printf/scanf.

9 years agoAdd new model for cluster tag.
Navarrop [Fri, 4 Nov 2011 10:43:37 +0000 (11:43 +0100)]
Add new model for cluster tag.

9 years agoensure that the create_resource functions do call strdup by themselves
Martin Quinson [Fri, 4 Nov 2011 09:41:34 +0000 (10:41 +0100)]
ensure that the create_resource functions do call strdup by themselves

Also, ensure that the CPU models use surf_resource_new() instead of
dupplicating its code

9 years agouseless cosmetics
Martin Quinson [Fri, 4 Nov 2011 08:19:13 +0000 (09:19 +0100)]
useless cosmetics

9 years agodamn. Make sure that the models are inited only once when parsing the same file twice...
Martin Quinson [Thu, 3 Nov 2011 17:11:24 +0000 (18:11 +0100)]
damn. Make sure that the models are inited only once when parsing the same file twice, while ensuring that it still work when parsing after a SD_exit()/SD_init() reset (we have vicious test cases, of which 10 are still broken)

9 years agothis output changed back, so revert my change of today
Martin Quinson [Thu, 3 Nov 2011 17:02:08 +0000 (18:02 +0100)]
this output changed back, so revert my change of today

9 years agofix a bug that I recently introduced that prevented the parser to reload a new platf...
Martin Quinson [Thu, 3 Nov 2011 16:54:14 +0000 (17:54 +0100)]
fix a bug that I recently introduced that prevented the parser to reload a new platf after a  new SD_exit() / SD_init() cycle

9 years agouse the right flag to get the pthread compilation schema
Martin Quinson [Thu, 3 Nov 2011 16:53:13 +0000 (17:53 +0100)]
use the right flag to get the pthread compilation schema

9 years agoFix warnings about clobbered variables in gras/rpc example.
Arnaud Giersch [Thu, 3 Nov 2011 15:29:49 +0000 (16:29 +0100)]
Fix warnings about clobbered variables in gras/rpc example.

9 years agoFix warnings about clobbered variables in gras/pmm example.
Arnaud Giersch [Thu, 3 Nov 2011 14:27:48 +0000 (15:27 +0100)]
Fix warnings about clobbered variables in gras/pmm example.

9 years agoFix warnings about clobbered variables in gras/ping example.
Arnaud Giersch [Thu, 3 Nov 2011 14:25:00 +0000 (15:25 +0100)]
Fix warnings about clobbered variables in gras/ping example.

9 years agoFix warnings about clobbered variables in gras/mmrpc example.
Arnaud Giersch [Thu, 3 Nov 2011 15:35:00 +0000 (16:35 +0100)]
Fix warnings about clobbered variables in gras/mmrpc example.

9 years agoFix warnings about clobbered variables in gras/console/ping example.
Arnaud Giersch [Thu, 3 Nov 2011 15:58:15 +0000 (16:58 +0100)]
Fix warnings about clobbered variables in gras/console/ping example.

9 years agoFix warnings about clobbered variables in amok/bandwidth example.
Arnaud Giersch [Thu, 3 Nov 2011 15:20:37 +0000 (16:20 +0100)]
Fix warnings about clobbered variables in amok/bandwidth example.

9 years agoRemove spurious semicolon.
Arnaud Giersch [Wed, 2 Nov 2011 20:29:33 +0000 (21:29 +0100)]
Remove spurious semicolon.

9 years agoDo not hide useful warnings: unused-but-set-variable.
Arnaud Giersch [Tue, 1 Nov 2011 16:49:52 +0000 (17:49 +0100)]
Do not hide useful warnings: unused-but-set-variable.

Mark them as no-error to avoid to break builds.
For example, some versions of valgrind.h cause a "variable unused but set"
warning in gcc 4.6.

9 years agoFix path for out-of-source builds.
Arnaud Giersch [Wed, 2 Nov 2011 20:09:22 +0000 (21:09 +0100)]
Fix path for out-of-source builds.

9 years agoEnable clobbered variable warnings again and fix the last one (for me)
Christophe Thiéry [Thu, 3 Nov 2011 13:32:41 +0000 (14:32 +0100)]
Enable clobbered variable warnings again and fix the last one (for me)

9 years agointegrate initialization functions within the parsing main function to clean the...
Martin Quinson [Thu, 3 Nov 2011 14:16:10 +0000 (15:16 +0100)]
integrate initialization functions within the parsing main function to clean the calling code

9 years agocleanup the way surf_parse_models_setup is called after the last <config> and before...
Martin Quinson [Thu, 3 Nov 2011 14:15:13 +0000 (15:15 +0100)]
cleanup the way surf_parse_models_setup is called after the last <config> and before the first <AS>-like

9 years agosplit raw parsing functions from platform parsing, which is somehow similar to the...
Martin Quinson [Thu, 3 Nov 2011 14:00:23 +0000 (15:00 +0100)]
split raw parsing functions from platform parsing, which is somehow similar to the deployment parsing done in simix

9 years agoprivatize this function that must be called at some point of the parsing process...
Martin Quinson [Thu, 3 Nov 2011 13:46:33 +0000 (14:46 +0100)]
privatize this function that must be called at some point of the parsing process (thus clearly not for the users)

9 years agooops, this should have been in a previous commit (a4f777f30924d7890b9e1da29f9d1a63703...
Martin Quinson [Thu, 3 Nov 2011 13:36:22 +0000 (14:36 +0100)]
oops, this should have been in a previous commit (a4f777f30924d7890b9e1da29f9d1a637035531b)