<div dir="ltr">Hi Jonathan,<div><br></div><div>I had to run:</div><div><span style="color:rgb(80,0,80)">export LTTNG_CONSUMERD32_BIN=/lib/ltt</span><span style="color:rgb(80,0,80)">ng/libexec/lttng-consumerd</span></div><div><br></div><div>Thank you very much !</div><div>Zvika <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 17, 2019 at 10:48 PM Jonathan Rajotte-Julien <<a href="mailto:jonathan.rajotte-julien@efficios.com">jonathan.rajotte-julien@efficios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
You forgot to cc the mailing list. Adding it.<br>
<br>
On Fri, May 17, 2019 at 04:50:02AM +0300, Zvi Vered wrote:<br>
> Hi Janathan, All,<br>
> <br>
> I solved the path issue with<br>
> <br>
> export LTTNG_CONSUMERD32_BIN=/lib/lttng/libexec<br>
> export LTTNG_CONSUMERD32_LIBDIR =/lib<br>
> export LTTNG_SESSION_CONFIG_XSD_PATH=/share/lttng/...<br>
<br>
This is a way to solve it, I would still recommend you fix it at the source<br>
(proper cross build).<br>
<br>
...<br>
<br>
> ....<br>
> DEBUG3 - 00:13:48.436226116 [1980/1980]: Looking for a kernel consumer at<br>
> these locations: (in spawn_consumerd() at main.c:2429)<br>
> DEBUG3 - 00:13:48.436252139 [1980/1980]: 1) NULL (in<br>
> spawn_consumerd() at main.c:2430)<br>
> DEBUG3 - 00:13:48.436256414 [1980/1980]: 2)<br>
> /64_sw/git/zvi_vered/MY_PROJ/linux4.9.20/boot/rootfs/lib/lttng/libexec/lttng-consumerd<br>
> (in spawn_consumerd() at main.c:2431)<br>
> DEBUG3 - 00:13:48.436260543 [1980/1980]: 3) /lib/lttng/libexec (in<br>
> spawn_consumerd() at main.c:2432)<br>
> DEBUG3 - 00:13:48.436313492 [1980/1980]: Found location #3 (in<br>
> spawn_consumerd() at main.c:2441)<br>
> DEBUG1 - 00:13:48.436319027 [1980/1980]: Using kernel consumer at:<br>
> /lib/lttng/libexec (in spawn_consumerd() at main.c:2448)<br>
> PERROR - 00:13:48.436341261 [1980/1980]: Consumer execl(): Permission<br>
> denied (in spawn_consumerd() at main.c:2539)<br>
<br>
We found the consumerd in /lib/lttng/libexec/lttng-consumerd. Good.<br>
<br>
We now try to execl the following:<br>
<br>
/lib/lttng/libexec/lttng-consumerd -k --consumerd-cmd-sock <a_path> --consumerd-error-sock <b_path> --group root<br>
<br>
And execl returns "Permission Denied".<br>
<br>
Clearly, /lib/lttng/libexec/lttng-consumerd have some permissions problem.<br>
<br>
"Permission denied" is linked to EACCES on my system.<br>
asm-generic/errno-base.h<br>
17:#define EACCES 13 /* Permission denied */<br>
<br>
"man execve" list all the reasons why execl might return EACCES per "man execl":<br>
<br>
EACCES Search permission is denied on a component of the path prefix of filename or the name of a script interpreter. (See also path_resolution(7).)<br>
EACCES The file or a script interpreter is not a regular file.<br>
EACCES Execute permission is denied for the file or a script or ELF interpreter.<br>
EACCES The filesystem is mounted noexec.<br>
<br>
One of them probably fit your current scenario.<br>
<br>
Let us know how it goes.<br>
<br>
Cheers<br>
<br>
-- <br>
Jonathan Rajotte-Julien<br>
EfficiOS<br>
</blockquote></div>