Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: avik.sil@linaro.org (Avik Sil)
Subject: [ltt-dev] LTTng 2.0 on ARM
Date: Thu, 22 Sep 2011 11:34:11 +0530	[thread overview]
Message-ID: <4E7ACFDB.8090903@linaro.org> (raw)
In-Reply-To: <20110921141155.GA24790@Krystal>

On Wednesday 21 September 2011 07:41 PM, Mathieu Desnoyers wrote:
> * Mathieu Desnoyers (compudj at krystal.dyndns.org) wrote:
>> * Avik Sil (avik.sil at linaro.org) wrote:
>>> Hi Mathieu,
>>>
>>> Now as the ARM patch is in, I'm able to generate trace and read the
>>> trace with babeltrace on Pandaboard. But while enabling the events, I
>>> get following output:
>>>
>>> # lttng enable-event -a -k
>>> [ 4304.827819] BUG: spinlock bad magic on CPU#1, ltt-sessiond/1305
>>> [ 4304.841735]  lock: 81453c00, .magic: 00000000, .owner: <none>/-1,
>>> .owner_cpu: 0
>>> [ 4304.857421] [<800110ad>] (unwind_backtrace+0x1/0x90) from
>>> [<8022c847>] (do_raw_spin_lock+0x17/0xfc)
>>> [ 4304.875213] [<8022c847>] (do_raw_spin_lock+0x17/0xfc) from
>>> [<7f97c30f>] (channel_create+0xd6/0x158 [lib_ring_buffer])
>>> [ 4304.894866] [<7f97c30f>] (channel_create+0xd6/0x158
>>> [lib_ring_buffer]) from [<7f99856b>] (_channel_create+0x28/0x32
>>> [ltt_ring_buffer_client_discard])
>>> [ 4304.917755] [<7f99856b>] (_channel_create+0x28/0x32
>>> [ltt_ring_buffer_client_discard]) from [<7f98b507>]
>>> (ltt_channel_create+0x12a/0x190 [ltt_relay])
>>> [ 4304.940551] [<7f98b507>] (ltt_channel_create+0x12a/0x190 [ltt_relay])
>>> from [<7f98c34b>] (lttng_abi_create_channel+0xba/0x158 [ltt_relay])
>>> [ 4304.962341] [<7f98c34b>] (lttng_abi_create_channel+0xba/0x158
>>> [ltt_relay]) from [<7f98c43f>] (lttng_session_ioctl+0x56/0x64 [ltt_relay])
>>> [ 4304.984436] [<7f98c43f>] (lttng_session_ioctl+0x56/0x64 [ltt_relay])
>>> from [<800baa49>] (do_vfs_ioctl+0x1a5/0x1dc)
>>> [ 4305.004394] [<800baa49>] (do_vfs_ioctl+0x1a5/0x1dc) from [<800baab3>]
>>> (sys_ioctl+0x33/0x4c)
>>> [ 4305.022369] [<800baab3>] (sys_ioctl+0x33/0x4c) from [<8000c2c1>]
>>> (ret_fast_syscall+0x1/0x50)
>>> All kernel events are enabled in channel channel0
>>>
>>> Can you please look into this issue?
>>
>> Yes, it looks like I missed a spinlock initialization in there. Can you
>> try with the following commit applied ?
>>
>> commit 6fb8de4b6c1e8dcc69ff6f67310c5cf29718101a
>> Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
>> Date:   Wed Sep 21 10:08:34 2011 -0400
>>
>>     lib ring buffer frontend: add missing lock initialization
> 
> Silly me. Also make sure you have commit
> 02a766bbaa8b112e87d88aa4a70a507f5a6deb99, which marks the new init
> function as a module_init().
>
Thanks! With this patch the spinlock error disappears.

Regards,
Avik

> Thanks,
> 
> Mathieu




      reply	other threads:[~2011-09-22  6:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  5:41 Avik Sil
2011-09-10 19:49 ` Mathieu Desnoyers
     [not found] ` <BLU0-SMTP86E263003FB9999131E2A196000@phx.gbl>
2011-09-12 17:33   ` Avik Sil
2011-09-12 17:33     ` Avik Sil
2011-09-12 19:05     ` Mathieu Desnoyers
     [not found]     ` <BLU0-SMTP6FB53F86865C7F0175B0D96020@phx.gbl>
2011-09-13 11:16       ` Avik Sil
2011-09-13 15:50         ` Mathieu Desnoyers
     [not found]         ` <BLU0-SMTP720ADD6D0D065018E5C97196050@phx.gbl>
2011-09-13 17:44           ` Rabin Vincent
2011-09-14 10:09             ` Dave Martin
2011-09-14 16:27               ` Jon Medhurst (Tixy)
2011-09-16 16:25                 ` Dave Martin
2011-09-17 14:34                   ` Jon Medhurst (Tixy)
2011-09-21 11:49   ` Avik Sil
2011-09-21 14:06     ` Mathieu Desnoyers
2011-09-21 14:11       ` Mathieu Desnoyers
2011-09-22  6:04         ` Avik Sil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E7ACFDB.8090903@linaro.org \
    --to=avik.sil@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox