답변:
perf 를 사용하여 하드웨어 성능 카운터에 액세스 할 수 있습니다 .
$ perf stat -e dTLB-load-misses,iTLB-load-misses /path/to/command
예 :
$ perf stat -e dTLB-load-misses,iTLB-load-misses /bin/ls > /dev/null
Performance counter stats for '/bin/ls':
5,775 dTLB-load-misses
1,059 iTLB-load-misses
0.001897682 seconds time elapsed