mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
13 lines
255 B
ArmAsm
13 lines
255 B
ArmAsm
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-rdtsc-instruction */
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
rdtsc
|
|
mov %edx, %edi
|
|
shl $32, %rdi
|
|
add %rax, %rdi
|
|
call lkmc_print_hex_64
|
|
call lkmc_print_newline
|
|
LKMC_EPILOGUE
|