当前位置:网站首页>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
边栏推荐
- failureForwardUrl与failureUrl
- 第二章 Oracle Database In-Memory 体系结构(上) (IM-2.1)
- Comparison of overloading, rewriting and hiding
- LeetCode 1249. Minimum Remove to Make Valid Parentheses - FB高频题1
- MapReduce压缩
- Redis exception read error on connection solution
- Function realization of printing page
- Construire neuf capacités de fabrication agile à l'ère métacosmique
- 正大国际讲解道琼斯工业指数到底是什么?
- 从知识传播的维度对比分析元宇宙
猜你喜欢

ARM调试(1):两种在keil中实现printf重定向到串口的方法

Construire neuf capacités de fabrication agile à l'ère métacosmique

MapReduce压缩

Amazon cloud technology entry Resource Center, easy access to the cloud from 0 to 1

Solving Lucas number and combination theorem

《Redis设计与实现》

JS DOM event

防疫登记小程序

PHP笔记(一):开发环境配置

Personal homepage software fenrus
随机推荐
MapReduce核心和基础Demo
SAP 03-amdp CDs table function using 'with' clause
通过流式数据集成实现数据价值(2)
《谷雨系列》空投
杰理之有时候定位到对应地址的函数不准确怎么办?【篇】
Redis expired key cleaning and deletion policy summary
Less than 100 secrets about prime numbers
Redis 异常 read error on connection 解决方案
(Extended) bsgs and higher order congruence equation
杰理之通常程序异常情况有哪些?【篇】
Skill point digging
防疫登记小程序
golang力扣leetcode 396.旋转函数
Introduction to sap pi / PO login and basic functions
[COCI] Vje š TICA (subset DP)
Expansion of number theory Euclid
[lnoi2014] LCA - tree chain subdivision - multipoint LCA depth and problems
Career planning and implementation in the era of meta universe
Nine abilities of agile manufacturing in the era of meta universe
Classic routine: DP problem of a kind of string counting