Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of a badly-written macro
[simgrid.git] / ChangeLog
1 2004-11-03 Arnaud Legrand
2   - Rename every gras_* function that was in xbt/ to its xbt_
3     counterpart.
4   - Add a heap and a doubly-linked list to xbt
5   - Added a dichotomy to the dictionnaries. make check works as well before
6     so I assume that the patch is correct. I do not know however if things
7     run effectively faster than before now. :)
8
9 2004-10-29 Martin Quinson
10   - Introduction of the remote errors. 
11     They are the result of a RMI/RPC on the remote machine.
12     ErrCodes being scalar values, you can't get the host on which those
13     errors did happen. Extending the error mecanism as in Gnome is possible.
14     No idea yet whether it is a good idea.
15     
16 2004-10-28 Martin Quinson
17   - Interface revolution: the Starred Structure Eradication.
18     I used to do typedef struct {} toto_t; and then handle *toto_t.
19     Arnaud (and Oli) didn't like it, and I surrendered. Now, you have:
20       - ???_t is a valid type (builded with typedef)
21       - s_toto_t is a structure (access to fields with .)
22       - s_toto   is a structure needing 'struct' keyword to be used
23       - e_toto_t is an enum
24       -   toto_t is an 'object' (struct*)
25     Exemple:
26       typedef struct s_toto {} s_toto_t, *toto_t;
27       typedef enum {} e_toto_t;
28     Moreover, only toto_t (and e_toto_t) are public. The rest (mainly
29      s_toto_t) is private.
30     
31   - While I was at it, all gras_<obj>_free() functions want a gras_<obj>_t*
32     so that it can set the variable to NULL. It was so for dicts and sets,
33     it changed for dynars.
34     
35   - Fix a bunch of memleaks in dict_remove
36   - Fix a bug in sg/server_socket opening: it failed all the time.
37
38 2004-10-07 Martin Quinson
39   - Speed up dynar lookup operation a bit.
40   
41     gras_dynar_get is dead. 
42     
43     Now, you can choose between gras_dynar_get_cpy (the old gras_dynar_get
44     but should be avoided for efficiency reasons) and gras_dynar_get_ptr
45     (which gives you the address of the stored data).
46     
47     gras_dynar_get_as is an helpful macro which allows you to retrieve a
48     copy of the data using an affectation to do the job and not a memcpy.
49     
50     int toto = gras_dynar_get_as(dyn,0,int); rewrites itself to
51     int toto = *(int*)gras_dynar_get_ptr(dyn,0);
52     
53     It does not really speedup the dynar test because they are
54     setting elements all the time (and look them seldom). But the dict does
55     far more lookup than setting.
56
57     So, this brings the dict_crash test from ~33s to ~25s (200000 elms).
58
59 2004-10-05 Martin Quinson
60   - Allow to (en/dis)able the cycle detection at run time.
61   
62     Whether we should check for cycle or not is now a property of each
63     datatype. When you think there may be some cycle, use datadesc_cycle_set.
64     datadesc_cycle_unset allow to remove this property when previously set.
65     
66     Note that the cycle detection is off by default since it impacts the 
67     performance. Watch the data you feed GRAS with ;)
68     
69     This property is hereditary. Any element embeeded in a structure having it
70     set have it set for the time of this data exchange.
71     
72     You should set it both on sender and receiver side. If you don't set it on
73     sender side, it will enter an endless loop. If you forget on receiver
74     side, the cycles won't be recreated after communication.
75     
76   - Header reorganization.
77     Kill gras_private.h, each submodule must load the headers it needs.
78
79 2004-10-04 Martin Quinson
80   - Interface revolution: do not try to survive to malloc failure.
81   
82     Now, gras_malloc and friends call gras_abort() on failure.
83     As a conclusion, malloc_error is not a valid error anymore, and all
84       functions for which it was the only gras_error_t return value are
85       changed. They now return void, or there result directly. 
86     This simplify the API a lot.
87
88 2004-09-29 Martin Quinson
89   - Re-enable raw sockets.
90     Created by gras_socket_{client,server}_ext;
91     Used with gras_raw_{send,recv}
92     No select possible.
93     
94     It should allow to kill the last bits of gras first version soon.
95   
96     This is not completely satisfactory yet (dupplicate code with
97      chunk_{send,recv}; a bit out of the plugin mecanism), but it should
98      work. 
99
100   - Simplify transport plugin (internal) interface by not passing any
101     argument to _server and _client, but embeeding them in the socket
102     struct directly. 
103
104 2004-09-28 Martin Quinson
105   - Finish the port to AIX.
106     autoconf was my problem (segfault within the malloc replacement
107     function. No idea why)
108         
109 2004-09-16 Martin Quinson
110   - Fix some size_t madness on 64bit architectures.
111   
112 2004-09-08 Martin Quinson
113   - Reduce the number of system headers loaded, overload some more system
114     calls (such as malloc to cast the result of the system one, and work
115     properly on AIX)
116   - Fix and reintroduce the config support
117
118 2004-09-07 Martin Quinson
119   - Source code reorganization to allow Arnaud to surf all over there.
120   - Allow to document the logging categories.
121   - Remove all uppercase from logging categories and useless cleanup in names.
122
123 2004-08-18 Martin Quinson
124   Version 0.6.2 (protocol not changed; API changed)
125   - Interface cleanup: gras_msgtype_by_name returns the type (instead of a
126      gras_error_t), and NULL when not found. Functions expecting a msgtype
127      as argument (msg_wait; msg_send) deal with NULL argument by providing a
128      hopefully usefull message.
129   - Portability to prehistoric sparcs again
130
131 2004-08-17 Martin Quinson
132   Version 0.6.1 (protocol not changed; ABI not changed)
133   - prealloc some buffers to speed things up
134
135 2004-08-11 Martin Quinson
136   Version 0.6 (protocol not changed; ABI expended)
137   - The parsing macro can deal with the references, provided that you add
138     the relevant annotations (using GRAS_ANNOTE(size,field_name))
139
140 2004-08-09 Martin Quinson
141   Version 0.5 (protocol not changed; ABI changed)
142   - Allow to off turn the cycle detection code in data exchange at
143     compilation time. It should be at run time, but I'm short of time (and
144     the config stuff is still broken). That way, we keep dict out of the
145     critical path, which is good because the performance is poor:
146      - search not dichotomial yet
147      - dynar give no way to access their content and memcpy everytime
148   - In composed data description (struct, ref and so on), stop foolness of
149     keeping the subtype's ID, but store the type itself. This keeps sets out
150     of the critical path, which is good since they rely on dynar and
151     dictionnaries. The only loose of that is that we cannot detect the
152     redeclaration of a structure/union with another content (but I'm not sure 
153     the code detected well this error before anyway). We still can detect
154     the redefinition discrepancy for the other types.
155   - Use a whole bunch of optimisation flags (plus -fno-strict-aliasing since
156     it breaks the code because of type-punning used all over the place).
157     This breaks on all non-gcc architectures (for now).
158     
159   All those changes (plus the buffer of last time) allow me to gain 2 order
160   of magnitude on cruel tests consisting of 800000 array of integers on two
161   level of a hierarchical structure (200 secondes -> 4 secondes)
162   
163   API change:
164     - the selector of reference must now return the type it points to, not
165       the ID of this type.
166
167 2004-08-06 Martin Quinson
168   Version 0.4 (protocol changed; ABI not changed)
169   - Allow to pass --gras-log argument to processes in simulation mode. Really.
170   - New debugging level: trace (under debug) to see effect of GRAS_IN/OUT
171   - Implement a buffer transport, and use it by default (it relies on tcp in
172      real life and on sg in simulation).
173     That's a bit hackish since I had a new field to the structure to store
174      its data without interfering with the subtype ones. Inheritance
175      is tricky in C. And that's a kind of reverse inheritance with one class
176      derivating two classes. Or maybe a game with java interfaces. Anyway,
177      that's damn hard in C (at least).
178     Moreover, I got tired while trying to ensure plugin separation and
179      genericity in SG mode. MSG wants me to do weird things, so let's go for
180      cruel hacks (temporarily of course ;).
181      See comment in transport_private.h:71
182   - do not include all the _interface headers in private but in the files
183     which really need them (to cut the compilation time when they are
184     modified) 
185
186 2004-07-26 Martin Quinson
187   Version 0.3 (protocol not changed; ABI changed)
188   - Major overhault of the datadesc interface to simplify it:
189     - shorted the function names:
190       s/gras_datadesc_declare_struct/gras_datadesc_struct/ and so on
191     - add a trivial way to push/pop integers into the cbps without malloc.
192       This allows to make really generic sub_type description, which simply
193         pop their size of the stack.
194     - add a function gras_datadesc_ref_pop_arr() which does what users want
195       most of the time: Declare a dynamic array (which pops its size of the
196       stack) and declare a reference to it. Poor name, but anyway.
197     - kill the post-send callback, add a post-receive one
198     
199 2004-07-23 Martin Quinson
200   Version 0.2 (protocol changed; ABI changed)
201   - add some testing for cpbs in the test cases, and fix some more bugs.
202     This invalidate again the little64 data file, since I cannot regenerate
203     it myself.
204   - remove an awfull optimization in the logging stuff, allowing me to:
205     - understand it again
206     - learn gcc how to check that the argument match the provided format
207     - fix all errors revealed by gcc after that
208   - internal keys of dict are not \0 terminated. Deal with it properly in
209     loggings instead of segfaulting when the user want to see the logs :-/
210
211 2004-07-22 Martin Quinson
212   - Fix some stupid bug preventing cbps (callback postit) from working
213
214 2004-07-21 Martin Quinson
215   - Some documentation cleanups
216   - remove the useless last argument of msgtype_declare
217   - rename the Virtu functions to fit into the 'os' namespace
218   - move headers src/include -> src/include/gras/ and stop fooling with 
219     gras -> . symbolic link
220   - make distcheck is now successful
221
222 2004-07-19 Martin Quinson
223   Version 0.1.1
224   - Build shared library also
225   - Install html doc to the right location
226   - stop removing maintainer files in make clean
227   - build tests only on make check
228   
229 2004-07-13 Martin Quinson
230   version 0.1
231   - No major issue in previous version => change versionning schema
232   - Re-enable little64 convertion test now that Abdou kindly regenerated the
233     corresponding dataset.
234   
235 2004-07-11 Martin Quinson
236   version 0.0.4
237   - Get it working with any kind of structure (we can compute the padding
238     bytes remotely for all the architectures I have access to)
239   - Implement the structure parsing macro (still not quite robust/complete)
240   - Improvement to the remote testing toysuite
241   
242 2004-07-10 Martin Quinson
243  [autoconf mecanism]
244   - get ride of a bunch of deprecated macros
245   - actually run the test for two-compliment, not only compile it :-/
246   - test whether the structures get packed (and bail out if yes. Damn.
247     Alignment is a serious matter)
248   - test whether the structures get compacted (but respecting the alignment
249     constraints of each types)
250   - test whether the array fields of structures can straddle alignment boundaries
251  [base]
252   - Damnit, double are bigger than float (typo in creation of 'double' datadesc)
253     (took me 2 hours to find that bug, looking at the wrong place)
254   - Add gras_datadesc_declare_{union,struct}_close(). They must be used
255     before sending/receiving and are used to compute the offsets of fields
256   - Given that padding size depend even on compiler options, keep track of
257     alignment and aligned_size only for the current architecture. Not a big
258     deal since we send structure fields one after the other (seems
259     reasonable).    
260   - Add the datastructure used for IEEE paper by the PBIO guys to the test
261     program, let it work on linux/gcc/little32. portability todo.
262
263 2004-07-08 Martin Quinson
264   - import and improve remote compilation support from FAST
265   - make sure make check works on half a dozen of machines out there
266
267 2004-07-07 Martin Quinson
268  Let's say it's version 0.0.3 ;)
269   - Implement conversions (yuhu!)
270   - Let it work on solaris (beside conversion, of course)
271   - Stupid me, using rand() to generate the conversion datatests in not wise.
272
273 2004-07-06 Martin Quinson
274   - Let make dist work, since I'm gonna need it to compile on remote hosts
275   - Let Tests/datadesc_usage write the architecture on which the file was
276     generated as first byte.
277   - Add PowerPC (being also IRIX64), SPARC (also power4) and ALPHA
278     architecture descriptions. 
279   - Add datadesc_usage.{i386,ppc,sparc} files being the result of execution
280     on those architectures.
281   - Optimization: send/recv array of scalar in one shoot
282
283 2004-07-05 Martin Quinson
284   - YEAH! GRAS/SG and GRAS/RL are both able to run the ping example !
285   
286   - Plug a whole bunch of memleaks
287   - each process now have to call gras_{init,exit}. One day, their log
288     settings will be separated
289   - Continue the code factorisation between SG, RL and common in Transport.
290
291 2004-07-04 Martin Quinson
292  [Transport]
293   - Redistribution between SG and RL. 
294     We wanna have to accept in SG, so move accepted related parts of RL in
295     the common part. (more precisely, the dynar of all known sockets is no
296     more a static in transport.c, but part of the process_data)
297  [Core/module.c] 
298  [gras_stub_generator]
299   - Bug fix: Do call gras_process_init from gras_init (wasnt called in RL).
300
301 2004-07-03 Martin Quinson
302   - Create a new log channel tbx containing dict, set, log, dynar (to shut
303     them all up in one shot)
304  [DataDesc]
305   - Fix the ugly case of reference to dynamic array.
306   - New (semi-public) function gras_datadesc_size to allow the messaging
307     layer to malloc the needed space for the buffer.
308  [Transport]
309   - gras_socket_close now expect the socket to close (and not its address to
310     put NULL in it after it). This is because the socket passed to handlers
311     is one of their argument (=> not writable).
312  [Messaging]
313   - propagate the interface cleanup from last week in datadesc, ie remove a
314     superfluous level of indirection. User pass adress of variable
315     containing data (both when sending and receiving), and not of a variable
316     being a pointer to the data. Let's say that I like it better ;)
317       The price for that is constructs like "int msg=*(int*)payload" in
318     handlers, but it's a fine price, IMHO.
319  [examples/ping]
320   - Let it work in RL (yuhu)
321
322 2004-06-21 Martin Quinson
323  [Transport]
324    - porting SG plugin and SG select to new standards (works almost).
325    - plug memleaks and fix bugs around.
326    
327  [DataDesc] 
328    - cleanup the prototype of data recv and force users to specify when they 
329      want to handle references to objects. Test case working even for cycles.
330    - plug memleaks. Valgrind is perfectly ok with this.
331
332 2004-06-12 Martin Quinson
333  [Transport] 
334    - cleanup the separation between plugin and main code in plugin creation 
335
336 2004-06-11 Martin Quinson
337  [Transport]
338    - Reput hook for raw sockets, needed for BW experiments
339    - kill a few lines of dead code
340  [Data description] Interface cleanup
341    - gras_datadesc_by_name returns the searched type or NULL.
342      That way, no variable is needed to use a type desc once, which makes
343       the code clearer.
344    - gras_datadesc_declare_[struct|union]_append_name is removed. The last
345       two parameters were strings (field name, type name), leading to
346       common errors.
347  [Dicos] Interface cleanup
348    - gras_dico_retrieve -> gras_dico_get ; gras_dico_insert -> gras_dico_set 
349      This is consistant with the dynar API.
350
351 2004-04-21 Martin Quinson
352  [Messaging]
353    - Porting to new standards.
354  [Data description]
355    - interface cleanup. 
356      There is no bag anymore, no need to take extra provision to mask the
357        pointers behind "ID". 
358      Better splitup of functions between files create/exchange/convert.
359        This is still a bit artificial since convert and receive are so
360        interleaved, but anyway.
361  [Virtu(process)]
362    - add a queued message list to procdata (the ones not matching criteria
363      in msg_wait)
364    - factorize some more code between SG and RL wrt procdata
365  [Tests]
366    - use gras_exit in example to track memleaks
367    - get rid of gs_example now that GS is properly integrated into gras
368    - update run_test to integrate the lastest tests (datadesc)
369  [Logging]
370    - rename WARNINGn macros to WARNn since it prooved error-prone
371      
372 2004-04-19 Martin Quinson
373  [Data description]
374    - register init/exit functions within gras module mecanism   
375    - send/receive function. 
376    Convertion is not implemented, but short-cutted if not needed.
377    struct/array elements are sent one by one (instead of block-wise), but
378      nobody really cares (yet). Get a prototype before optimizing.
379    - tests (using a file socket) for DD send/receive on:
380      - base types: int, float
381      - array: fixed size, string (ie ref to dynamic string)
382      - structure: homogeneous, heterogeneous
383      - chained list, graph with cycle
384    Believe it or not, valgrind is not too unhappy with the results. The
385     cycle happily segfaults, but the others are ok. And I'm sick of pointers
386     for now.
387  [Transport]
388    [File plugin] 
389      - Bugfix when using a filename explicitely (instead of '-')
390
391 2004-04-09 Martin Quinson
392  [Transport plugins]
393    - factorize more code between RL and SG in socket creation
394    - Complete the implementation and tests of:
395      o TCP
396      o file (only in RL, and mainly for debugging)
397      
398      I lost 3 days to design a portable address resolver, and then decided
399        that the prototype mainly have to run on my box.
400      Addressing portability too early may be like optimizing too early :-/
401  [Tests]
402    - use gras_init in the Tests instead of the crappy parse_log_opt 
403      (the latter function is removed)
404  [Conditional execution]
405    - New functions: gras_if_RL/gras_if_SG (basic support for this)
406  [Code reorganisation]
407   - Get rid of libgrasutils.a since it makes more trouble than it solves.
408     Build examples against the RL library, since there is no way to disable
409     its creation for now.