ARM-software / devlib

Library for interaction with and instrumentation of remote devices.
Apache License 2.0
47 stars 78 forks source link

modules/sched: Use correct permissions to read debugfs #586

Closed douglas-raillard-arm closed 2 years ago

douglas-raillard-arm commented 2 years ago

Use target.list_directory(as_root=target.is_rooted) instead of doing it as a normal user for paths in /sys/kernel/debug. Since this list_directory() call can be used with multiple path, we do not force as_root=True but we increase the chance of it working.