bt_ctf_clock_class_create(): add a frequency parameter
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 19 Jun 2017 23:30:27 +0000 (19:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 20:07:39 +0000 (16:07 -0400)
commitf3534905684ef28f99ab7f60d85dbe84a5645297
treeaba9e4890590767607c7cf5dd8e3b6b31a6648d1
parent0290b3c5d4f0bb3a893bd5d2fd9821fba8e904d3
bt_ctf_clock_class_create(): add a frequency parameter

The frequency of a clock class is a mandatory property: CTF 1.8
indicates that it's 1 GHz by default, but it is expected that there's no
default frequency in CTF 2. To allow this immediately, add a mandatory
frequency parameter to bt_ctf_clock_class_create() so that the user's
frequency is set at creation time.

To maintain backward compatibility with pre-2.0.0 CTF writer,
bt_ctf_clock_create() sets its clock class's frequency to 1 GHz, and so
do other parts of the code base.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ctf-ir/clock-class.h
lib/ctf-ir/clock-class.c
lib/ctf-writer/clock.c
plugins/ctf/common/metadata/visitor-generate-ir.c
plugins/libctfcopytrace/ctfcopytrace.c
tests/lib/test_cc_prio_map.c
tests/lib/test_ctf_writer.c
tests/plugins/test-utils-muxer.c
This page took 0.025599 seconds and 4 git commands to generate.