nanoBench modifications to build the kernel module with Linux kernel version 5.8.
Since the original code uses kallsyms which the kernel no longer exports, I relied on a workaround using kprobes to get the functionality back.
The remaining changes involve __vmalloc no longer providing the pgprot_t parameter and renaming the file operations structure.
This pull request aims to get nanoBench working on kernel version 5.8 and NOT redesign it to remove the dependency of kallsyms nor __vmalloc's pgprot_t parameter.
nanoBench modifications to build the kernel module with Linux kernel version 5.8.
Since the original code uses
kallsyms
which the kernel no longer exports, I relied on a workaround usingkprobes
to get the functionality back. The remaining changes involve__vmalloc
no longer providing thepgprot_t
parameter and renaming the file operations structure.This pull request aims to get nanoBench working on kernel version 5.8 and NOT redesign it to remove the dependency of
kallsyms
nor__vmalloc
'spgprot_t
parameter.Tested with kernel versions 5.4 and 5.8.