当前位置:网站首页>Sim Api User Guide(4)
Sim Api User Guide(4)
2022-04-23 09:55:00 【weixin_38498942】
Sim Api User Guide(4)
2.9.7 ConfigureBusPenalty
Prototype
HEXAPI_Status ConfigureBusPenalty(HEX_8u_t BusPenaltyInterval,
HEXAPI_Interval units)
Parameters
Return
Description
配置整个内存范围的总线访问的默认延迟。这个延迟可以通过为适当的地址范围连接一个总线cosim而被覆盖。延迟是由内核的时钟频率决定的,模拟 “实时”,就像内核在指定的频率下运行一样。与实际时间(即壁钟时间)没有直接关系。
时间增量的颗粒度由当前的核心频率设置来决定。最细的颗粒度对应于单个处理器周期所需的时间。所有的时间值都根据当前的处理器时钟频率进行缩放,如果核心频率发生变化,则重新进行缩放。
hexagon-sim中的-buspenalty cycles选项与该函数类似,只是该函数接受一个时间值而不是周期数。
2.9.8 ConfigureCosim
Prototype
HEXAPI_Status ConfigureCosim(const char *pCosimConfigFile,
HEXAPI_OpenMode mode = HEX_MODE_READ)
Parameters
Return
Description
将外部cosim插入模拟器。cosim(s)可以注册以获得内存读/写、总线访问、PC执行事件和基于时间的事件的回调。可以指定多个cosim,并在配置文件的不同行中列出。
cosim配置文件内容的例子。
/local/Hexagon_tools_install/qc/lib/iss/timer.so 32000 0xAB000000 2 /local/Hexagon_tools_install/qc/lib/iss/timer.so 19200000 0xAB004000 3 /local/MM_cosim/ebi_bus.so 0x100000
hexagon-sim中的–cosim_file文件名选项类似于这个函数。
2.9.9 ConfigureOSAwareness
Prototype
HEXAPI_Status ConfigureOSAwareness(const char *pOsamConfigFile,
HEXAPI_OpenMode mode = HEX_MODE_READ)
Parameters
Return
Description
在模拟器中插入一个操作系统意识模块。操作系统感知模块可以为以下内容注册回调。
- 调试器获取软件线程状态、互斥信息等。
- 2.PC执行事件。
- 虚拟到物理的转换,用于服务天使调用(半托管)。
hexagon-sim中的-rtos文件名选项类似于这个功能。
2.9.10 ConfigureQProf
Prototype
HEXAPI_Status ConfigureQProf (const char *pQProfConfigFile, HEXAPI_OpenMode mode = HEX_MODE_READ,
const char *qprofPath = NULL, HEX_4u_t port = 0)
Parameters
Return
Description
配置图形分析器的数据转储。详见 Hexagon Simulator 用户指南。剖析文件在指定的目录中创建。如果提供的是NULL目录,则在当前工作目录中创建文件。
配置文件使用模式作为打开方式。生成的qprof文件被打开进行写入,替换现有的qprof文件的内容(如果有的话),没有警告。
hexagon-sim中的–qprof文件名和–qprof:pipe port选项与这个函数类似。
2.9.11 ConfigureRProf
Prototype
HEXAPI_Status ConfigureRProf (const char *pRProfConfigFile,
HEXAPI_OpenMode mode = HEX_MODE_READ)
Parameters
Return
Description
配置区域分析器的参数。详见 Hexagon Simulator 用户指南。区域剖析数据被附加到统计文件中。参见第2.9.22节。
hexagon-sim中的–region_prof文件名选项与此功能类似。
2.9.12 ConfigureGProf
Prototype
HEXAPI_Status ConfigureGProf(const char *gprofPath = NULL)
Parameters
Return
Description
为GNU分析器配置数据转储。详见《Hexagon Simulator用户指南》。剖析文件将在指定的目录中创建。如果提供的是NULL目录,文件将在当前工作目录中创建。模拟器会覆盖现有的文件而不发出警告。
hexagon-sim中的–profile选项与此功能类似。
注意 如果不进行这个配置调用,gprof剖析将被禁用。无论是否有gprofPath参数,进行这个调用都可以启用gprof剖析。一旦进行了这个调用,就没有办法在这个会话中禁用gprof剖析了。
版权声明
本文为[weixin_38498942]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_38498942/article/details/124314324
边栏推荐
- Practice of Flink streaming batch integration in Xiaomi
- 通过流式数据集成实现数据价值(3)- 实时持续数据收集
- ES-aggregation聚合分析
- Nine abilities of agile manufacturing in the era of meta universe
- Kernel PWN learning (3) -- ret2user & kernel ROP & qwb2018 core
- SAP excel has completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
- Pyqt5与通信
- The central control learning infrared remote control module supports network and serial port control
- Redis 异常 read error on connection 解决方案
- 2022年上海市安全员C证考试题库及答案
猜你喜欢
元宇宙时代的职业规划与执行
Introduction to sap pi / PO login and basic functions
AI上推荐 之 MMOE(多任务yyds)
The central control learning infrared remote control module supports network and serial port control
PHP notes (I): development environment configuration
MapReduce计算流程详解
SAP debug debug for in, reduce and other complex statements
云身份过于宽松,为攻击者打开了大门
Redis 异常 read error on connection 解决方案
MapReduce核心和基础Demo
随机推荐
GCD of p2257 YY (Mobius inversion)
第三章 启用和调整IM列存储的大小(IM-3.1)
Solving Lucas number and combination theorem
Pyqt5与通信
一文读懂PlatoFarm新经济模型以及生态进展
Exclusive thoughts and cases of JS
2022年流动式起重机司机考试题库模拟考试平台操作
第一章 Oracle Database In-Memory 相关概念(IM-1.1)
php 二维数组指定元素相等后相加否则新增
(Extended) bsgs and higher order congruence equation
论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》
C语言:表达式求值(整型提升、算术转换 ...)
Practice of Flink streaming batch integration in Xiaomi
Personal homepage software fenrus
JS DOM learn three ways to create elements
[hdu6833] a very easy math problem
ABAP publishes OData service samples from CDs view
工业元宇宙平台规划与建设
论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》——3背景
NEC infrared remote control coding description