From d40ee8ec4ac9998f69383218762662ba01e89513 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Tue, 7 Aug 2012 11:49:47 -0400 Subject: [PATCH] API cleanup name get_timestamp and get_cycles Rename bt_ctf_get_cycles_timestamp to bt_ctf_get_cycles, and bt_ctf_get_real_timestamp to bt_ctf_get_timestamp. Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- formats/ctf/events.c | 4 ++-- include/babeltrace/ctf/events.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/formats/ctf/events.c b/formats/ctf/events.c index 06419a18..96934132 100644 --- a/formats/ctf/events.c +++ b/formats/ctf/events.c @@ -281,7 +281,7 @@ int bt_ctf_event_get_handle_id(const struct bt_ctf_event *ctf_event) return ret; } -uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *ctf_event) +uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *ctf_event) { struct ctf_event_definition *event = ctf_event->parent; if (event && event->stream->has_timestamp) @@ -290,7 +290,7 @@ uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *ctf_event) return -1ULL; } -uint64_t bt_ctf_get_cycles_timestamp(const struct bt_ctf_event *ctf_event) +uint64_t bt_ctf_get_cycles(const struct bt_ctf_event *ctf_event) { struct ctf_event_definition *event = ctf_event->parent; if (event && event->stream->has_timestamp) diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 419c4c8d..4232feb3 100644 --- a/include/babeltrace/ctf/events.h +++ b/include/babeltrace/ctf/events.h @@ -90,16 +90,16 @@ const struct definition *bt_ctf_get_top_level_scope(const struct bt_ctf_event *e const char *bt_ctf_event_name(const struct bt_ctf_event *event); /* - * bt_ctf_get_cycles_timestamp: returns the timestamp of the event as written + * bt_ctf_get_cycles: returns the timestamp of the event as written * in the packet (in cycles) or -1ULL on error. */ -uint64_t bt_ctf_get_cycles_timestamp(const struct bt_ctf_event *event); +uint64_t bt_ctf_get_cycles(const struct bt_ctf_event *event); /* - * bt_ctf_get_real_timestamp: returns the timestamp of the event offsetted + * bt_ctf_get_timestamp: returns the timestamp of the event offsetted * with the system clock source (in ns) or -1ULL on error */ -uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *event); +uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *event); /* * bt_ctf_get_field_list: set list pointer to an array of definition -- 2.34.1