mirror of
https://github.com/andreas-abel/nanoBench.git
synced 2025-12-13 10:10:04 +01:00
consistency
This commit is contained in:
@@ -858,7 +858,7 @@ void measurement_template_Intel_2() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence \n"
|
||||
@@ -916,7 +916,7 @@ void measurement_template_Intel_4() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence \n"
|
||||
@@ -1082,7 +1082,7 @@ void measurement_template_AMD() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence \n"
|
||||
@@ -1222,7 +1222,7 @@ void measurement_FF_template_Intel() {
|
||||
"mov rcx, 0x40000001 \n"
|
||||
"lfence; rdpmc; lfence \n"
|
||||
"shl rdx, 32; or rdx, rax \n"
|
||||
"sub [r15+16], rdx; \n"
|
||||
"sub [r15+16], rdx \n"
|
||||
"lfence \n"
|
||||
"pop r15; lfence \n"
|
||||
"pop rdx; lfence \n"
|
||||
@@ -1230,7 +1230,7 @@ void measurement_FF_template_Intel() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence \n"
|
||||
@@ -1341,7 +1341,7 @@ void measurement_FF_template_AMD() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence \n"
|
||||
@@ -1426,7 +1426,7 @@ void measurement_RDTSC_template() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence; rdtsc; lfence \n"
|
||||
@@ -1484,7 +1484,7 @@ void measurement_RDMSR_template() {
|
||||
"pop rax; lfence \n"
|
||||
"cmp al, -127; lfence \n"
|
||||
"sahf; lfence \n"
|
||||
"pop rax; \n"
|
||||
"pop rax \n"
|
||||
"lfence \n"
|
||||
".quad "STRINGIFY(MAGIC_BYTES_CODE)" \n"
|
||||
"lfence \n"
|
||||
|
||||
Reference in New Issue
Block a user