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

2014-05-30 Thread Richard Weinberger
Am 30.05.2014 10:08, schrieb enjoy mindful: > Sorry. I know how to use addr2line. But it is not what I'm looking for. > > For example, with i386 kernel, it is easy to find c017e7a5 belong to > function get_user. > > x86]$ vi /hack/linux-3.12.6/Documentation/x86/exception-tables.txt >

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

2014-05-30 Thread enjoy mindful
Sorry. I know how to use addr2line. But it is not what I'm looking for. For example, with i386 kernel, it is easy to find c017e7a5 belong to function get_user. x86]$ vi /hack/linux-3.12.6/Documentation/x86/exception-tables.txt . 217 or in human readable byte order: 218 219 > c01aa7c

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

2014-05-30 Thread Richard Weinberger
On Fri, May 30, 2014 at 9:29 AM, enjoy mindful wrote: > Hi, all > I build linux-3.12.6 uml with default configure. > > tar -jxf linux-3.12.6.tar.bz2 > cd linux-3.12.6 > make ARCH=um defconfig > make ARCH=um linux > > I'm confused about the exception table of the uml kernel. > > > $ objdump --ful

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-05-30 Thread Richard Weinberger
On Fri, May 30, 2014 at 3:22 AM, Nalli, Sanketh wrote: > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/800:00:00 linux > > 6180 pts/800:00:00 linux > > 6181 pts

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

2014-05-30 Thread enjoy mindful
Hi, all I build linux-3.12.6 uml with default configure. tar -jxf linux-3.12.6.tar.bz2 cd linux-3.12.6 make ARCH=um defconfig make ARCH=um linux I'm confused about the exception table of the uml kernel. $ objdump --full-contents --section=__ex_table linux linux: file format elf32-i386 C

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-05-30 Thread enjoy mindful
let me answer your second question. I did this analysis with kernel linux-3.12.6: 1) make ARCH=um cscope 2) search functions which called 'clone' File FunctionLine 0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp, CLONE_FILES |