Tests: Fix: 99% fill ratio for high buffer usage is too high for larger events
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 28 May 2020 01:29:05 +0000 (21:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Nov 2020 21:26:32 +0000 (16:26 -0500)
commitfd5f40473396e65ca78a6806c269b7b4604803eb
tree82e2c6ef2aa8c52d875938864ef2a447426b3ba0
parent1a8c9d1d35d4d71aac912f2dc2eceebb84b4eb8b
Tests: Fix: 99% fill ratio for high buffer usage is too high for larger events

If the event being registered is bigger than 1% of a subbuffer, the 99%
ratio cannot be achieved since the "last event" necessary to go over 99%
will always be dropped by the tracer.

e.g:
  DBG1 - 19:31:07.665963875 [Notification]: [notification-thread] High buffer usage condition being evaluated: threshold = 16220, highest usage = 16196 (in evaluate_buffer_usage_condition() at notification-thread-events.c:3733)

We use a ratio of 90% to keep a little headroom.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I06180735e0b5e88209b888e51cc83b4ac7d98193
tests/regression/tools/notification/notification.c
This page took 0.025317 seconds and 4 git commands to generate.