当前位置:网站首页>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
边栏推荐
- 工业元宇宙平台规划与建设
- Easy to understand subset DP
- MapReduce计算流程详解
- Leetcode0587. Install fence
- Mobius inversion
- Kernel PWN learning (3) -- ret2user & kernel ROP & qwb2018 core
- AI上推荐 之 MMOE(多任务yyds)
- SAP pi / PO soap2proxy consumption external WS example
- Integral function and Dirichlet convolution
- SAP CR transmission request sequence and dependency check
猜你喜欢
SAP CR transmission request sequence and dependency check
Number theory blocking (integer division blocking)
防疫登记小程序
ARM调试(1):两种在keil中实现printf重定向到串口的方法
计算机网络安全实验二|DNS协议漏洞利用实验
Kernel PWN learning (4) -- double fetch & 0ctf2018 baby
NEC infrared remote control coding description
论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》——5结果
Nine abilities of agile manufacturing in the era of meta universe
Kernel PWN learning (3) -- ret2user & kernel ROP & qwb2018 core
随机推荐
P1390 sum of common divisor (Mobius inversion)
A concise course of fast Fourier transform FFT
Setnx command execution failed due to full redis memory
Where is int a = 1 stored
Chinese Remainder Theorem and extended Chinese remainder theorem that can be understood by Aunt Baojie
Golang force buckle leetcode 396 Rotation function
2022年制冷与空调设备运行操作考试练习题及模拟考试
Comparison of overloading, rewriting and hiding
DBA常用SQL语句(3)- cache、undo、索引和等待事件
How to obtain geographical location based on photos and how to prevent photos from leaking geographical location
Longest common front string
杰理之有时候发现内存被篡改,但是没有造成异常,应该如何查找?【篇】
SAP excel has completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
PHP two-dimensional array specifies that the elements are added after they are equal, otherwise new
Computer network security experiment II DNS protocol vulnerability utilization experiment
Kernel PWN learning (4) -- double fetch & 0ctf2018 baby
Easy to understand subset DP
第三章 启用和调整IM列存储的大小(IM-3.1)
Classic routine: DP problem of a kind of string counting
SAP salv14 background output salv data can directly save files and send emails (with sorting, hyperlink and filtering format)