All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: lttng on aarch64 platform
       [not found] <5658933A.4060408@parrot.com>
@ 2015-11-29 14:58 ` Mathieu Desnoyers
       [not found] ` <1656873418.171234.1448809123603.JavaMail.zimbra@efficios.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2015-11-29 14:58 UTC (permalink / raw)
  To: Ronan CHAUVIN; +Cc: lttng-dev

----- On Nov 27, 2015, at 6:30 PM, Ronan CHAUVIN ronan.chauvin@parrot.com wrote:

> Hello all,
> 
> I am trying to use lttng 2.7.0 on an aarch64 platform. When I create my
> session a trap is triggered which indicated that a unknow syscall (389)
> is called.
> 
> / # lttng -vvv create mysession
> DEBUG1 - 02:36:22.271714 [850/850]: Session daemon binary path:
> /usr/bin/lttng-sessiond (in launch_sessiond() at commands/create.c:668)
> Spawning a session daemon
> DEBUG1 - 02:36:24.275751 [850/850]: Session daemon terminated normally
> (exit status: 1) (in spawn_sessiond() at commands/create.c:606)
> Error: Session daemon terminated with an error (exit status: 1)
> Error: Problem occurred while launching session daemon
> (/usr/bin/lttng-sessiond)
> Error: Command error
> DEBUG1 - 02:36:24.275899 [850/850]: Clean exit (in clean_exit() at
> lttng.c:193)
> 
> It seems that lttng-sessiond deamon is directly exited. Has anyone
> already tried on a 3.10 kernel and aarch64 platform?

Hi Ronan,

That's because your liburcu calls the new membarrier system call, which was
introduced later than your kernel. The way it works is that if the membarrier
system call returns -1, errno=ENOSYS, it falls-back to a liburcu implementation
which does not need the membarrier system call. This question here is: why
does your kernel trap when an unknown system call is invoked ?

Thanks,

Mathieu

> 
> Thanks in advance,
> 
> --
> Ronan CHAUVIN
> Embedded Software Engineer
> ASIC & Video team
> --------------------------------
> Parrot SA
> 174, quai de Jemmapes
> 75010 Paris, France
> --------------------------------
> www.parrot.com
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: lttng on aarch64 platform
       [not found] ` <1656873418.171234.1448809123603.JavaMail.zimbra@efficios.com>
@ 2015-12-04 17:52   ` Ronan CHAUVIN
       [not found]   ` <5661D2DC.20509@parrot.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Ronan CHAUVIN @ 2015-12-04 17:52 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev

Hi Mathieu,

Thank you for your answer. I have investigated the issue.

The trap wasn't the reason why the daemon was exited. The kernel doesn't 
kill the process when an unknow system call is invoked. As you mentioned 
some functionalities will not be available on this kernel version as it 
doesn't have new membarrier system call implementation.

I launched the daemon independently and got the following error:
"Error: URI parse bad hostname localhost for af 2
Segmentation fault
/# boxinit: untracked pid 12292 'lttng-runas' exited"

This behavior comes from the gethostbyname2 function used at 
src/common/uri.c line 119. It seems that this function read the 
/etc/hosts file which was not present on my system.

Everything else works fine.

Thanks for your help,

Ronan

On 11/29/2015 03:58 PM, Mathieu Desnoyers wrote:
> ----- On Nov 27, 2015, at 6:30 PM, Ronan CHAUVIN ronan.chauvin@parrot.com wrote:
>
>> Hello all,
>>
>> I am trying to use lttng 2.7.0 on an aarch64 platform. When I create my
>> session a trap is triggered which indicated that a unknow syscall (389)
>> is called.
>>
>> / # lttng -vvv create mysession
>> DEBUG1 - 02:36:22.271714 [850/850]: Session daemon binary path:
>> /usr/bin/lttng-sessiond (in launch_sessiond() at commands/create.c:668)
>> Spawning a session daemon
>> DEBUG1 - 02:36:24.275751 [850/850]: Session daemon terminated normally
>> (exit status: 1) (in spawn_sessiond() at commands/create.c:606)
>> Error: Session daemon terminated with an error (exit status: 1)
>> Error: Problem occurred while launching session daemon
>> (/usr/bin/lttng-sessiond)
>> Error: Command error
>> DEBUG1 - 02:36:24.275899 [850/850]: Clean exit (in clean_exit() at
>> lttng.c:193)
>>
>> It seems that lttng-sessiond deamon is directly exited. Has anyone
>> already tried on a 3.10 kernel and aarch64 platform?
> Hi Ronan,
>
> That's because your liburcu calls the new membarrier system call, which was
> introduced later than your kernel. The way it works is that if the membarrier
> system call returns -1, errno=ENOSYS, it falls-back to a liburcu implementation
> which does not need the membarrier system call. This question here is: why
> does your kernel trap when an unknown system call is invoked ?
>
> Thanks,
>
> Mathieu
>
>> Thanks in advance,
>>
>> --
>> Ronan CHAUVIN
>> Embedded Software Engineer
>> ASIC & Video team
>> --------------------------------
>> Parrot SA
>> 174, quai de Jemmapes
>> 75010 Paris, France
>> --------------------------------
>> www.parrot.com
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: lttng on aarch64 platform
       [not found]   ` <5661D2DC.20509@parrot.com>
@ 2015-12-15 18:47     ` Ronan CHAUVIN
  0 siblings, 0 replies; 4+ messages in thread
From: Ronan CHAUVIN @ 2015-12-15 18:47 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev

Hi Mathieu,

I have another question related the syscall information on aarch64 
platforms. It doesn't seems to be present on lttng 2.7.0 on my traces.

Do we need to extract and generate the syscall headers via extractor and 
script in lttng-modules for our kernel version (3.10.67)?

Thanks.

Ronan

On 12/04/2015 06:52 PM, Ronan CHAUVIN wrote:
> Hi Mathieu,
>
> Thank you for your answer. I have investigated the issue.
>
> The trap wasn't the reason why the daemon was exited. The kernel 
> doesn't kill the process when an unknow system call is invoked. As you 
> mentioned some functionalities will not be available on this kernel 
> version as it doesn't have new membarrier system call implementation.
>
> I launched the daemon independently and got the following error:
> "Error: URI parse bad hostname localhost for af 2
> Segmentation fault
> /# boxinit: untracked pid 12292 'lttng-runas' exited"
>
> This behavior comes from the gethostbyname2 function used at 
> src/common/uri.c line 119. It seems that this function read the 
> /etc/hosts file which was not present on my system.
>
> Everything else works fine.
>
> Thanks for your help,
>
> Ronan to genarate header
>
> On 11/29/2015 03:58 PM, Mathieu Desnoyers wrote:
>> ----- On Nov 27, 2015, at 6:30 PM, Ronan CHAUVIN 
>> ronan.chauvin@parrot.com wrote:
>>
>>> Hello all,
>>>
>>> I am trying to use lttng 2.7.0 on an aarch64 platform. When I create my
>>> session a trap is triggered which indicated that a unknow syscall (389)
>>> is called.
>>>
>>> / # lttng -vvv create mysession
>>> DEBUG1 - 02:36:22.271714 [850/850]: Session daemon binary path:
>>> /usr/bin/lttng-sessiond (in launch_sessiond() at commands/create.c:668)
>>> Spawning a session daemon
>>> DEBUG1 - 02:36:24.275751 [850/850]: Session daemon terminated normally
>>> (exit status: 1) (in spawn_sessiond() at commands/create.c:606)
>>> Error: Session daemon terminated with an error (exit status: 1)
>>> Error: Problem occurred while launching session daemon
>>> (/usr/bin/lttng-sessiond)
>>> Error: Command error
>>> DEBUG1 - 02:36:24.275899 [850/850]: Clean exit (in clean_exit() at
>>> lttng.c:193)
>>>
>>> It seems that lttng-sessiond deamon is directly exited. Has anyone
>>> already tried on a 3.10 kernel and aarch64 platform?
>> Hi Ronan,
>>
>> That's because your liburcu calls the new membarrier system call, 
>> which was
>> introduced later than your kernel. The way it works is that if the 
>> membarrier
>> system call returns -1, errno=ENOSYS, it falls-back to a liburcu 
>> implementation
>> which does not need the membarrier system call. This question here 
>> is: why
>> does your kernel trap when an unknown system call is invoked ?
>>
>> Thanks,
>>
>> Mathieu
>>
>>> Thanks in advance,
>>>
>>> -- 
>>> Ronan CHAUVIN
>>> Embedded Software Engineer
>>> ASIC & Video team
>>> --------------------------------
>>> Parrot SA
>>> 174, quai de Jemmapes
>>> 75010 Paris, France
>>> --------------------------------
>>> www.parrot.com
>>>
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev@lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* lttng on aarch64 platform
@ 2015-11-27 17:30 Ronan CHAUVIN
  0 siblings, 0 replies; 4+ messages in thread
From: Ronan CHAUVIN @ 2015-11-27 17:30 UTC (permalink / raw)
  To: lttng-dev

Hello all,

I am trying to use lttng 2.7.0 on an aarch64 platform. When I create my 
session a trap is triggered which indicated that a unknow syscall (389) 
is called.

/ # lttng -vvv create mysession
DEBUG1 - 02:36:22.271714 [850/850]: Session daemon binary path: 
/usr/bin/lttng-sessiond (in launch_sessiond() at commands/create.c:668)
Spawning a session daemon
DEBUG1 - 02:36:24.275751 [850/850]: Session daemon terminated normally 
(exit status: 1) (in spawn_sessiond() at commands/create.c:606)
Error: Session daemon terminated with an error (exit status: 1)
Error: Problem occurred while launching session daemon 
(/usr/bin/lttng-sessiond)
Error: Command error
DEBUG1 - 02:36:24.275899 [850/850]: Clean exit (in clean_exit() at 
lttng.c:193)

It seems that lttng-sessiond deamon is directly exited. Has anyone 
already tried on a 3.10 kernel and aarch64 platform?

Thanks in advance,

-- 
Ronan CHAUVIN
Embedded Software Engineer
ASIC & Video team
--------------------------------
Parrot SA
174, quai de Jemmapes
75010 Paris, France
--------------------------------
www.parrot.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-15 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5658933A.4060408@parrot.com>
2015-11-29 14:58 ` lttng on aarch64 platform Mathieu Desnoyers
     [not found] ` <1656873418.171234.1448809123603.JavaMail.zimbra@efficios.com>
2015-12-04 17:52   ` Ronan CHAUVIN
     [not found]   ` <5661D2DC.20509@parrot.com>
2015-12-15 18:47     ` Ronan CHAUVIN
2015-11-27 17:30 Ronan CHAUVIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.