userland/arch/aarch64/dump_regs.c

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-03 01:00:00 +00:00
parent 1341df0682
commit ed369cd57e
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
/* https://cirosantilli.com/linux-kernel-module-cheat#dump-regs */
#include <stdio.h>
#include <stdlib.h>
#include <lkmc.h>
#include <lkmc/aarch64.h>
int main(void) {
lkmc_sysreg_print_cntvct_el0();
lkmc_sysreg_print_cntfrq_el0();
return EXIT_SUCCESS;
}