Re: Kernel Mocking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 20, 2015 at 03:26:40PM -0500, Kenneth Adam Miller wrote:
> Thanks for your expedient answer!
> 
> So, I was discussing an alternative to mocking; function hooking. But in a
> benign way. Is there any way to, at runtime replace the functionality of code
> in order that you specify what it does for any given kernel function?

Not really, but there are some hacks you can do if you _really_ know
what you are doing.

Hint, don't do this, just write "normal" tests for your kernel code, we
have lots of them already in the source tree, look in tools/selftests/.

Best of luck,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux