Lines Matching refs:class

375 	work->class = key->class;  in work_new()
448 struct kwork_class *class, in work_push_atom() argument
460 BUG_ON(class->work_init == NULL); in work_push_atom()
461 class->work_init(kwork, class, &key, src_type, evsel, sample, machine); in work_push_atom()
467 work = work_findnew(&class->work_root, &key, &kwork->cmp_id); in work_push_atom()
507 struct kwork_class *class, in work_pop_atom() argument
518 BUG_ON(class->work_init == NULL); in work_pop_atom()
519 class->work_init(kwork, class, &key, src_type, evsel, sample, machine); in work_pop_atom()
521 work = work_findnew(&class->work_root, &key, &kwork->cmp_id); in work_pop_atom()
569 struct kwork_class *class; in get_kwork_class() local
571 list_for_each_entry(class, &kwork->class_list, list) { in get_kwork_class()
572 if (class->type == type) in get_kwork_class()
573 return class; in get_kwork_class()
601 struct kwork_class *class, in report_entry_event() argument
606 return work_push_atom(kwork, class, KWORK_TRACE_ENTRY, in report_entry_event()
612 struct kwork_class *class, in report_exit_event() argument
620 atom = work_pop_atom(kwork, class, KWORK_TRACE_EXIT, in report_exit_event()
656 struct kwork_class *class, in latency_raise_event() argument
661 return work_push_atom(kwork, class, KWORK_TRACE_RAISE, in latency_raise_event()
667 struct kwork_class *class, in latency_entry_event() argument
675 atom = work_pop_atom(kwork, class, KWORK_TRACE_ENTRY, in latency_entry_event()
769 if (work->class && work->class->work_name) { in timehist_print_event()
770 work->class->work_name(work, kwork_name, in timehist_print_event()
815 struct kwork_class *class, in timehist_raise_event() argument
820 return work_push_atom(kwork, class, KWORK_TRACE_RAISE, in timehist_raise_event()
826 struct kwork_class *class, in timehist_entry_event() argument
834 ret = work_push_atom(kwork, class, KWORK_TRACE_ENTRY, in timehist_entry_event()
847 struct kwork_class *class, in timehist_exit_event() argument
864 atom = work_pop_atom(kwork, class, KWORK_TRACE_EXIT, in timehist_exit_event()
898 struct kwork_class *class, in top_entry_event() argument
903 return work_push_atom(kwork, class, KWORK_TRACE_ENTRY, in top_entry_event()
909 struct kwork_class *class, in top_exit_event() argument
918 atom = work_pop_atom(kwork, class, KWORK_TRACE_EXIT, in top_exit_event()
939 struct kwork_class *class, in top_sched_switch_event() argument
947 atom = work_pop_atom(kwork, class, KWORK_TRACE_EXIT, in top_sched_switch_event()
958 return top_entry_event(kwork, class, evsel, sample, machine); in top_sched_switch_event()
993 static int irq_class_init(struct kwork_class *class, in irq_class_init() argument
1001 class->work_root = RB_ROOT_CACHED; in irq_class_init()
1006 struct kwork_class *class, in irq_work_init() argument
1013 work->class = class; in irq_work_init()
1089 static int softirq_class_init(struct kwork_class *class, in softirq_class_init() argument
1098 class->work_root = RB_ROOT_CACHED; in softirq_class_init()
1134 struct kwork_class *class, in softirq_work_init() argument
1143 work->class = class; in softirq_work_init()
1220 static int workqueue_class_init(struct kwork_class *class, in workqueue_class_init() argument
1229 class->work_root = RB_ROOT_CACHED; in workqueue_class_init()
1234 struct kwork_class *class, in workqueue_work_init() argument
1245 work->class = class; in workqueue_work_init()
1288 static int sched_class_init(struct kwork_class *class, in sched_class_init() argument
1297 class->work_root = RB_ROOT_CACHED; in sched_class_init()
1302 struct kwork_class *class, in sched_work_init() argument
1309 work->class = class; in sched_work_init()
1360 if (work->class && work->class->work_name) { in report_print_work()
1361 work->class->work_name(work, kwork_name, in report_print_work()
1686 struct kwork_class *class, struct rb_root_cached *root) in work_sort() argument
1691 pr_debug("Sorting %s ...\n", class->name); in work_sort()
1706 struct kwork_class *class; in perf_kwork__sort() local
1708 list_for_each_entry(class, &kwork->class_list, list) in perf_kwork__sort()
1709 work_sort(kwork, class, &class->work_root); in perf_kwork__sort()
1717 struct kwork_class *class; in perf_kwork__check_config() local
1756 list_for_each_entry(class, &kwork->class_list, list) in perf_kwork__check_config()
1757 if ((class->class_init != NULL) && in perf_kwork__check_config()
1758 (class->class_init(class, session) != 0)) in perf_kwork__check_config()
1852 struct kwork_class *class, in perf_kwork_add_work() argument
1861 work_insert(&class->work_root, work, &kwork->cmp_id); in perf_kwork_add_work()
1999 struct kwork_class *class; in top_calc_total_runtime() local
2004 class = get_kwork_class(kwork, KWORK_CLASS_SCHED); in top_calc_total_runtime()
2005 if (!class) in top_calc_total_runtime()
2008 next = rb_first_cached(&class->work_root); in top_calc_total_runtime()
2047 struct kwork_class *class; in top_subtract_irq_runtime() local
2053 class = get_kwork_class(kwork, irq_class_list[i]); in top_subtract_irq_runtime()
2054 if (!class) in top_subtract_irq_runtime()
2057 data = find_work_by_id(&class->work_root, in top_subtract_irq_runtime()
2071 struct kwork_class *class; in top_calc_cpu_usage() local
2076 class = get_kwork_class(kwork, KWORK_CLASS_SCHED); in top_calc_cpu_usage()
2077 if (!class) in top_calc_cpu_usage()
2080 next = rb_first_cached(&class->work_root); in top_calc_cpu_usage()
2114 struct kwork_class *class; in top_merge_tasks() local
2119 class = get_kwork_class(kwork, KWORK_CLASS_SCHED); in top_merge_tasks()
2120 if (!class) in top_merge_tasks()
2124 node = rb_first_cached(&class->work_root); in top_merge_tasks()
2128 rb_erase_cached(node, &class->work_root); in top_merge_tasks()
2147 work_sort(kwork, class, &merged_root); in top_merge_tasks()
2244 struct kwork_class *class; in setup_event_list() local
2257 class = kwork_class_supported_list[i]; in setup_event_list()
2258 if (strcmp(tok, class->name) == 0) { in setup_event_list()
2259 list_add_tail(&class->list, &kwork->class_list); in setup_event_list()
2271 list_for_each_entry(class, &kwork->class_list, list) in setup_event_list()
2272 pr_debug(" %s", class->name); in setup_event_list()
2291 struct kwork_class *class; in perf_kwork__record() local
2304 list_for_each_entry(class, &kwork->class_list, list) in perf_kwork__record()
2305 rec_argc += 2 * class->nr_tracepoints; in perf_kwork__record()
2314 list_for_each_entry(class, &kwork->class_list, list) { in perf_kwork__record()
2315 for (j = 0; j < class->nr_tracepoints; j++) { in perf_kwork__record()
2317 rec_argv[i++] = STRDUP_FAIL_EXIT(class->tp_handlers[j].name); in perf_kwork__record()