From a8b6e56874ed9cc5d6c63e747a20d4ae73ab607d Mon Sep 17 00:00:00 2001 From: Douglas RAILLARD Date: Mon, 25 Mar 2019 14:21:55 +0000 Subject: [PATCH] trace: dmesg: Call dmesg -c as root Clearing the kernel ring buffer needs root permission. --- devlib/trace/dmesg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/trace/dmesg.py b/devlib/trace/dmesg.py index 4b43912..90805d6 100644 --- a/devlib/trace/dmesg.py +++ b/devlib/trace/dmesg.py @@ -164,7 +164,7 @@ class DmesgCollector(TraceCollector): def start(self): self.reset() # Empty the dmesg ring buffer - self.target.execute('dmesg -c') + self.target.execute('dmesg -c', as_root=True) def stop(self): levels_list = list(takewhile(