#include <babeltrace/trace-ir/clock-class.h>
#include <babeltrace/trace-ir/clock-value-internal.h>
#include <babeltrace/graph/notification-internal.h>
#include <babeltrace/trace-ir/clock-class.h>
#include <babeltrace/trace-ir/clock-value-internal.h>
#include <babeltrace/graph/notification-internal.h>
struct bt_notification_inactivity *notification;
struct bt_notification *ret_notif = NULL;
BT_ASSERT_PRE_NON_NULL(notif_iter, "Notification iterator");
BT_ASSERT_PRE_NON_NULL(default_clock_class, "Default clock class");
struct bt_notification_inactivity *notification;
struct bt_notification *ret_notif = NULL;
BT_ASSERT_PRE_NON_NULL(notif_iter, "Notification iterator");
BT_ASSERT_PRE_NON_NULL(default_clock_class, "Default clock class");
- BT_LOGD_STR("Creating inactivity notification object.");
+ BT_LIB_LOGD("Creating inactivity notification object: "
+ "%![iter-]+i, %![default-cc-]+K", notif_iter,
+ default_clock_class);
notification = g_new0(struct bt_notification_inactivity, 1);
if (!notification) {
BT_LOGE_STR("Failed to allocate one inactivity notification.");
notification = g_new0(struct bt_notification_inactivity, 1);
if (!notification) {
BT_LOGE_STR("Failed to allocate one inactivity notification.");
struct bt_notification *notif, uint64_t value_cycles)
{
struct bt_notification_inactivity *inactivity = (void *) notif;
struct bt_notification *notif, uint64_t value_cycles)
{
struct bt_notification_inactivity *inactivity = (void *) notif;
bt_clock_value_set_value_inline(inactivity->default_cv, value_cycles);
BT_LIB_LOGV("Set inactivity notification's default clock value: "
"%![notif-]+n, value=%" PRIu64, notif, value_cycles);
bt_clock_value_set_value_inline(inactivity->default_cv, value_cycles);
BT_LIB_LOGV("Set inactivity notification's default clock value: "
"%![notif-]+n, value=%" PRIu64, notif, value_cycles);
-struct bt_clock_value *bt_notification_inactivity_borrow_default_clock_value(
- struct bt_notification *notif)
+const struct bt_clock_value *
+bt_notification_inactivity_borrow_default_clock_value_const(
+ const struct bt_notification *notif)