No rule to make target

2010-04-11 Thread Neo Liu
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


Re: How to install utrace kernel?

2010-04-07 Thread Neo Liu
Yes, I clone the code from the git repository and installed successfully.
But I didn't find the utrace.h under include/linux directory.

Is there some installation instruction?

On Wed, Apr 7, 2010 at 8:08 PM, Oleg Nesterov o...@redhat.com wrote:

 Not sure I understand the question.

 If you did

        git clone 
 git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace.git

 the installation is done, see linux-2.6-utrace/include/linux/utrace.h

 Just in case: utrace.h is not for user-space.

 Oleg.





How to install utrace kernel?

2010-04-06 Thread Neo Liu
Hi, everyone
I want to try the utrace tracing engine, so I downloaded the
kernel code from the Git repository listed in the utrace wiki.
(git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace.git
). And then I compiled and installed the kernel in my virtual
machine successfully. But I didn't find the file like
linux/utrace.h. I think this means that I didn't install the utrace
kernel
correctly. I ask for your help to tell me how to install the utrace
kernel. Do I need to patch the three patch files
(tracehook.patch  utrace.patch  utrace-ptrace.patch) ?

Thanks.