All of lore.kernel.org
 help / color / mirror / Atom feed
* [diamon-discuss] [BUG] perf data convert to ctf fail.
@ 2015-01-16  5:23 Wang Nan
  2015-01-16  7:55 ` Alexandre Montplaisir
  0 siblings, 1 reply; 8+ messages in thread
From: Wang Nan @ 2015-01-16  5:23 UTC (permalink / raw)
  To: Jiri Olsa, Jiri Olsa; +Cc: diamon-discuss@lists.linuxfoundation.org, Li Zefan

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!


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

end of thread, other threads:[~2015-01-16 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16  5:23 [diamon-discuss] [BUG] perf data convert to ctf fail Wang Nan
2015-01-16  7:55 ` Alexandre Montplaisir
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

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.