diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-03 10:09:11 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-03 10:09:11 -0800 |
commit | b8e5924a03ff8f05375a93d0d347fce0f6851202 (patch) | |
tree | 9495ae1b4a15cbd17a3692f89825c3c821671382 | |
parent | c00decbba4ea3c5d4f7cc5f74fbda4e62ad3a532 (diff) | |
download | damo-b8e5924a03ff8f05375a93d0d347fce0f6851202.tar.gz |
damo_report_times: Reuse damon_records.args_to_filters()
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | damo_report_times.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/damo_report_times.py b/damo_report_times.py index 1ec6ec63..8085c11d 100644 --- a/damo_report_times.py +++ b/damo_report_times.py @@ -8,17 +8,10 @@ import _damon_records import damo_show def main(args): - access_pattern = _damon.DamosAccessPattern(args.sz_region, - args.access_rate, _damon.unit_percent, args.age * 1000000, - _damon.unit_usec) - - addr_range = None - if args.address != None: - addr_range, err = _damon_records.parse_sort_addr_ranges_input( - args.address) - if err != None: - print('wrong --address input (%s)' % err) - exit(1) + access_pattern, addr_range, err = _damon_records.args_to_filters(args) + if err != None: + print(err) + exit(1) records, err = _damon_records.get_records( tried_regions_of=False, record_file=args.inputs[0], |