mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland/arch/aarch64/dump_regs.c
This commit is contained in:
13
userland/arch/aarch64/dump_regs.c
Normal file
13
userland/arch/aarch64/dump_regs.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user