mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
tools: acrntrace: Make TSC frequency configurable
Originally, acrntrace stores cpu frequency in output file and use it for time-based analysis. Actually, we should use TSC frequency instead of cpu frequency. This patch change to using TSC frequency for time-based analysis and introduce an option "-f --frequency" to let user configure TSC frequency. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
10
tools/acrntrace/scripts/config.py
Normal file
10
tools/acrntrace/scripts/config.py
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
"""
|
||||
This file defines global configuration used by acrnalyze
|
||||
"""
|
||||
|
||||
# TSC frequency in MHz
|
||||
# Default TSC frequency of MRB
|
||||
TSC_FREQ = 1881.6
|
||||
Reference in New Issue
Block a user