projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: rename "clock value" -> "clock snapshot"
[babeltrace.git]
/
plugins
/
utils
/
muxer
/
muxer.c
diff --git
a/plugins/utils/muxer/muxer.c
b/plugins/utils/muxer/muxer.c
index bb786ed9f54a42624c27b6b9d669f14f1baa6a2e..077a8f8d3d3323203c4017711498ebd0d8376a26 100644
(file)
--- a/
plugins/utils/muxer/muxer.c
+++ b/
plugins/utils/muxer/muxer.c
@@
-603,12
+603,12
@@
int get_msg_ts_ns(struct muxer_comp *muxer_comp,
int64_t *ts_ns)
{
const bt_clock_class *clock_class = NULL;
int64_t *ts_ns)
{
const bt_clock_class *clock_class = NULL;
- const bt_clock_
value *clock_value
= NULL;
+ const bt_clock_
snapshot *clock_snapshot
= NULL;
const bt_event *event = NULL;
int ret = 0;
const unsigned char *cc_uuid;
const char *cc_name;
const bt_event *event = NULL;
int ret = 0;
const unsigned char *cc_uuid;
const char *cc_name;
- enum bt_clock_
value_status cv_status = BT_CLOCK_VALUE
_STATUS_KNOWN;
+ enum bt_clock_
snapshot_status cv_status = BT_CLOCK_SNAPSHOT
_STATUS_KNOWN;
BT_ASSERT(msg);
BT_ASSERT(ts_ns);
BT_ASSERT(msg);
BT_ASSERT(ts_ns);
@@
-622,13
+622,13
@@
int get_msg_ts_ns(struct muxer_comp *muxer_comp,
case BT_MESSAGE_TYPE_EVENT:
event = bt_message_event_borrow_event_const(msg);
BT_ASSERT(event);
case BT_MESSAGE_TYPE_EVENT:
event = bt_message_event_borrow_event_const(msg);
BT_ASSERT(event);
- cv_status = bt_event_borrow_default_clock_
value
_const(event,
- &clock_
value
);
+ cv_status = bt_event_borrow_default_clock_
snapshot
_const(event,
+ &clock_
snapshot
);
break;
case BT_MESSAGE_TYPE_INACTIVITY:
break;
case BT_MESSAGE_TYPE_INACTIVITY:
- clock_
value
=
- bt_message_inactivity_borrow_default_clock_
value
_const(
+ clock_
snapshot
=
+ bt_message_inactivity_borrow_default_clock_
snapshot
_const(
msg);
break;
default:
msg);
break;
default:
@@
-638,25
+638,25
@@
int get_msg_ts_ns(struct muxer_comp *muxer_comp,
goto end;
}
goto end;
}
- if (cv_status != BT_CLOCK_
VALUE
_STATUS_KNOWN) {
- BT_LOGE_STR("Unsupported unknown clock
value
.");
+ if (cv_status != BT_CLOCK_
SNAPSHOT
_STATUS_KNOWN) {
+ BT_LOGE_STR("Unsupported unknown clock
snapshot
.");
ret = -1;
goto end;
}
/*
ret = -1;
goto end;
}
/*
- * If the clock
value
is missing, then we consider that this
+ * If the clock
snapshot
is missing, then we consider that this
* message has no time. In this case it's always the
* youngest.
*/
* message has no time. In this case it's always the
* youngest.
*/
- if (!clock_
value
) {
- BT_LOGV_STR("Message's default clock
value
is missing: "
+ if (!clock_
snapshot
) {
+ BT_LOGV_STR("Message's default clock
snapshot
is missing: "
"using the last returned timestamp.");
*ts_ns = last_returned_ts_ns;
goto end;
}
"using the last returned timestamp.");
*ts_ns = last_returned_ts_ns;
goto end;
}
- clock_class = bt_clock_
value_borrow_clock_class_const(clock_value
);
+ clock_class = bt_clock_
snapshot_borrow_clock_class_const(clock_snapshot
);
BT_ASSERT(clock_class);
cc_uuid = bt_clock_class_get_uuid(clock_class);
cc_name = bt_clock_class_get_name(clock_class);
BT_ASSERT(clock_class);
cc_uuid = bt_clock_class_get_uuid(clock_class);
cc_name = bt_clock_class_get_name(clock_class);
@@
-809,10
+809,10
@@
int get_msg_ts_ns(struct muxer_comp *muxer_comp,
}
}
}
}
- ret = bt_clock_
value_get_ns_from_origin(clock_value
, ts_ns);
+ ret = bt_clock_
snapshot_get_ns_from_origin(clock_snapshot
, ts_ns);
if (ret) {
if (ret) {
- BT_LOGE("Cannot get nanoseconds from Epoch of clock
value
: "
- "clock-
value-addr=%p", clock_value
);
+ BT_LOGE("Cannot get nanoseconds from Epoch of clock
snapshot
: "
+ "clock-
snapshot-addr=%p", clock_snapshot
);
goto error;
}
goto error;
}
This page took
0.039094 seconds
and
4
git commands to generate.