convert debugfs to use sysfs