can i test new system call before compiling kernel??????
hello everybody~
I want to test my system call that be goint to add to kernel,
But when i finish compiling kernel, i found my system call code not work.
the code i want to return the system time "struct timespec":
/*----------Start of mycall.c----------*/
#include <linux/linkage.h>
#include <linux/time.h>
#include <linux/kernel.h>
asmlinkage struct timespec sys_mycall(void) {
struct timespec now;
now=current_kernel_time();
printk(KERN_EMERG "the 320 system call run success!!!!\n ");
return now;
}
/*-----------End of mycall.c-----------*/
so i want a method to test the new system call before compiling kernel.
if you know the method or tool, please tell me
thank you
Last edited by brian1125; 04-02-2009 at 08:03 AM.
|