当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 2 Fork 2

Jiaxun Yang/sim-godson
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sampling.h 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
Jiaxun Yang 提交于 2019-11-13 20:22 . Initial commit
#ifndef __SAMPLING_H__
#define __SAMPLING_H__
#if 0
/* enum that indicates whether the simulator is currently warming, measuring, or fast-forwarding */
enum simulator_state_t {
NOT_STARTED,
MEASURING,
WARMING,
DRAINING,
FAST_FORWARDING
};
extern enum simulator_state_t simulator_state;
/* sampling enabled. 1 if enabled, 0 otherwise */
extern unsigned int sampling_enabled;
/* sampling k value */
extern int sampling_k;
/* sampling measurement unit */
extern int sampling_munit;
/* sampling measurement unit */
extern int sampling_wunit;
/* TRUE if in-order warming is enabled*/
extern int sampling_allwarm;
/* sample size*/
extern counter_t sim_sample_size;
/* period of each sample */
extern counter_t sim_sample_period;
/* total number of instructions measured */
extern counter_t sim_detail_insn;
/* total number of instructions measured */
extern counter_t sim_meas_insn;
/* measured cycle */
extern tick_t sim_meas_cycle;
extern double standardDeviation;
extern double percentageErrorInterval; /* not multiplied by 100%, so 3% is 0.03 */
extern int recommendedK; /* K recommended to achieve +/- 3%*/
/* updates standardDeviation */
extern void doStatistics(void);
extern void simoo_backup_stats(void);
extern void simoo_restore_stats(void);
extern void switch_to_fast_forwarding(void);
extern void switch_to_warming(void);
extern void start_measuring(void);
extern void stop_measuring(void);
extern void run_fast(counter_t count);
void predecode_init(void);
#endif
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/flygoat/sim-godson.git
git@gitee.com:flygoat/sim-godson.git
flygoat
sim-godson
sim-godson
master

搜索帮助