Lines Matching defs:tool
115 struct osnoise_tool *tool;
124 * For now keep it simple. If needed, store it in the tool, add the *context
505 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]);
726 struct trace_instance *trace = &taa_ctx->tool->trace;
791 tep = taa_ctx->tool->trace.tep;
916 static void timerlat_aa_unregister_events(struct osnoise_tool *tool, int dump_tasks)
919 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "timerlat",
920 timerlat_aa_handler, tool);
922 tracefs_event_disable(tool->trace.inst, "osnoise", NULL);
924 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "nmi_noise",
925 timerlat_aa_nmi_handler, tool);
927 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "irq_noise",
928 timerlat_aa_irq_handler, tool);
930 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "softirq_noise",
931 timerlat_aa_softirq_handler, tool);
933 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "thread_noise",
934 timerlat_aa_thread_handler, tool);
936 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "kernel_stack",
937 timerlat_aa_stack_handler, tool);
941 tracefs_event_disable(tool->trace.inst, "sched", "sched_switch");
942 tep_unregister_event_handler(tool->trace.tep, -1, "sched", "sched_switch",
943 timerlat_aa_sched_switch_handler, tool);
945 tracefs_event_disable(tool->trace.inst, "workqueue", "workqueue_execute_start");
946 tep_unregister_event_handler(tool->trace.tep, -1, "workqueue", "workqueue_execute_start",
947 timerlat_aa_kworker_start_handler, tool);
955 static int timerlat_aa_register_events(struct osnoise_tool *tool, int dump_tasks)
959 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat",
960 timerlat_aa_handler, tool);
966 retval = tracefs_event_enable(tool->trace.inst, "osnoise", NULL);
972 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "nmi_noise",
973 timerlat_aa_nmi_handler, tool);
975 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "irq_noise",
976 timerlat_aa_irq_handler, tool);
978 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "softirq_noise",
979 timerlat_aa_softirq_handler, tool);
981 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "thread_noise",
982 timerlat_aa_thread_handler, tool);
984 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "kernel_stack",
985 timerlat_aa_stack_handler, tool);
993 retval = tracefs_event_enable(tool->trace.inst, "sched", "sched_switch");
999 tep_register_event_handler(tool->trace.tep, -1, "sched", "sched_switch",
1000 timerlat_aa_sched_switch_handler, tool);
1002 retval = tracefs_event_enable(tool->trace.inst, "workqueue", "workqueue_execute_start");
1008 tep_register_event_handler(tool->trace.tep, -1, "workqueue", "workqueue_execute_start",
1009 timerlat_aa_kworker_start_handler, tool);
1014 timerlat_aa_unregister_events(tool, dump_tasks);
1031 timerlat_aa_unregister_events(taa_ctx->tool, taa_ctx->dump_tasks);
1043 int timerlat_aa_init(struct osnoise_tool *tool, int dump_tasks, enum stack_format stack_format)
1054 taa_ctx->tool = tool;
1066 retval = timerlat_aa_register_events(tool, dump_tasks);