#include <string.h>
#include "common.h"
-uint64_t get_cpu_id(const struct ctf_event_definition *event)
+uint64_t get_cpu_id(const struct bt_ctf_event *event)
{
const struct definition *scope;
uint64_t cpu_id;
return cpu_id;
}
-uint64_t get_context_tid(const struct ctf_event_definition *event)
+uint64_t get_context_tid(const struct bt_ctf_event *event)
{
const struct definition *scope;
uint64_t tid;
return tid;
}
-uint64_t get_context_pid(const struct ctf_event_definition *event)
+uint64_t get_context_pid(const struct bt_ctf_event *event)
{
const struct definition *scope;
uint64_t pid;
return pid;
}
-uint64_t get_context_ppid(const struct ctf_event_definition *event)
+uint64_t get_context_ppid(const struct bt_ctf_event *event)
{
const struct definition *scope;
uint64_t ppid;
return ppid;
}
-char *get_context_comm(const struct ctf_event_definition *event)
+char *get_context_comm(const struct bt_ctf_event *event)
{
const struct definition *scope;
char *comm;
void reset_global_counters(void);
/* common field access functions */
-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);
+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);
#endif /* _COMMON_H */
tmpcpu->task_start = timestamp;
}
-enum bt_cb_ret handle_sched_switch(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *call_data,
void *private_data)
{
const struct definition *scope;
return BT_CB_ERROR_STOP;
}
-enum bt_cb_ret handle_sched_process_free(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data,
void *private_data)
{
const struct definition *scope;
#include <inttypes.h>
#include <glib.h>
-enum bt_cb_ret handle_sched_switch(struct ctf_event_definition *hook_data,
+enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *hook_data,
void *call_data);
-enum bt_cb_ret handle_sched_process_free(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data,
void *private_data);
#endif /* _LTTNGTOP_H */
return new_history;
}
-enum bt_cb_ret handle_exit_syscall(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
void *private_data)
{
const struct definition *scope;
}
-enum bt_cb_ret handle_sys_write(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
void *private_data)
{
const struct definition *scope;
return BT_CB_ERROR_STOP;
}
-enum bt_cb_ret handle_sys_read(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
void *private_data)
{
struct processtop *tmp;
}
-enum bt_cb_ret handle_sys_open(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
void *private_data)
{
}
-enum bt_cb_ret handle_sys_close(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
void *private_data)
{
const struct definition *scope;
return BT_CB_ERROR_STOP;
}
-enum bt_cb_ret handle_statedump_file_descriptor(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_statedump_file_descriptor(struct bt_ctf_event *call_data,
void *private_data)
{
const struct definition *scope;
void show_table(GPtrArray *tab);
void insert_file(struct processtop *proc, int fd);
-enum bt_cb_ret handle_exit_syscall(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
void *private_data);
-enum bt_cb_ret handle_sys_write(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
void *private_data);
-enum bt_cb_ret handle_sys_read(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
void *private_data);
-enum bt_cb_ret handle_sys_open(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
void *private_data);
-enum bt_cb_ret handle_sys_close(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
void *private_data);
-enum bt_cb_ret handle_statedump_file_descriptor(struct ctf_event_definition *call_data,
+enum bt_cb_ret handle_statedump_file_descriptor(struct bt_ctf_event *call_data,
void *private_data);
#endif /* _IOSTREAMTOP_H */
* hook on each event to check the timestamp and refresh the display if
* necessary
*/
-enum bt_cb_ret check_timestamp(struct ctf_event_definition *call_data, void *private_data)
+enum bt_cb_ret check_timestamp(struct bt_ctf_event *call_data, void *private_data)
{
unsigned long timestamp;
}
}
-void extract_perf_counter_scope(const struct ctf_event_definition *event,
+void extract_perf_counter_scope(const struct bt_ctf_event *event,
const struct definition *scope,
struct processtop *proc,
struct cputime *cpu)
return;
}
-void update_perf_counter(struct processtop *proc, const struct ctf_event_definition *event)
+void update_perf_counter(struct processtop *proc, const struct bt_ctf_event *event)
{
struct cputime *cpu;
const struct definition *scope;
extract_perf_counter_scope(event, scope, proc, cpu);
}
-enum bt_cb_ret fix_process_table(struct ctf_event_definition *call_data,
+enum bt_cb_ret fix_process_table(struct bt_ctf_event *call_data,
void *private_data)
{
int pid, tid, ppid;
{
struct bt_ctf_iter *iter;
struct bt_iter_pos begin_pos;
- const struct ctf_event_definition *event;
+ const struct bt_ctf_event *event;
int ret = 0;
begin_pos.type = BT_SEEK_BEGIN;