All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
To: Wang Nan <wangnan0@huawei.com>, Jiri Olsa <jolsa@redhat.com>,
	Jiri Olsa <jolsa@kernel.org>
Cc: "diamon-discuss@lists.linuxfoundation.org"
	<diamon-discuss@lists.linuxfoundation.org>,
	Li Zefan <lizefan@huawei.com>
Subject: Re: [diamon-discuss] [BUG] perf data convert to ctf fail.
Date: Fri, 16 Jan 2015 02:55:01 -0500	[thread overview]
Message-ID: <54B8C3D5.9010809@voxpopuli.im> (raw)
In-Reply-To: <54B8A03D.3050508@huawei.com>

Hi Wang,

I can reproduce your issue, using Babeltrace commit 36336d933 (from Jan 
6th). I had it working at some point before, so there must have been 
some changes to the Babeltrace API since then.

If I update to Babeltrace master (9f476966), I then hit 
https://bugs.lttng.org/issues/874 . Fixing it manually I can get it 
building, but then the "perf data convert" command now fails with a new 
error:

perf data convert --to-ctf=./ctf
perf: event.c:292: bt_ctf_event_create: Assertion 
`event_class->stream_class->event_header_type' failed.
Aborted

I've CC'ed Mathieu and Jérémie, perhaps they can give us some pointers 
as to what should be updated in the perf patch set?

Cheers,
Alex


On 2015-01-16 12:23 AM, Wang Nan wrote:
> Hi Jiri Olsa,
>
> We are working on your perf convert to ctf patches and trying to
> convert perf.data into CTF trace. By introducing 8 patches from your
> repository (the last 8 patches of branch perf/core_ctf_convert) we can
> use 'perf data convert --to-ctf' command. However, it doesn't work properly:
>
>   $ perf record ls
>   $ perf data convert --to-ctf ./out.ctf
> close: Bad file descriptor
> Failed to create CTF stream
> [ perf data convert: Converted 'perf.data' into CTF data './out.ctf' ]
> [ perf data convert: Converted and wrote 0.000 MB (1 samples) ]
>
> After some debug we found that the problem raises from libbaleltrace:
> in bt_ctf_writer_create_stream() --> bt_ctf_trace_create_stream(), it tries
> to create a stream from stream_class, but doesn't provide a stream_id. When
> bt_ctf_trace_create_stream() tries to allocate an id for it, the stream_class
> has been freezed.
>
> Could you please have a look at this problem?
>
> Thank you!
>


  reply	other threads:[~2015-01-16  7:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16  5:23 [diamon-discuss] [BUG] perf data convert to ctf fail Wang Nan
2015-01-16  7:55 ` Alexandre Montplaisir [this message]
2015-01-16  8:14   ` Jiri Olsa
2015-01-16 10:38     ` Jiri Olsa
2015-01-16 10:40       ` Jiri Olsa
2015-01-16 16:18       ` Jérémie Galarneau
2015-01-16 16:18       ` Jérémie Galarneau
2015-01-16 16:33       ` Jérémie Galarneau

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=54B8C3D5.9010809@voxpopuli.im \
    --to=alexmonthy@voxpopuli.im \
    --cc=diamon-discuss@lists.linuxfoundation.org \
    --cc=jolsa@kernel.org \
    --cc=jolsa@redhat.com \
    --cc=lizefan@huawei.com \
    --cc=wangnan0@huawei.com \
    /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 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.