Skip to content
/ cr0cd Public

CR0.CD manipulate Linux Kernel Module as a proc filesystem

License

Notifications You must be signed in to change notification settings

alphaKAI/cr0cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cr0cd

CR0.CD manipulate Linux Kernel Module as a proc filesystem

Installation

$ git clone https://github.com/alphaKAI/cr0cd
$ cd cr0cd
$ make
$ gcc -o cr0cd_reader cr0cd_reader.c

Usage

CR0 exists on each of CPU core, you need specify which core will be disabled by taskset.

$ sudo insmod cr0cd.ko
$ taskset -c $CORE_NUMBER echo 1 > /proc/cr0cd # Disable CPU Cache
$ taskset -c $CORE_NUMBER some command # run on CPU Cache is disabled
$ taskset -c $CORE_NUMBER echo 0 > /proc/cr0cd # Enable CPU Cache
$ taskset -c $CORE_NUMBER ./cr0cd_reader # display current CR0 bits

Screenshot

This is an example of how CPU Cache disable affects.

screenshot

Memory access speed down to 2GB/sec -> 1MB(or more slow).

LICENSE

cr0cd is released under the MIT License.
Please see LICENSE for more details.
Copyright (C) 2019 Akihiro Shoji.

About

CR0.CD manipulate Linux Kernel Module as a proc filesystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published