A log record is never split across two buffers, so a buffer must hold
the largest one: a callchain of PMC_CALLCHAIN_DEPTH_MAX frames, which
is 32 + 512 * 8 = 4128 bytes. kern.hwpmc.logbuffersize accepted any
positive value, and with 1 to 4 KiB such a record ran past the end of
its buffer.
Require at least 5 KiB and document the minimum.
MFC after: 1 week
Signed-off-by: Davi Chaves Azevedo <dchavesa@amd.com>
Sponsored by: Advanced Micro Devices, Inc.