Lines Matching defs:tool

114 	struct osnoise_tool *tool;
123 * For now keep it simple. If needed, store it in the tool, add the *context
482 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]);
691 struct trace_instance *trace = &taa_ctx->tool->trace;
756 tep = taa_ctx->tool->trace.tep;
881 static void timerlat_aa_unregister_events(struct osnoise_tool *tool, int dump_tasks)
884 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "timerlat",
885 timerlat_aa_handler, tool);
887 tracefs_event_disable(tool->trace.inst, "osnoise", NULL);
889 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "nmi_noise",
890 timerlat_aa_nmi_handler, tool);
892 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "irq_noise",
893 timerlat_aa_irq_handler, tool);
895 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "softirq_noise",
896 timerlat_aa_softirq_handler, tool);
898 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "thread_noise",
899 timerlat_aa_thread_handler, tool);
901 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "kernel_stack",
902 timerlat_aa_stack_handler, tool);
906 tracefs_event_disable(tool->trace.inst, "sched", "sched_switch");
907 tep_unregister_event_handler(tool->trace.tep, -1, "sched", "sched_switch",
908 timerlat_aa_sched_switch_handler, tool);
910 tracefs_event_disable(tool->trace.inst, "workqueue", "workqueue_execute_start");
911 tep_unregister_event_handler(tool->trace.tep, -1, "workqueue", "workqueue_execute_start",
912 timerlat_aa_kworker_start_handler, tool);
920 static int timerlat_aa_register_events(struct osnoise_tool *tool, int dump_tasks)
924 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat",
925 timerlat_aa_handler, tool);
931 retval = tracefs_event_enable(tool->trace.inst, "osnoise", NULL);
937 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "nmi_noise",
938 timerlat_aa_nmi_handler, tool);
940 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "irq_noise",
941 timerlat_aa_irq_handler, tool);
943 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "softirq_noise",
944 timerlat_aa_softirq_handler, tool);
946 tep_register_event_handler(tool->trace.tep, -1, "osnoise", "thread_noise",
947 timerlat_aa_thread_handler, tool);
949 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "kernel_stack",
950 timerlat_aa_stack_handler, tool);
958 retval = tracefs_event_enable(tool->trace.inst, "sched", "sched_switch");
964 tep_register_event_handler(tool->trace.tep, -1, "sched", "sched_switch",
965 timerlat_aa_sched_switch_handler, tool);
967 retval = tracefs_event_enable(tool->trace.inst, "workqueue", "workqueue_execute_start");
973 tep_register_event_handler(tool->trace.tep, -1, "workqueue", "workqueue_execute_start",
974 timerlat_aa_kworker_start_handler, tool);
979 timerlat_aa_unregister_events(tool, dump_tasks);
996 timerlat_aa_unregister_events(taa_ctx->tool, taa_ctx->dump_tasks);
1008 int timerlat_aa_init(struct osnoise_tool *tool, int dump_tasks)
1021 taa_ctx->tool = tool;
1032 retval = timerlat_aa_register_events(tool, dump_tasks);