ARM-software / devlib

Library for interaction with and instrumentation of remote devices.
Apache License 2.0
47 stars 78 forks source link

ftrace: Set top-level buffer size #627

Closed douglas-raillard-arm closed 1 year ago

douglas-raillard-arm commented 1 year ago

trace-cmd start -B devlib -b 42 will set the buffer size for the "devlib" ftrace instance but will not set the buffer size of the top-level buffer.

Unfortunately, some events still end up in the top-level buffer regardless of any configuration such as the "print" event. This can lead to lost events because the buffer size was too small.

Avoid that by using the buffer size for both top-level and devlib's instance.