gem5 시뮬레이터에 익숙해 지려고합니다. 가 시작하려면, 내가gem5 캐시 통계 - 재설정 및 덤프
./build/X86/gem5.opt configs/example/se.py --caches -c ~/tmp/hello
m5out/stats.txt 쇼 ... 내가 폴더의 유틸리티/M5/m5op_x86.S로 컴파일
int main()
{
m5_reset_stats(0, 0);
m5_dump_stats(0, 0);
return 0;
}
있는 간단한 프로그램을 작성하고 사용하여 실행 (다른 것들 중에서) ...
system.cpu.dcache.ReadReq_hits::total 881
system.cpu.dcache.WriteReq_hits::total 917
system.cpu.dcache.ReadReq_misses::total 54
system.cpu.dcache.WriteReq_misses::total 42
왜 빈 기능이 너무 많은 히트와 누락을 표시합니까? libc 때문에 안타와 실수가 있습니까? 그렇다면 m5_reset_stats() 및 m5_dump_stats()의 목적은 무엇입니까?