Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

关于使用NEMU-tracing生成baremetal app checkpoint #189

Open
Bwoah-Kimi opened this issue Sep 22, 2023 · 3 comments
Open

关于使用NEMU-tracing生成baremetal app checkpoint #189

Bwoah-Kimi opened this issue Sep 22, 2023 · 3 comments
Labels
wontfix This will not be worked on

Comments

@Bwoah-Kimi
Copy link

Bwoah-Kimi commented Sep 22, 2023

在(https://xiangshan-doc.readthedocs.io/zh_CN/latest/tools/simpoint/) 文档中,默认流程是构建一个linux内核并在linux中运行benchmark,再打包成bbl.bin让NEMU运行。目前我想要直接让NEMU运行bin文件,例如简单的hello world,请问是可行的吗?

@Bwoah-Kimi
Copy link
Author

目前已经将gcpt_restore的内存地址地址空出,且已经在运行目标程序之前完成关闭时钟中断 和 进入 Simpoint Profiling 模式这两个操作。
profiling结果如下所示:
profiling.txt
clustering结果如下所示:
cluster.txt
但是运行checkpoint时目标文件夹没有输出,运行结果如下所示:
checkpoint.txt

恳请解答!

@Bwoah-Kimi
Copy link
Author

大概知道问题出现在什么地方了。我让NEMU-tracing运行的是nexus-am生成的coremark二进制文件,没有放在linux里面,NEMU进入的是Machine Mode,在不使用--cpt-mmode情况下是不会生成checkpoint的。
请问m mode生成checkpoint可能会在什么情况下出现问题?如果执行的是可信代码的话,是否--cpt-mmode也能够得到理想的结果,并且能够让GEM5和emu运行呢?

@shinezyy
Copy link
Contributor

大概知道问题出现在什么地方了。我让NEMU-tracing运行的是nexus-am生成的coremark二进制文件,没有放在linux里面,NEMU进入的是Machine Mode,在不使用--cpt-mmode情况下是不会生成checkpoint的。 请问m mode生成checkpoint可能会在什么情况下出现问题?如果执行的是可信代码的话,是否--cpt-mmode也能够得到理想的结果,并且能够让GEM5和emu运行呢?

可以参考这个issue:
#54

@shinezyy shinezyy added the wontfix This will not be worked on label Jan 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants