EventsRequest *events_request = g_new(EventsRequest, 1);
// Create the hooks
//LttvHooks *event = lttv_hooks_new();
- LttvHooksById *event_by_id = lttv_hooks_by_id_new();
+ LttvHooksByIdChannelArray *event_by_id_channel =
+ lttv_hooks_by_id_channel_new();
LttvHooks *before_chunk_traceset = lttv_hooks_new();
LttvHooks *after_chunk_traceset = lttv_hooks_new();
LttvHooks *before_request_hook = lttv_hooks_new();
// &hooks);
//
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL_ARCH,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_TRAP_ENTRY,
FIELD_ARRAY(LTT_FIELD_TRAP_ID),
before_execmode_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL_ARCH,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_TRAP_EXIT,
NULL,
before_execmode_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
+ LTT_EVENT_PAGE_FAULT_ENTRY,
+ FIELD_ARRAY(LTT_FIELD_TRAP_ID),
+ before_execmode_hook,
+ events_request,
+ &hooks);
+
+ lttv_trace_find_hook(ts->parent.t,
+ LTT_CHANNEL_KERNEL,
+ LTT_EVENT_PAGE_FAULT_EXIT,
+ NULL,
+ before_execmode_hook,
+ events_request,
+ &hooks);
+
+ lttv_trace_find_hook(ts->parent.t,
+ LTT_CHANNEL_KERNEL,
+ LTT_EVENT_PAGE_FAULT_NOSEM_ENTRY,
+ FIELD_ARRAY(LTT_FIELD_TRAP_ID),
+ before_execmode_hook,
+ events_request,
+ &hooks);
+
+ lttv_trace_find_hook(ts->parent.t,
+ LTT_CHANNEL_KERNEL,
+ LTT_EVENT_PAGE_FAULT_NOSEM_EXIT,
+ NULL,
+ before_execmode_hook,
+ events_request,
+ &hooks);
+
+ lttv_trace_find_hook(ts->parent.t,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_IRQ_ENTRY,
FIELD_ARRAY(LTT_FIELD_IRQ_ID),
before_execmode_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_IRQ_EXIT,
NULL,
before_execmode_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_SOFT_IRQ_RAISE,
FIELD_ARRAY(LTT_FIELD_SOFT_IRQ_ID),
before_execmode_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_SOFT_IRQ_ENTRY,
FIELD_ARRAY(LTT_FIELD_SOFT_IRQ_ID),
before_execmode_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_SOFT_IRQ_EXIT,
NULL,
before_execmode_hook,
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_SCHED_SCHEDULE,
FIELD_ARRAY(LTT_FIELD_PREV_PID, LTT_FIELD_NEXT_PID, LTT_FIELD_PREV_STATE),
before_schedchange_hook,
&hooks);
// lttv_trace_find_hook(ts->parent.t,
-// LTT_FACILITY_KERNEL,
+// LTT_CHANNEL_KERNEL,
// LTT_EVENT_PROCESS_EXIT,
// FIELD_ARRAY(LTT_FIELD_PID),
// before_process_exit_hook,
// &hooks);
//
// lttv_trace_find_hook(ts->parent.t,
-// LTT_FACILITY_KERNEL,
+// LTT_CHANNEL_KERNEL,
// LTT_EVENT_PROCESS_FREE,
// FIELD_ARRAY(LTT_FIELD_PID),
// before_process_release_hook,
// &hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_BLOCK,
LTT_EVENT_REQUEST_ISSUE,
FIELD_ARRAY(LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION),
before_bdev_event_hook,
&hooks);
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_BLOCK,
LTT_EVENT_REQUEST_COMPLETE,
FIELD_ARRAY(LTT_FIELD_MAJOR, LTT_FIELD_MINOR, LTT_FIELD_OPERATION),
before_bdev_event_hook,
first_after = hooks->len;
lttv_trace_find_hook(ts->parent.t,
- LTT_FACILITY_KERNEL,
+ LTT_CHANNEL_KERNEL,
LTT_EVENT_SCHED_SCHEDULE,
FIELD_ARRAY(LTT_FIELD_PREV_PID, LTT_FIELD_NEXT_PID, LTT_FIELD_PREV_STATE),
after_schedchange_hook,
&hooks);
// lttv_trace_find_hook(ts->parent.t,
-// LTT_FACILITY_KERNEL,
+// LTT_CHANNEL_KERNEL,
// LTT_EVENT_PROCESS_FORK,
// FIELD_ARRAY(LTT_FIELD_PARENT_PID, LTT_FIELD_CHILD_PID),
// after_process_fork_hook,
// &hooks);
//
// lttv_trace_find_hook(ts->parent.t,
-// LTT_FACILITY_KERNEL,
+// LTT_CHANNEL_KERNEL,
// LTT_EVENT_PROCESS_EXIT,
// FIELD_ARRAY(LTT_FIELD_PID),
// after_process_exit_hook,
// &hooks);
//
// lttv_trace_find_hook(ts->parent.t,
-// LTT_FACILITY_KERNEL,
+// LTT_CHANNEL_KERNEL,
// LTT_EVENT_EXEC,
// NULL,
// after_fs_exec_hook,
/* add before */
for(k = 0 ; k < first_after ; k++) {
th = &g_array_index(hooks, LttvTraceHook, k);
- lttv_hooks_add(lttv_hooks_by_id_find(event_by_id, th->id),
- th->h,
- th,
- LTTV_PRIO_STATE-5);
+ lttv_hooks_add(lttv_hooks_by_id_channel_find(event_by_id_channel,
+ th->channel, th->id),
+ th->h,
+ th,
+ LTTV_PRIO_STATE-5);
}
/* add after */
for(k = first_after ; k < hooks->len ; k++) {
th = &g_array_index(hooks, LttvTraceHook, k);
- lttv_hooks_add(lttv_hooks_by_id_find(event_by_id, th->id),
- th->h,
- th,
- LTTV_PRIO_STATE+5);
+ lttv_hooks_add(lttv_hooks_by_id_channel_find(event_by_id_channel,
+ th->channel, th->id),
+ th->h,
+ th,
+ LTTV_PRIO_STATE+5);
}
events_request->hooks = hooks;
events_request->before_chunk_trace = NULL;
events_request->before_chunk_tracefile = NULL;
events_request->event = NULL;
- events_request->event_by_id = event_by_id;
+ events_request->event_by_id_channel = event_by_id_channel;
events_request->after_chunk_tracefile = NULL;
events_request->after_chunk_trace = NULL;
events_request->after_chunk_traceset = after_chunk_traceset;
{
//ResourceInfo *process_info = (ResourceInfo*)key;
HashedResourceData *hashed_process_data = (HashedResourceData*)value;
- guint x = (guint)user_data;
+ guint x = GPOINTER_TO_UINT(user_data);
hashed_process_data->x.over = x;
hashed_process_data->x.over_used = FALSE;
for(i=0; i<RV_RESOURCE_COUNT; i++) {
g_hash_table_foreach(cfd->process_list->restypes[i].hash_table, set_last_start,
- (gpointer)x);
+ GUINT_TO_POINTER(x));
}
}