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:
parent
c92756d65a
commit
a8b6e56874
@ -164,7 +164,7 @@ class DmesgCollector(TraceCollector):
|
|||||||
def start(self):
|
def start(self):
|
||||||
self.reset()
|
self.reset()
|
||||||
# Empty the dmesg ring buffer
|
# Empty the dmesg ring buffer
|
||||||
self.target.execute('dmesg -c')
|
self.target.execute('dmesg -c', as_root=True)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
levels_list = list(takewhile(
|
levels_list = list(takewhile(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user