From 9199d8884e7257155b57a8ab2baca21f78923916 Mon Sep 17 00:00:00 2001
From: Christian Loehle <christian.loehle@arm.com>
Date: Thu, 21 Sep 2023 15:51:30 +0100
Subject: [PATCH] ftrace: Do not read-verify buffer_size_kb value

The sysfs documentation mentions that the value written
to buffer_size_kb ftrace field may be rounded up.
So skip the verify loop on this field.

The case we are worried about, a requested buffer
size that the target cannot fulfill is caught anyway,
as the sysfs write returns with an error that is caught.

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
---
 devlib/collector/ftrace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devlib/collector/ftrace.py b/devlib/collector/ftrace.py
index 9c17959..057d732 100644
--- a/devlib/collector/ftrace.py
+++ b/devlib/collector/ftrace.py
@@ -251,7 +251,7 @@ class FtraceCollector(CollectorBase):
         if top_buffer_size:
             self.target.write_value(
                 self.target.path.join(self.tracing_path, 'buffer_size_kb'),
-                top_buffer_size,
+                top_buffer_size, verify=False
             )
 
         if self.functions: