[uml-user] can't trace kmem_cache_init with gdb

2014-08-16 Thread Real Name
hi, I can't trace kmem_cache_init function with GDB, because gdb jump to wrong source line. Is there anyone know how to fix this issue? [real@name tmp]$ tar -Jxf linux-3.12.6.tar.xz [real@name tmp]$ cd linux-3.12.6/ [real@name linux-3.12.6]$ make ARCH=um defconfig HOSTCC scripts/

[uml-user] gprof missing functions

2014-07-24 Thread Real Name
hi, When trace the UML linux kernel with gprof, it seems gprof missing some functions. There are new_thread_handler and fork_handler in "arch/um/kernel/process.c". gprof catchs the new_thread_handler function, but there is no sign about fork_handler. Because the two functions are in the same fil

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-07-17 Thread Real Name
On Sat, Jun 28, 2014 at 12:06:28PM +0800, Real Name wrote: > On Sat, Jun 21, 2014 at 03:28:52PM +0800, Real Name wrote: > > On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: > > > Am 05.06.2014 06:15, schrieb Honggang Li: > > > > arch/x86/um/check

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-06-27 Thread Real Name
On Sat, Jun 21, 2014 at 03:28:52PM +0800, Real Name wrote: > On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: > > Am 05.06.2014 06:15, schrieb Honggang Li: > > > arch/x86/um/checksum_32.S had been copy & paste from x86. When build > > > x86 uml,

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-06-21 Thread Real Name
On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: > Am 05.06.2014 06:15, schrieb Honggang Li: > > arch/x86/um/checksum_32.S had been copy & paste from x86. When build > > x86 uml, csum_partial_copy_generic_i386 mess up the exception table. > > In fact, exception table dose not wor

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-06-17 Thread Real Name
On Mon, Jun 09, 2014 at 01:45:56PM +0800, Real Name wrote: > On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: > > Am 05.06.2014 06:15, schrieb Honggang Li: > > > arch/x86/um/checksum_32.S had been copy & paste from x86. When build > > > x86 uml,

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-06-08 Thread Real Name
On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: > Am 05.06.2014 06:15, schrieb Honggang Li: > > arch/x86/um/checksum_32.S had been copy & paste from x86. When build > > x86 uml, csum_partial_copy_generic_i386 mess up the exception table. > > In fact, exception table dose not wor

Re: [uml-user] how to find out which functions have been record in exception table?

2014-06-04 Thread Real Name
On Fri, May 30, 2014 at 10:50:59AM +0200, Richard Weinberger wrote: I find the function through checking which object file has the _ex_table section. tmp]$ cat find_ex_table.sh #!/bin/bash (cd ~/uml/linux-3.12.6; find . -type f -name '*.o' > /tmp/xx.txt) for file in `cat /tmp/xx.txt`; do

[uml-user] How to run UML with valgrind and GDB?

2014-06-04 Thread Real Name
Hi, I tried to run UML (linux-3.12.6-x86) kernel with valgrind and GDB. But valgrind always terminated because SIGSEGV signal. I searched with google, just got some very old resource about run linux-2.6.xx with valgrind. So, is it possible to run linux (>3.12) with valgrind? If yes, how to do