mirror_corosync/include/corosync
Fabio M. Di Nitto 9a94d633cf flight recorder: switch from int to bytes for requested allocation
The flight recoder buffer size as specified in LOGSYS_DECLARE_SYSTEM
or _logsys_rec_init was expressed in number of ints. A developer asking
to allocate 512K would get a 2M allocation on a machine with sizeof(int) = 4.

This is confusing and the patch addresses it:

- rename rec_size to fltsize for external API (no type change),
  because rec_size is used many times internally for other reasons
  and it can be confusing.

- rename size to fltsize in _logsys_rec_init.

- document what we allocate and why.

- swap comments around to match the code.

- introduce a simple macro to perform rounding (stolen from linux-2.6.git).

- start shaping fdata header to better handle dynamic values:
  * write the flt_data_size as first unsigned int the header.
  * change corosync-fplay to read the value and alloc the right amount
    of memory instead of hardcoding it again.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2255 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-18 17:40:41 +00:00
..
engine flight recorder: switch from int to bytes for requested allocation 2009-06-18 17:40:41 +00:00
lcr Allow CPP linkage by adding extern "C" {} to external header files. 2009-04-26 02:08:18 +00:00
totem logsys: port to new packed rec_ident version 2009-06-18 05:32:56 +00:00
cfg.h remove "AIS" from cfg.h header file. 2009-04-26 02:24:43 +00:00
confdb.h Allow CPP linkage by adding extern "C" {} to external header files. 2009-04-26 02:08:18 +00:00
corodefs.h Public headers should not include private config.h 2009-05-30 04:47:01 +00:00
coroipc_ipc.h remove trailing blanks 2009-05-18 16:41:04 +00:00
coroipc_types.h remove trailing blanks 2009-05-18 16:41:04 +00:00
coroipcc.h Implement thread saftey in corosync trunk. 2009-04-29 07:21:21 +00:00
coroipcs.h Allow CPP linkage by adding extern "C" {} to external header files. 2009-04-26 02:08:18 +00:00
corotypes.h Rewrite of CPG. It solves problems with double delete. 2009-04-22 13:39:28 +00:00
cpg.h votequorum.c: avoid a new warning and add a comment in cpg.h 2009-05-04 12:45:45 +00:00
cs_config.h.in - Every .c file should include "config.h" to get the right defines... 2009-03-19 12:58:53 +00:00
cs_queue.h Rename queue datastructure to cs_queue data structure because some fail 2009-06-07 00:47:56 +00:00
evs.h Allow CPP linkage by adding extern "C" {} to external header files. 2009-04-26 02:08:18 +00:00
hdb.h Do checking of handle code after we verify that handle could actually be 2009-04-30 00:14:08 +00:00
ipc_cfg.h Add libnss security support to corosync. 2009-04-25 14:05:27 +00:00
ipc_confdb.h Include file cleanups. 2009-04-23 17:03:21 +00:00
ipc_cpg.h Include file cleanups. 2009-04-23 17:03:21 +00:00
ipc_evs.h Include file cleanups. 2009-04-23 17:03:21 +00:00
ipc_pload.h Include file cleanups. 2009-04-23 17:03:21 +00:00
ipc_quorum.h Include file cleanups. 2009-04-23 17:03:21 +00:00
ipc_votequorum.h Include file cleanups. 2009-04-23 17:03:21 +00:00
jhash.h jhash.h (jhash2): make first parameter const 2009-04-07 13:04:19 +00:00
list.h list.h: avoid shadowing warning 2009-04-15 19:12:02 +00:00
mar_gen.h Include file cleanups. 2009-04-23 17:03:21 +00:00
pload.h Allow CPP linkage by adding extern "C" {} to external header files. 2009-04-26 02:08:18 +00:00
quorum.h Allow CPP linkage by adding extern "C" {} to external header files. 2009-04-26 02:08:18 +00:00
sq.h Include string.h in sq.h for memset() calls. 2009-06-07 07:24:37 +00:00
swab.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
votequorum.h This patch adds the definition VOTEQUORUM_NODEID_US to the library, 2009-05-22 08:02:10 +00:00