Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5, 2nd try] CTF Support
@ 2013-02-27  2:18 Yao Qi
  2013-02-27  2:18 ` [PATCH 1/5] Refactor 'tsave' Yao Qi
                   ` (4 more replies)
  0 siblings, 5 replies; 37+ messages in thread
From: Yao Qi @ 2013-02-27  2:18 UTC (permalink / raw)
  To: gdb-patches

Hi,
This patch series is to teach GDB to save trace buffer into Common
Trace Format (CTF) and also read CTF file.  Hui posted the
V1 some months ago and got some comments in the review.  In order
to get these patches accepted by FSF GDB, we redesign the patches
and here is the V2.

At present, GDB is using TFILE format to save trace buffers and
trace saving logic is coupled with this format to some extent.  In
order to save trace buffer in CTF, we did two things,

  1) Decouple trace saving code with any specific trace file format
(such as TFILE).  This is what patch 1/5 does.
  2) Use CTF in a way similar to TFILE, which will reduce the cost of
supporting CTF.

Usually TFILE trace file is composed by two parts, definition part
and trace buffer data part.  The latter is composed by multiple
trace frames, which is composed by different types of blocks.  In CTF,
we have similar concepts "packet" and "event".  A packet is composed
by several events, which can be of different types.  We can use
"packet" to represent trace frame and "event" to represent block.

The definition part is human readable, about trace status, tracepoint
definitions, etc.  They can be easily mapped to a certain type of CTF
event.

In this version, we haven't saved trace status, tracepoint definitions,
and trace variable definitions into CTF trace file.  This doesn't
prevent user using this feature, and we'll address them in the follow
up patch series.
-- 
1.7.7.6


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

end of thread, other threads:[~2013-05-07 13:28 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-27  2:18 [PATCH 0/5, 2nd try] CTF Support Yao Qi
2013-02-27  2:18 ` [PATCH 1/5] Refactor 'tsave' Yao Qi
2013-02-28 16:49   ` Pedro Alves
2013-03-01  8:58     ` Yao Qi
2013-03-01 10:05       ` Pedro Alves
2013-03-01 10:41         ` Pedro Alves
2013-03-01 11:26         ` Yao Qi
2013-03-01 12:13           ` Pedro Alves
2013-03-01 15:55             ` Yao Qi
2013-03-05 20:59               ` Pedro Alves
2013-03-03  8:45         ` Yao Qi
2013-02-27  2:19 ` [PATCH 5/5] ctf test: report.exp Yao Qi
2013-02-27 18:48   ` Pedro Alves
2013-02-28  1:36     ` Yao Qi
2013-02-28 18:30       ` Pedro Alves
2013-02-27  2:19 ` [PATCH 4/5] ctf doc and NEWS Yao Qi
2013-02-27 18:39   ` Eli Zaretskii
2013-02-27  2:19 ` [PATCH 2/5] Save trace into CTF format Yao Qi
2013-02-28 13:17   ` Yao Qi
2013-02-28 13:17     ` Andreas Schwab
2013-02-28 17:19       ` Pedro Alves
2013-03-01 19:22     ` Tom Tromey
2013-03-03 10:19       ` Yao Qi
2013-03-07 21:29         ` Tom Tromey
2013-03-16  2:30         ` Joel Brobecker
2013-03-16  4:22           ` Yao Qi
2013-02-27  2:19 ` [PATCH 3/5] Read CTF by the ctf target Yao Qi
2013-02-28 17:59   ` Pedro Alves
2013-03-01  2:38     ` Hui Zhu
2013-05-07 13:07       ` Mathieu Desnoyers
2013-05-07 13:24         ` Yao Qi
2013-05-07 13:28           ` Mathieu Desnoyers
2013-03-01  7:55     ` Yao Qi
2013-03-01  9:15       ` Pedro Alves
2013-03-01 15:51   ` Tom Tromey
2013-03-03 10:39     ` Yao Qi
2013-03-03 10:46       ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox