Lines Matching refs:taa_ctx

140 *timerlat_aa_get_data(struct timerlat_aa_context *taa_ctx, int cpu)  in timerlat_aa_get_data()  argument
142 return &taa_ctx->taa_data[cpu]; in timerlat_aa_get_data()
244 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_handler() local
245 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_handler()
267 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_nmi_handler() local
268 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_nmi_handler()
310 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_irq_handler() local
311 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_irq_handler()
406 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_softirq_handler() local
407 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_softirq_handler()
439 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_thread_handler() local
440 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_thread_handler()
484 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_stack_handler() local
485 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_stack_handler()
496 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]); in timerlat_aa_stack_handler()
516 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_sched_switch_handler() local
517 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_sched_switch_handler()
547 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_kworker_start_handler() local
548 struct timerlat_aa_data *taa_data = timerlat_aa_get_data(taa_ctx, record->cpu); in timerlat_aa_kworker_start_handler()
706 static int timerlat_auto_analysis_collect_trace(struct timerlat_aa_context *taa_ctx) in timerlat_auto_analysis_collect_trace() argument
708 struct trace_instance *trace = &taa_ctx->tool->trace; in timerlat_auto_analysis_collect_trace()
730 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_auto_analysis() local
737 timerlat_auto_analysis_collect_trace(taa_ctx); in timerlat_auto_analysis()
743 for (cpu = 0; cpu < taa_ctx->nr_cpus; cpu++) { in timerlat_auto_analysis()
744 taa_data = timerlat_aa_get_data(taa_ctx, cpu); in timerlat_auto_analysis()
766 if (!taa_ctx->dump_tasks) in timerlat_auto_analysis()
771 for (cpu = 0; cpu < taa_ctx->nr_cpus; cpu++) { in timerlat_auto_analysis()
772 taa_data = timerlat_aa_get_data(taa_ctx, cpu); in timerlat_auto_analysis()
773 tep = taa_ctx->tool->trace.tep; in timerlat_auto_analysis()
789 static void timerlat_aa_destroy_seqs(struct timerlat_aa_context *taa_ctx) in timerlat_aa_destroy_seqs() argument
794 if (!taa_ctx->taa_data) in timerlat_aa_destroy_seqs()
797 for (i = 0; i < taa_ctx->nr_cpus; i++) { in timerlat_aa_destroy_seqs()
798 taa_data = timerlat_aa_get_data(taa_ctx, i); in timerlat_aa_destroy_seqs()
842 static int timerlat_aa_init_seqs(struct timerlat_aa_context *taa_ctx) in timerlat_aa_init_seqs() argument
847 for (i = 0; i < taa_ctx->nr_cpus; i++) { in timerlat_aa_init_seqs()
849 taa_data = timerlat_aa_get_data(taa_ctx, i); in timerlat_aa_init_seqs()
891 timerlat_aa_destroy_seqs(taa_ctx); in timerlat_aa_init_seqs()
1005 struct timerlat_aa_context *taa_ctx = timerlat_aa_get_ctx(); in timerlat_aa_destroy() local
1007 if (!taa_ctx) in timerlat_aa_destroy()
1010 if (!taa_ctx->taa_data) in timerlat_aa_destroy()
1013 timerlat_aa_unregister_events(taa_ctx->tool, taa_ctx->dump_tasks); in timerlat_aa_destroy()
1014 timerlat_aa_destroy_seqs(taa_ctx); in timerlat_aa_destroy()
1015 free(taa_ctx->taa_data); in timerlat_aa_destroy()
1017 free(taa_ctx); in timerlat_aa_destroy()
1028 struct timerlat_aa_context *taa_ctx; in timerlat_aa_init() local
1031 taa_ctx = calloc(1, sizeof(*taa_ctx)); in timerlat_aa_init()
1032 if (!taa_ctx) in timerlat_aa_init()
1035 __timerlat_aa_ctx = taa_ctx; in timerlat_aa_init()
1037 taa_ctx->nr_cpus = nr_cpus; in timerlat_aa_init()
1038 taa_ctx->tool = tool; in timerlat_aa_init()
1039 taa_ctx->dump_tasks = dump_tasks; in timerlat_aa_init()
1041 taa_ctx->taa_data = calloc(nr_cpus, sizeof(*taa_ctx->taa_data)); in timerlat_aa_init()
1042 if (!taa_ctx->taa_data) in timerlat_aa_init()
1045 retval = timerlat_aa_init_seqs(taa_ctx); in timerlat_aa_init()