Skip to content

lizardo/test-kmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?
===========

test_kmod is a simple tool that takes a compiled .ko module, "loads" it using
mmap() and apply relocations the same way it is done by the Linux kernel. The
undefined external symbols are them resolved to "stub" functions implemented by
test_kmod itself (see stubs.c).

This allows controlling the module inputs, and can be useful for unit testing,
debugging (using GDB), memory checking (using valgrind) and code coverage
(using gcov+lcov).

About

A userspace tool to test (compiled) Linux kernel modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages