}
-void init(LttvModule *self, int argc, char **argv)
+G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
{
LttvAttributeValue value;
}
-void destroy()
+G_MODULE_EXPORT void destroy()
{
guint i, nb;
g_mem_profile();
#endif
+ //g_type_init();
+ g_type_init_with_debug_flags (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS);
+
attributes = LTTV_IATTRIBUTE(g_object_new(LTTV_ATTRIBUTE_TYPE, NULL));
before_options = lttv_hooks_new();
lttv_hooks_add_list(tc->before, before_trace);
lttv_hooks_add_list(tc->after, after_trace);
nb_control = ltt_trace_control_tracefile_number(tc->t);
- nb_per_cpu = ltt_trace_control_tracefile_number(tc->t);
+ nb_per_cpu = ltt_trace_per_cpu_tracefile_number(tc->t);
nb_tracefile = nb_control + nb_per_cpu;
for(j = 0 ; j < nb_tracefile ; j++) {
tfc = tc->control_tracefiles[j];
}
else {
- tfc = tc->per_cpu_tracefiles[j];
+ tfc = tc->per_cpu_tracefiles[j-nb_control];
}
lttv_hooks_add_list(tfc->check, check_tracefile);
lttv_hooks_add_list(tfc->before, before_tracefile);
lttv_hooks_remove_list(tc->before, before_trace);
lttv_hooks_remove_list(tc->after, after_trace);
nb_control = ltt_trace_control_tracefile_number(tc->t);
- nb_per_cpu = ltt_trace_control_tracefile_number(tc->t);
+ nb_per_cpu = ltt_trace_per_cpu_tracefile_number(tc->t);
nb_tracefile = nb_control + nb_per_cpu;
for(j = 0 ; j < nb_tracefile ; j++) {
tfc = tc->control_tracefiles[j];
}
else {
- tfc = tc->per_cpu_tracefiles[j];
+ tfc = tc->per_cpu_tracefiles[j-nb_control];
}
lttv_hooks_remove_list(tfc->check, check_tracefile);
lttv_hooks_remove_list(tfc->before, before_tracefile);
"in", "out", "out_state", schedchange);
g_array_append_val(hooks, hook_id);
+/* for now, in core facility there is no process_fork and process_exit event
hook_id = find_hook(ts->parent.t, "core", "process_fork",
"child_pid", NULL, NULL, process_fork);
g_array_append_val(hooks, hook_id);
hook_id = find_hook(ts->parent.t, "core", "process_exit",
NULL, NULL, NULL, process_exit);
g_array_append_val(hooks, hook_id);
-
+*/
/* Add these hooks to each before_event_by_id hooks list */
case LTT_ENUM:
g_string_append_printf(s, " %s", ltt_enum_string_get(type,
- event_get_unsigned(e,f)));
+ ltt_event_get_unsigned(e,f)));
break;
case LTT_ARRAY:
}
-void init(int argc, char **argv)
+//void init(int argc, char **argv)
+G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
{
LttvAttributeValue value;
}
-void destroy()
+G_MODULE_EXPORT void destroy()
{
lttv_option_remove("output");
};
-LttvTraceset *lttv_trace_set_new()
+LttvTraceset *lttv_traceset_new()
{
LttvTraceset *s;
s->traces = g_ptr_array_new();
s->attributes = g_ptr_array_new();
s->a = g_object_new(LTTV_ATTRIBUTE_TYPE, NULL);
+ return s;
}