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

2014-06-03 Thread Richard Weinberger
Sanketh > Sent: Monday, June 02, 2014 6:29 PM > To: user-mode-linux-user@lists.sourceforge.net; 'Richard Weinberger' > Cc: Volos, Haris > Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes > > Okay, so I've found a way around the invalid exe symlink. >

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

2014-06-02 Thread Nalli, Sanketh
2014 1:46 PM To: Nalli, Sanketh Cc: user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 22:42, schrieb Nalli, Sanketh: > Nope, but here is some bootlog Hmm, I have no idea so far. Applications running under valgrind or ot

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

2014-06-02 Thread Nalli, Sanketh
r' Cc: Volos, Haris Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes Okay, so I've found a way around the invalid exe symlink. I don't need that anymore. The next challenge is concurrency in UML. I wrote a simple program that launches 10 pthreads, Each of which makes some

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

2014-06-02 Thread Nalli, Sanketh
: 'Richard Weinberger' Cc: 'user-mode-linux-user@lists.sourceforge.net' Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes Oh wait, sorry its not. -Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 1:50 PM To: 'Richard Weinberger&

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

2014-06-02 Thread Nalli, Sanketh
Oh wait, sorry its not. -Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 1:50 PM To: 'Richard Weinberger' Cc: user-mode-linux-user@lists.sourceforge.net Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes OK Checking for new_mm and switch_mm supp

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

2014-06-02 Thread Nalli, Sanketh
OK Checking for new_mm and switch_mm support in the host: > /proc/self/mm ... Failed - > No such file or directory > Checking for the skas3 patch in the host: > - /proc/mm...not found: No such file or directory > - PTRACE_FAULTINFO...not found > - PTRACE_LDT...not found > UML running

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

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 22:42, schrieb Nalli, Sanketh: > Nope, but here is some bootlog Hmm, I have no idea so far. Applications running under valgrind or other debuggers suffered from the issue that /proc/pid/exe is empty. > The host does not have skas3 patch > Do you think that is the problem ? Nope. S

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

2014-06-02 Thread Nalli, Sanketh
To: Nalli, Sanketh Cc: user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Are you running UML under a debugger? Thanks, //richard Am 02.06.2014 22:16, schrieb Nalli, Sanketh: > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan > nalli

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

2014-06-02 Thread Richard Weinberger
ts including the hidden Ones in a >> long listing fashion. > > Please show it verbatim. > > Thanks, > //richard > >> -----Original Message- >> From: Richard Weinberger [mailto:rich...@nod.at] >> Sent: Monday, June 02, 2014 12:20 PM >> To: Na

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

2014-06-02 Thread Nalli, Sanketh
x-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 22:11, schrieb Nalli, Sanketh: > Nothing..just lists all the contents including the hidden Ones in a > long listing fashion. Please show it verbatim. Thanks, //richard > -O

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

2014-06-02 Thread Richard Weinberger
une 02, 2014 12:20 PM > To: Nalli, Sanketh > Cc: user-mode-linux-user@lists.sourceforge.net > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > Am 02.06.2014 21:16, schrieb Nalli, Sanketh: >> nalli@haris-crashnburn:~$ cd /proc/6188 >> nalli@

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

2014-06-02 Thread Nalli, Sanketh
] invalid /proc/PID/exe in UML processes Am 02.06.2014 21:16, schrieb Nalli, Sanketh: > nalli@haris-crashnburn:~$ cd /proc/6188 > nalli@haris-crashnburn:/proc/6188$ ls -l exe What does "ls -la /proc/6188" show? T

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

2014-06-02 Thread Nalli, Sanketh
: Monday, June 02, 2014 12:12 PM To: Richard Weinberger Cc: user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Also, This is how I compile and run : make defconfig ARCH=um make menuconfig ARCH=um ( set the CONFIG_X86_64 = y) make -j 24 ARCH=um

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

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 21:16, schrieb Nalli, Sanketh: > nalli@haris-crashnburn:~$ cd /proc/6188 > nalli@haris-crashnburn:/proc/6188$ ls -l exe What does "ls -la /proc/6188" show? Thanks, //richard -- Learn Graph Databases - Dow

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

2014-06-02 Thread Nalli, Sanketh
:06 PM To: Nalli, Sanketh Cc: enjoy mindful; user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ?

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

2014-06-02 Thread Nalli, Sanketh
-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> H

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

2014-06-02 Thread Nalli, Sanketh
-Original Message- From: Nalli, Sanketh Sent: Monday, June 02, 2014 11:54 AM To: Richard Weinberger Cc: user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes And that symlink is crucial to the workload I am trying to run

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

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. Wh

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

2014-06-02 Thread Nalli, Sanketh
1:41 AM To: Nalli, Sanketh Cc: enjoy mindful; user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount proc

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

2014-06-02 Thread Nalli, Sanketh
li, Sanketh Cc: enjoy mindful; user-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > > &g

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

2014-06-02 Thread Richard Weinberger
t PID != Guest PID > > > From: enjoy mindful [mailto:enjoymind...@gmail.com] > Sent: Friday, May 30, 2014 12:06 AM > To: Nalli, Sanketh > Cc: user-mode-linux-user@lists.sourceforge.net > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > let me answer

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

2014-06-02 Thread Nalli, Sanketh
-mode-linux-user@lists.sourceforge.net Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes 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

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

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 |

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

2014-05-29 Thread Nalli, Sanketh
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/800:00:00 linux 6182 pts/800:00:00 linux 6183 pts/800:00:00 linux 6188 pts/