Hi, everyone

I compiled and installed the utrace kernel. I'm sure I successfully
installed.

/proc $ cat kallsyms | grep utrace
c018bd40 t utrace_detached_quiesce
c018bd50 t utrace_detached_reap
c018bd60 T utrace_interrupt_pending
c018bd90 T task_utrace_proc_status
c018bdc0 T utrace_finish_stop
c018be10 T __utrace_engine_release
c018be40 T utrace_free_task
...

I downloaded crash_suspend.c from the website and want to compile it to a
module.
But it failed, the Makefile and the error output are as follows:

~/Downloads $ cat Makefile
obj-m := crash_suspend.o

all:
    make -C /lib/modules/$(shell uname -r)/source M=$(PWD) modules
clean:
    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
help:
    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) help

~/Downloads $ make
make -C /lib/modules/2.6.33-rc4/source M=/home/diabloneo/Downloads modules
make[1]: Entering directory `/usr/src/linux-2.6-utrace'
make[2]: *** No rule to make target
`/home/diabloneo/Downloads/crash_suspend.c', needed by
`/home/diabloneo/Downloads/crash_suspend.o'.  Stop.
make[1]: *** [_module_/home/diabloneo/Downloads] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6-utrace'
make: *** [all] Error 2

Can you tell me how to solve this problem?
BTW, I already make the /lib/modules/KERNELVERSION/build point to the utrace
kernel source directory,
and the kernel in that directory is maked.

Thanks.

Neo Liu

Reply via email to