API sync babeltrace
authorJulien Desfossez <julien.desfossez@efficios.com>
Mon, 2 Apr 2012 14:16:16 +0000 (10:16 -0400)
committerJulien Desfossez <julien.desfossez@efficios.com>
Mon, 2 Apr 2012 14:16:16 +0000 (10:16 -0400)
As of commit 8a4722b0ccf5cf30ee76a85bdf6bea2fa0515153 in Babeltrace,
struct bt_ctf_event is a struct ctf_event_definition.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
src/common.c
src/common.h
src/cputop.c
src/cputop.h
src/iostreamtop.c
src/iostreamtop.h
src/lttngtop.c

index b18eafd554569fa14f26dfa9135246406884def4..d4f89f3e8970e69e5ef60cf81beebb540727f6fe 100644 (file)
@@ -21,7 +21,7 @@
 #include <string.h>
 #include "common.h"
 
 #include <string.h>
 #include "common.h"
 
-uint64_t get_cpu_id(const struct bt_ctf_event *event)
+uint64_t get_cpu_id(const struct ctf_event_definition *event)
 {
        const struct definition *scope;
        uint64_t cpu_id;
 {
        const struct definition *scope;
        uint64_t cpu_id;
@@ -36,7 +36,7 @@ uint64_t get_cpu_id(const struct bt_ctf_event *event)
        return cpu_id;
 }
 
        return cpu_id;
 }
 
-uint64_t get_context_tid(const struct bt_ctf_event *event)
+uint64_t get_context_tid(const struct ctf_event_definition *event)
 {
        const struct definition *scope;
        uint64_t tid;
 {
        const struct definition *scope;
        uint64_t tid;
@@ -52,7 +52,7 @@ uint64_t get_context_tid(const struct bt_ctf_event *event)
        return tid;
 }
 
        return tid;
 }
 
-uint64_t get_context_pid(const struct bt_ctf_event *event)
+uint64_t get_context_pid(const struct ctf_event_definition *event)
 {
        const struct definition *scope;
        uint64_t pid;
 {
        const struct definition *scope;
        uint64_t pid;
@@ -68,7 +68,7 @@ uint64_t get_context_pid(const struct bt_ctf_event *event)
        return pid;
 }
 
        return pid;
 }
 
-uint64_t get_context_ppid(const struct bt_ctf_event *event)
+uint64_t get_context_ppid(const struct ctf_event_definition *event)
 {
        const struct definition *scope;
        uint64_t ppid;
 {
        const struct definition *scope;
        uint64_t ppid;
@@ -84,7 +84,7 @@ uint64_t get_context_ppid(const struct bt_ctf_event *event)
        return ppid;
 }
 
        return ppid;
 }
 
-char *get_context_comm(const struct bt_ctf_event *event)
+char *get_context_comm(const struct ctf_event_definition *event)
 {
        const struct definition *scope;
        char *comm;
 {
        const struct definition *scope;
        char *comm;
index 21df7b11603918380d3d04ef41078332dd583075..7f8dd07427d196c66e67803efd731109d26c52f3 100644 (file)
@@ -57,10 +57,10 @@ struct perfcounter *get_perf_counter(const char *name, struct processtop *proc,
 void reset_global_counters(void);
 
 /* common field access functions */
 void reset_global_counters(void);
 
 /* common field access functions */
-uint64_t get_cpu_id(const struct bt_ctf_event *event);
-uint64_t get_context_tid(const struct bt_ctf_event *event);
-uint64_t get_context_pid(const struct bt_ctf_event *event);
-uint64_t get_context_ppid(const struct bt_ctf_event *event);
-char *get_context_comm(const struct bt_ctf_event *event);
+uint64_t get_cpu_id(const struct ctf_event_definition *event);
+uint64_t get_context_tid(const struct ctf_event_definition *event);
+uint64_t get_context_pid(const struct ctf_event_definition *event);
+uint64_t get_context_ppid(const struct ctf_event_definition *event);
+char *get_context_comm(const struct ctf_event_definition *event);
 
 #endif /* _COMMON_H */
 
 #endif /* _COMMON_H */
index 1b9a129c2e34c399048a3005e5264362912f6dee..8d4f03e64e8417afde481cb23365af69de4e3658 100644 (file)
@@ -45,7 +45,7 @@ void update_cputop_data(unsigned long timestamp, int64_t cpu, int prev_pid,
        tmpcpu->task_start = timestamp;
 }
 
        tmpcpu->task_start = timestamp;
 }
 
-enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sched_switch(struct ctf_event_definition *call_data,
                void *private_data)
 {
        const struct definition *scope;
                void *private_data)
 {
        const struct definition *scope;
@@ -99,7 +99,7 @@ error:
        return BT_CB_ERROR_STOP;
 }
 
        return BT_CB_ERROR_STOP;
 }
 
-enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sched_process_free(struct ctf_event_definition *call_data,
                void *private_data)
 {
        const struct definition *scope;
                void *private_data)
 {
        const struct definition *scope;
index f4ef105ced35a883cc5b142532db1d19f9a8f928..1d4c91da9c53970536dd37b02f5cc1b23204bcd3 100644 (file)
 #include <inttypes.h>
 #include <glib.h>
 
 #include <inttypes.h>
 #include <glib.h>
 
-enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *hook_data,
+enum bt_cb_ret handle_sched_switch(struct ctf_event_definition *hook_data,
                void *call_data);
 
                void *call_data);
 
-enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sched_process_free(struct ctf_event_definition *call_data,
                void *private_data);
 
 #endif /* _LTTNGTOP_H */
                void *private_data);
 
 #endif /* _LTTNGTOP_H */
index 7c1d611af8b74b1a7e6aa1ac566b2fbc5c8b52ad..f455e78a20ec0e345c66a713e1ddde3be92f8b43 100644 (file)
@@ -253,7 +253,7 @@ struct file_history *create_file(struct file_history *history, char *file_name)
        return new_history;
 }
 
        return new_history;
 }
 
-enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_exit_syscall(struct ctf_event_definition *call_data,
                void *private_data)
 {
        const struct definition *scope;
                void *private_data)
 {
        const struct definition *scope;
@@ -295,7 +295,7 @@ error:
 }
 
 
 }
 
 
-enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_write(struct ctf_event_definition *call_data,
                void *private_data)
 {
        const struct definition *scope;
                void *private_data)
 {
        const struct definition *scope;
@@ -334,7 +334,7 @@ error:
        return BT_CB_ERROR_STOP;
 }
 
        return BT_CB_ERROR_STOP;
 }
 
-enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_read(struct ctf_event_definition *call_data,
                void *private_data)
 {
        struct processtop *tmp;
                void *private_data)
 {
        struct processtop *tmp;
@@ -374,7 +374,7 @@ error:
 }
 
 
 }
 
 
-enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_open(struct ctf_event_definition *call_data,
                void *private_data)
 {
 
                void *private_data)
 {
 
@@ -415,7 +415,7 @@ error:
 }
 
 
 }
 
 
-enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_close(struct ctf_event_definition *call_data,
                void *private_data)
 {
        const struct definition *scope;
                void *private_data)
 {
        const struct definition *scope;
@@ -451,7 +451,7 @@ error:
        return BT_CB_ERROR_STOP;
 }
 
        return BT_CB_ERROR_STOP;
 }
 
-enum bt_cb_ret handle_statedump_file_descriptor(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_statedump_file_descriptor(struct ctf_event_definition *call_data,
                void *private_data)
 {
        const struct definition *scope;
                void *private_data)
 {
        const struct definition *scope;
index fe2e5db39dc13e3221794a06739eb02233273d43..c20f5863bc89fb8a6c4f850505a85141bd6141cc 100644 (file)
@@ -28,17 +28,17 @@ struct files *get_file(struct processtop *proc, int fd);
 void show_table(GPtrArray *tab);
 void insert_file(struct processtop *proc, int fd);
 
 void show_table(GPtrArray *tab);
 void insert_file(struct processtop *proc, int fd);
 
-enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_exit_syscall(struct ctf_event_definition *call_data,
                void *private_data);
                void *private_data);
-enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_write(struct ctf_event_definition *call_data,
                void *private_data);
                void *private_data);
-enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_read(struct ctf_event_definition *call_data,
                void *private_data);
                void *private_data);
-enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_open(struct ctf_event_definition *call_data,
                void *private_data);
                void *private_data);
-enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_sys_close(struct ctf_event_definition *call_data,
                void *private_data);
                void *private_data);
-enum bt_cb_ret handle_statedump_file_descriptor(struct bt_ctf_event *call_data,
+enum bt_cb_ret handle_statedump_file_descriptor(struct ctf_event_definition *call_data,
                void *private_data);
 
 #endif /* _IOSTREAMTOP_H */
                void *private_data);
 
 #endif /* _IOSTREAMTOP_H */
index dc5711ea91402ede478a3662184d6ffcdc57f498..d51302c71b78ac99d0c99c4095adce2a3b3056bd 100644 (file)
@@ -113,7 +113,7 @@ void *ncurses_display(void *p)
  * hook on each event to check the timestamp and refresh the display if
  * necessary
  */
  * hook on each event to check the timestamp and refresh the display if
  * necessary
  */
-enum bt_cb_ret check_timestamp(struct bt_ctf_event *call_data, void *private_data)
+enum bt_cb_ret check_timestamp(struct ctf_event_definition *call_data, void *private_data)
 {
        unsigned long timestamp;
 
 {
        unsigned long timestamp;
 
@@ -195,7 +195,7 @@ void update_perf_value(struct processtop *proc, struct cputime *cpu,
        }
 }
 
        }
 }
 
-void extract_perf_counter_scope(const struct bt_ctf_event *event,
+void extract_perf_counter_scope(const struct ctf_event_definition *event,
                const struct definition *scope,
                struct processtop *proc,
                struct cputime *cpu)
                const struct definition *scope,
                struct processtop *proc,
                struct cputime *cpu)
@@ -225,7 +225,7 @@ end:
        return;
 }
 
        return;
 }
 
-void update_perf_counter(struct processtop *proc, const struct bt_ctf_event *event)
+void update_perf_counter(struct processtop *proc, const struct ctf_event_definition *event)
 {
        struct cputime *cpu;
        const struct definition *scope;
 {
        struct cputime *cpu;
        const struct definition *scope;
@@ -242,7 +242,7 @@ void update_perf_counter(struct processtop *proc, const struct bt_ctf_event *eve
        extract_perf_counter_scope(event, scope, proc, cpu);
 }
 
        extract_perf_counter_scope(event, scope, proc, cpu);
 }
 
-enum bt_cb_ret fix_process_table(struct bt_ctf_event *call_data,
+enum bt_cb_ret fix_process_table(struct ctf_event_definition *call_data,
                void *private_data)
 {
        int pid, tid, ppid;
                void *private_data)
 {
        int pid, tid, ppid;
@@ -390,7 +390,7 @@ void iter_trace(struct bt_context *bt_ctx)
 {
        struct bt_ctf_iter *iter;
        struct bt_iter_pos begin_pos;
 {
        struct bt_ctf_iter *iter;
        struct bt_iter_pos begin_pos;
-       const struct bt_ctf_event *event;
+       const struct ctf_event_definition *event;
        int ret = 0;
 
        begin_pos.type = BT_SEEK_BEGIN;
        int ret = 0;
 
        begin_pos.type = BT_SEEK_BEGIN;
This page took 0.030378 seconds and 4 git commands to generate.