trace: add trace bufsize configuration parameter