Lines Matching refs:sysfs_dir

55     def sysfs_dir(self):  member in DamosAccessPattern
56 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern')
60 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0])
64 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1])
67 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'),
71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'),
76 os.path.join(self.sysfs_dir(), 'age', 'min'), self.age[0])
80 os.path.join(self.sysfs_dir(), 'age', 'max'), self.age[1])
101 def sysfs_dir(self): member in DamosQuotaGoal
102 return os.path.join(self.quota.sysfs_dir(), 'goals', '%d' % self.idx)
105 err = write_file(os.path.join(self.sysfs_dir(), 'target_metric'),
109 err = write_file(os.path.join(self.sysfs_dir(), 'target_value'),
113 err = write_file(os.path.join(self.sysfs_dir(), 'current_value'),
135 def sysfs_dir(self): member in DamosQuota
136 return os.path.join(self.scheme.sysfs_dir(), 'quotas')
139 err = write_file(os.path.join(self.sysfs_dir(), 'bytes'), self.sz)
142 err = write_file(os.path.join(self.sysfs_dir(), 'ms'), self.ms)
145 err = write_file(os.path.join(self.sysfs_dir(), 'reset_interval_ms'),
150 nr_goals_file = os.path.join(self.sysfs_dir(), 'goals', 'nr_goals')
206 def sysfs_dir(self): member in Damos
208 self.context.sysfs_dir(), 'schemes', '%d' % self.idx)
211 err = write_file(os.path.join(self.sysfs_dir(), 'action'), self.action)
217 err = write_file(os.path.join(self.sysfs_dir(), 'apply_interval_us'),
228 os.path.join(self.sysfs_dir(), 'watermarks', 'metric'), 'none')
234 os.path.join(self.sysfs_dir(), 'filters', 'nr_filters'), '0')
247 def sysfs_dir(self): member in DamonTarget
249 self.context.sysfs_dir(), 'targets', '%d' % self.idx)
253 os.path.join(self.sysfs_dir(), 'regions', 'nr_regions'), '0')
257 os.path.join(self.sysfs_dir(), 'pid_target'), self.pid)
276 return os.path.join(self.context.sysfs_dir(), 'monitoring_attrs',
280 return os.path.join(self.context.sysfs_dir(), 'monitoring_attrs',
333 def sysfs_dir(self): member in DamonCtx
334 return os.path.join(self.kdamond.sysfs_dir(), 'contexts',
339 os.path.join(self.sysfs_dir(), 'operations'), self.ops)
347 self.sysfs_dir(), 'targets', 'nr_targets')
361 self.sysfs_dir(), 'schemes', 'nr_schemes')
388 def sysfs_dir(self): member in Kdamond
389 return os.path.join(self.kdamonds.sysfs_dir(), '%d' % self.idx)
392 nr_contexts_file = os.path.join(self.sysfs_dir(),
406 err = write_file(os.path.join(self.sysfs_dir(), 'state'), 'on')
410 err = write_file(os.path.join(self.sysfs_dir(), 'state'), 'off')
414 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
422 scheme.sysfs_dir(), 'tried_regions')
424 os.path.join(scheme.sysfs_dir(), 'tried_regions')):
439 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
445 content, err = read_file(os.path.join(scheme.sysfs_dir(),
452 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
462 os.path.join(scheme.sysfs_dir(), 'stats', stat))
469 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
477 os.path.join(scheme.quota.sysfs_dir(),
485 nr_contexts_file = os.path.join(self.sysfs_dir(),
499 err = write_file(os.path.join(self.sysfs_dir(), 'state'), 'commit')
512 return write_file(os.path.join(self.sysfs_dir(), 'state'),
524 def sysfs_dir(self): member in Kdamonds
528 err = write_file(os.path.join(self.sysfs_dir(), 'nr_kdamonds'),