Method and apparatus for kernel module testing
AssigneeHewlett-Packard Development Company, L.P.
InventorsDaniel R. Mathias, C.P. Vijay Kumar
Life of this patent
Estimating the term…
Abstract
A method for testing a service that provides interface functions having no user space interaction and that is runs in a kernel space of an operating system. The method includes loading into the kernel space a dynamically loadable kernel module (DLKM) containing a pseudo device driver having interface commands corresponding to the interface functions of the service to be tested, invoking the interface commands to exercise the interface functions to be tested, and unloading the DLKM module.
Claims20
A method for testing a service that provides interface functions having no user space interaction and that is runs in a kernel space of an operating system, said method comprising:
- loading into the kernel space a dynamically loadable kernel module (DLKM) containing a pseudo device driver having interface commands corresponding to the interface functions of the service to be tested;
- invoking the interface commands to exercise the interface functions to be tested;
- and
- unloading the DLKM module.
A method in accordance with claim I wherein invoking the interface commands further comprises loading a user library having user interfaces configured to test the kernel interfaces via the DLKM interface commands.
A medium having recorded thereon machine readable instructions configured to facilitate testing of a computing apparatus having a service with interface functions that have no user space interaction and that runs in a kernel space of an operating system, said instructions configured to instruct the computing apparatus to:
- load into said kernel space a dynamically loadable kernel module (DLKM) containing a pseudo device driver having interface commands corresponding to the interface functions of the service to be tested;
- invoke said interface commands to exercise the interface functions to be tested;
- and
- unload said DLKM module.
A computing apparatus comprising a processor and a storage device having recorded thereon a kernel of an operating system that includes a service in kernel space that has interface functions without user space interaction, said computing apparatus configured to:
- load, into the kernel space, a dynamically loadable kernel module (DLKM) containing a pseudo device driver having interface commands corresponding to the interface functions of the service to be tested;
- invoke said interface commands to exercise the interface functions to be tested;
- and
- unload said DLKM module.
Dependencies are inferred from the claim text.