From: Julien Desfossez Date: Fri, 3 Aug 2012 20:29:02 +0000 (-0400) Subject: fix compat with babeltrace API change at commit 03798a93f959f6c694fe98f5647481947607c604 X-Git-Tag: v0.3~126 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=094632060f50c0a268794c70e0650167c5c51fb8;p=lttngtop.git fix compat with babeltrace API change at commit 03798a93f959f6c694fe98f5647481947607c604 Signed-off-by: Julien Desfossez --- diff --git a/src/common.c b/src/common.c index c939847..5cc9bca 100644 --- a/src/common.c +++ b/src/common.c @@ -470,7 +470,7 @@ enum bt_cb_ret handle_statedump_process_state(struct bt_ctf_event *call_data, int64_t pid, tid; char *procname; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; diff --git a/src/cputop.c b/src/cputop.c index eb7afb3..6adbacd 100644 --- a/src/cputop.c +++ b/src/cputop.c @@ -54,7 +54,7 @@ enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *call_data, char *prev_comm, *next_comm; int prev_tid, next_tid; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -107,7 +107,7 @@ enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data, char *comm; int tid; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; diff --git a/src/iostreamtop.c b/src/iostreamtop.c index bda9c7c..30797c5 100644 --- a/src/iostreamtop.c +++ b/src/iostreamtop.c @@ -266,7 +266,7 @@ enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data, uint64_t ret, tid; uint64_t cpu_id; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -310,7 +310,7 @@ enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data, char *procname; int fd; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -350,7 +350,7 @@ enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data, char *procname; int fd; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -392,7 +392,7 @@ enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data, char *procname; char *file; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -432,7 +432,7 @@ enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data, char *procname; int fd; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -470,7 +470,7 @@ enum bt_cb_ret handle_statedump_file_descriptor(struct bt_ctf_event *call_data, char *file_name; int fd; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; diff --git a/src/lttngtop.c b/src/lttngtop.c index 2ee303a..521e085 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -121,7 +121,7 @@ enum bt_cb_ret check_timestamp(struct bt_ctf_event *call_data, void *private_dat { unsigned long timestamp; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error; @@ -252,7 +252,7 @@ enum bt_cb_ret fix_process_table(struct bt_ctf_event *call_data, struct processtop *parent, *child; unsigned long timestamp; - timestamp = bt_ctf_get_timestamp(call_data); + timestamp = bt_ctf_get_real_timestamp(call_data); if (timestamp == -1ULL) goto error;