aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2024-03-03 10:08:51 -0800
committerSeongJae Park <sj38.park@gmail.com>2024-03-03 10:08:51 -0800
commitc00decbba4ea3c5d4f7cc5f74fbda4e62ad3a532 (patch)
tree905734fbdb415cb8c105ecd41da4e5fc5c72de22
parent3585bc4ec5e63e4782f3ccbd884e428ad96e683e (diff)
downloaddamo-c00decbba4ea3c5d4f7cc5f74fbda4e62ad3a532.tar.gz
damo_report_profile: Reuse _damon_records.args_to_filters()
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r--damo_report_profile.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/damo_report_profile.py b/damo_report_profile.py
index 9a4545bb..600e90f3 100644
--- a/damo_report_profile.py
+++ b/damo_report_profile.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],