trace: method for getting buffer-wrap count
trace: use new trace frontend in test-trace