aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2024-03-17 11:02:39 -0700
committerSeongJae Park <sj38.park@gmail.com>2024-03-17 11:02:39 -0700
commit713ee7b29a11b28730344a5f100d67c70a7c49d0 (patch)
treefda7758ffe45a77d4180821e2c75192d90b5dd03
parent7a7ac12b68f4afd2dcadb9e7db34db39a9f02134 (diff)
downloaddamo-713ee7b29a11b28730344a5f100d67c70a7c49d0.tar.gz
_damon_dbgfs: Use _damo_fs.write_file() for single file i/o
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r--_damon_dbgfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/_damon_dbgfs.py b/_damon_dbgfs.py
index e792cb69..dc44ce3b 100644
--- a/_damon_dbgfs.py
+++ b/_damon_dbgfs.py
@@ -41,10 +41,10 @@ def supported():
return os.path.isdir(damon_dir)
def turn_damon_on(kdamonds_idxs):
- return _damo_fs.write_files({get_debugfs_monitor_on_path(): 'on'})
+ return _damo_fs.write_file(get_debugfs_monitor_on_path(), 'on')
def turn_damon_off(kdamonds_idxs):
- return _damo_fs.write_files({get_debugfs_monitor_on_path(): 'off'})
+ return _damo_fs.write_file(get_debugfs_monitor_on_path(), 'off')
def is_kdamond_running(kdamond_idx):
content, err = _damo_fs.read_file(get_debugfs_monitor_on_path())