+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Michel Dagenais
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
#include <stdio.h>
#include <lttv/stats.h>
+#include <lttv/lttv.h>
#include <ltt/facility.h>
#include <ltt/trace.h>
#include <ltt/event.h>
/* get the information for the process scheduled in */
- process = lttv_state_find_process(&(tfcs->parent), pid_in);
+ process = lttv_state_find_process_or_create(&(tfcs->parent), pid_in);
find_event_tree(tfcs, process->pid_time, tfcs->parent.cpu_name,
process->state->t, process->state->n, &(tfcs->current_events_tree),
hook.id), hook.h, &g_array_index(after_hooks, LttvTraceHook, k));
}
}
- g_critical("lttv_stats_remove_event_hooks()");
+ g_debug("lttv_stats_remove_event_hooks()");
g_array_free(before_hooks, TRUE);
g_array_free(after_hooks, TRUE);
}