mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2026-01-19 18:21:54 +00:00
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
|
||
|---|---|---|
| .. | ||
| engine | ||
| lcr | ||
| totem | ||
| cfg.h | ||
| confdb.h | ||
| corodefs.h | ||
| coroipc_ipc.h | ||
| coroipc_types.h | ||
| coroipcc.h | ||
| coroipcs.h | ||
| corotypes.h | ||
| cpg.h | ||
| cs_config.h.in | ||
| cs_queue.h | ||
| evs.h | ||
| hdb.h | ||
| ipc_cfg.h | ||
| ipc_confdb.h | ||
| ipc_cpg.h | ||
| ipc_evs.h | ||
| ipc_pload.h | ||
| ipc_quorum.h | ||
| ipc_votequorum.h | ||
| jhash.h | ||
| list.h | ||
| mar_gen.h | ||
| pload.h | ||
| quorum.h | ||
| sq.h | ||
| swab.h | ||
| votequorum.h | ||