1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

trace: dmesg: Call dmesg -c as root

Clearing the kernel ring buffer needs root permission.
This commit is contained in:
Douglas RAILLARD 2019-03-25 14:21:55 +00:00 committed by Marc Bonnici
parent c92756d65a
commit a8b6e56874

View File

@ -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(