aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-14 08:49:51 -0700
committerSeongJae Park <sj@kernel.org>2024-04-14 08:49:51 -0700
commite9a101f5b08e7e4dacd51f6ad1d97134a5e84236 (patch)
tree531b9017315fe71f91d921d80eabb58255c89497
parent032cef1635253669b9aabacba0dd349b8c9bad82 (diff)
downloaddamo-e9a101f5b08e7e4dacd51f6ad1d97134a5e84236.tar.gz
damo_record: Use _damo_records.wait_recording()
Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r--damo_record.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/damo_record.py b/damo_record.py
index 0f861207..a1894178 100644
--- a/damo_record.py
+++ b/damo_record.py
@@ -117,12 +117,7 @@ def main(args):
poll_add_mem_footprint=args.footprint)
print('Press Ctrl+C to stop')
- if _damon_args.self_started_target(args):
- while _damo_records.poll_target_pids(data_for_cleanup.record_handle):
- time.sleep(1)
-
- _damon.wait_kdamonds_turned_off()
-
+ _damo_records.wait_recording(data_for_cleanup.record_handle)
cleanup_exit(0)
def set_argparser(parser):