Add a 'guard' size parameter to ringbuffer construction, remove hardcoded
commitc4b28acd90b1dc5370f6d565f5f95a2144e151c5
authorChristian Thaeter <ct@pipapo.org>
Thu, 28 Jan 2010 23:28:21 +0000 (29 00:28 +0100)
committerChristian Thaeter <ct@pipapo.org>
Thu, 28 Jan 2010 23:28:21 +0000 (29 00:28 +0100)
treeca910afb70c513dd17009d69e7c02d4fb2c9181a
parent6cb6f58e9f4faf9ce69a705ceff50f88039775f9
Add a 'guard' size parameter to ringbuffer construction, remove hardcoded

The size of ringbuffer wraparound pages at each end of the data was
hardcoded to 1 page. This remove this restriction and lets one pass
explicit sizes for this areas.

This also adds a (guard=N) option parsed from the NOBUG_LOG env var.
src/nobug.c
src/nobug.h
src/nobug_env.c
src/nobug_rbdump.c
src/nobug_ringbuffer.c