projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update FSF address
[lttv.git]
/
lttv
/
modules
/
gui
/
resourceview
/
eventhooks.c
diff --git
a/lttv/modules/gui/resourceview/eventhooks.c
b/lttv/modules/gui/resourceview/eventhooks.c
index 8075f27a1320405e18a0e9b84d83ffc7787cafe9..dc12f2117c2e7bad67e4f1af8b5094c650fbb5db 100644
(file)
--- a/
lttv/modules/gui/resourceview/eventhooks.c
+++ b/
lttv/modules/gui/resourceview/eventhooks.c
@@
-12,8
+12,8
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* 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., 5
9 Temple Place - Suite 330
, Boston,
- * MA 0211
1-1307
, USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston,
+ * MA 0211
0-1301
, USA.
*/
*/
@@
-60,10
+60,6
@@
//#include <pango/pango.h>
//#include <pango/pango.h>
-#include <ltt/event.h>
-#include <ltt/time.h>
-#include <ltt/trace.h>
-
#include <lttv/lttv.h>
#include <lttv/hook.h>
#include <lttv/state.h>
#include <lttv/lttv.h>
#include <lttv/hook.h>
#include <lttv/state.h>
@@
-121,7
+117,6
@@
static void request_background_data(ControlFlowData *resourceview_data)
gint num_traces = lttv_traceset_number(ts);
gint i;
LttvTrace *trace;
gint num_traces = lttv_traceset_number(ts);
gint i;
LttvTrace *trace;
- LttvTraceState *tstate;
LttvHooks *background_ready_hook =
lttv_hooks_new();
LttvHooks *background_ready_hook =
lttv_hooks_new();
@@
-385,6
+380,7
@@
int before_schedchange_hook(void *hook_data, void *call_data)
* time to do it.
*/
* time to do it.
*/
+#ifdef BABEL_CLEANUP
guint pid_out;
pid_out = lttv_event_get_long(event, "prev_tid");
// TODO: can't we reenable this? pmf
guint pid_out;
pid_out = lttv_event_get_long(event, "prev_tid");
// TODO: can't we reenable this? pmf
@@
-392,7
+388,7
@@
int before_schedchange_hook(void *hook_data, void *call_data)
// /* not a transition to/from idle */
// return 0;
// }
// /* not a transition to/from idle */
// return 0;
// }
-
+#endif
guint cpu = lttv_traceset_get_cpuid_from_event(event);
ts = event->state;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
ts = event->state;
@@
-626,7
+622,6
@@
int before_execmode_hook(void *hook_data, void *call_data)
{
LttvEvent *event;
guint cpu;
{
LttvEvent *event;
guint cpu;
- guint pid = 0;
LttvTraceState *ts;
LttvProcessState *process;
LttvTraceState *ts;
LttvProcessState *process;
@@
-648,9
+643,6
@@
int before_execmode_hook(void *hook_data, void *call_data)
LttTime evtime = lttv_event_get_timestamp(event);
ControlFlowData *resourceview_data = (ControlFlowData*)hook_data;
LttTime evtime = lttv_event_get_timestamp(event);
ControlFlowData *resourceview_data = (ControlFlowData*)hook_data;
- /* For the pid */
- LttvTraceset *traceSet = lttvwindow_get_traceset(resourceview_data->tab);
-
cpu = lttv_traceset_get_cpuid_from_event(event);
ts = event->state;
cpu = lttv_traceset_get_cpuid_from_event(event);
ts = event->state;
@@
-807,7
+799,6
@@
int before_execmode_hook_irq(void *hook_data, void *call_data)
guint64 irq;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
guint64 irq;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
- LttvTraceset *traceSet = lttvwindow_get_traceset(resourceview_data->tab);
LttvTraceState *ts = event->state;;
/*
LttvTraceState *ts = event->state;;
/*
@@
-999,8
+990,6
@@
int before_execmode_hook_soft_irq(void *hook_data, void *call_data)
LttTime evtime = lttv_event_get_timestamp(event);
ControlFlowData *resourceview_data = (ControlFlowData*)hook_data;
LttTime evtime = lttv_event_get_timestamp(event);
ControlFlowData *resourceview_data = (ControlFlowData*)hook_data;
- LttvTraceset *traceSet = lttvwindow_get_traceset(resourceview_data->tab);
- guint cpu = lttv_traceset_get_cpuid_from_event(event);
ts = event->state;
guint trace_num = lttv_traceset_get_trace_index_from_event(event);
ts = event->state;
guint trace_num = lttv_traceset_get_trace_index_from_event(event);
@@
-1308,7
+1297,6
@@
int before_bdev_event_hook(void *hook_data, void *call_data)
{
LttvEvent *event;
guint cpu;
{
LttvEvent *event;
guint cpu;
- guint pid = 0;
LttvTraceState *ts;
LttvProcessState *process;
LttvTraceState *ts;
LttvProcessState *process;
@@
-2082,8
+2070,6
@@
int after_chunk(void *hook_data, void *call_data)
ControlFlowData *resourceview_data = events_request->viewer_data;
LttvTraceset *ts = (LttvTraceset*)call_data;
ControlFlowData *resourceview_data = events_request->viewer_data;
LttvTraceset *ts = (LttvTraceset*)call_data;
- LttTime end_time;
-
ProcessList *process_list = resourceview_data->process_list;
guint i;
guint nb_trace = lttv_traceset_number(ts);
ProcessList *process_list = resourceview_data->process_list;
guint i;
guint nb_trace = lttv_traceset_number(ts);
@@
-2097,12
+2083,7
@@
int after_chunk(void *hook_data, void *call_data)
}
g_free(process_list->current_hash_data);
process_list->current_hash_data = NULL;
}
g_free(process_list->current_hash_data);
process_list->current_hash_data = NULL;
-#ifdef BABEL_CLEANUP
- if(tfc != NULL)
- end_time = LTT_TIME_MIN(tfc->timestamp, events_request->end_time);
- else /* end of traceset, or position now out of request : end */
- end_time = events_request->end_time;
-#endif
+
draw_closing_lines(resourceview_data, events_request);
return 0;
draw_closing_lines(resourceview_data, events_request);
return 0;
@@
-2127,10
+2108,6
@@
int before_statedump_end(void *hook_data, void *call_data)
ControlFlowData *resourceview_data = (ControlFlowData*) hook_data;
ControlFlowData *resourceview_data = (ControlFlowData*) hook_data;
-
- LttvTraceState *ts = event->state;
-
-
gint i;
#ifdef BABEL_CLEANUP
gint i;
#ifdef BABEL_CLEANUP
This page took
0.0242 seconds
and
4
git commands to generate.