- thf = lttv_trace_hook_get_first(&h);
-
- t = ltt_field_type(thf->f1);
- nb = ltt_type_element_number(t);
-
- lttv_trace_hook_destroy(&h);
-
- name_tables->syscall_names = g_new(GQuark, nb);
- name_tables->nb_syscalls = nb;
-
- for(i = 0 ; i < nb ; i++) {
- name_tables->syscall_names[i] = ltt_enum_string_get(t, i);
- if(!name_tables->syscall_names[i]) {
- GString *string = g_string_new("");
- g_string_printf(string, "syscall %u", i);
- name_tables->syscall_names[i] = g_quark_from_string(string->str);
- g_string_free(string, TRUE);
- }
+// th = lttv_trace_hook_get_first(&th);
+//
+// t = ltt_field_type(lttv_trace_get_hook_field(th, 0));
+// nb = ltt_type_element_number(t);
+//
+// name_tables->syscall_names = g_new(GQuark, nb);
+// name_tables->nb_syscalls = nb;
+//
+// for(i = 0 ; i < nb ; i++) {
+// name_tables->syscall_names[i] = ltt_enum_string_get(t, i);
+// if(!name_tables->syscall_names[i]) {
+// GString *string = g_string_new("");
+// g_string_printf(string, "syscall %u", i);
+// name_tables->syscall_names[i] = g_quark_from_string(string->str);
+// g_string_free(string, TRUE);
+// }
+// }
+
+ name_tables->nb_syscalls = 256;
+ name_tables->syscall_names = g_new(GQuark, 256);
+ for(i = 0 ; i < 256 ; i++) {
+ g_string_printf(fe_name, "syscall %d", i);
+ name_tables->syscall_names[i] = g_quark_from_string(fe_name->str);