Lines Matching refs:tevs
240 static void clear_probe_trace_events(struct probe_trace_event *tevs, int ntevs) in clear_probe_trace_events() argument
245 clear_probe_trace_event(tevs + i); in clear_probe_trace_events()
555 static int add_exec_to_probe_trace_events(struct probe_trace_event *tevs, in add_exec_to_probe_trace_events() argument
570 tevs[i].point.address -= stext; in add_exec_to_probe_trace_events()
571 tevs[i].point.module = strdup(exec); in add_exec_to_probe_trace_events()
572 if (!tevs[i].point.module) { in add_exec_to_probe_trace_events()
576 tevs[i].uprobes = true; in add_exec_to_probe_trace_events()
582 static int add_module_to_probe_trace_events(struct probe_trace_event *tevs, in add_module_to_probe_trace_events() argument
604 tevs[i].point.module = strdup(module); in add_module_to_probe_trace_events()
605 if (!tevs[i].point.module) { in add_module_to_probe_trace_events()
616 static int post_process_probe_trace_events(struct probe_trace_event *tevs, in post_process_probe_trace_events() argument
625 return add_exec_to_probe_trace_events(tevs, ntevs, module); in post_process_probe_trace_events()
629 return add_module_to_probe_trace_events(tevs, ntevs, module); in post_process_probe_trace_events()
638 if (!tevs[i].point.address || tevs[i].point.retprobe) in post_process_probe_trace_events()
641 if (kprobe_warn_out_range(tevs[i].point.symbol, in post_process_probe_trace_events()
642 tevs[i].point.address)) { in post_process_probe_trace_events()
651 if (!tevs[i].point.realname) in post_process_probe_trace_events()
652 tevs[i].point.realname = tevs[i].point.symbol; in post_process_probe_trace_events()
654 free(tevs[i].point.symbol); in post_process_probe_trace_events()
655 tevs[i].point.symbol = tmp; in post_process_probe_trace_events()
656 tevs[i].point.offset = tevs[i].point.address - in post_process_probe_trace_events()
664 struct probe_trace_event **tevs) in try_to_find_probe_trace_events() argument
681 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs); in try_to_find_probe_trace_events()
686 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs); in try_to_find_probe_trace_events()
700 ret = post_process_probe_trace_events(*tevs, ntevs, in try_to_find_probe_trace_events()
703 clear_probe_trace_events(*tevs, ntevs); in try_to_find_probe_trace_events()
704 zfree(tevs); in try_to_find_probe_trace_events()
992 struct probe_trace_event **tevs __maybe_unused) in try_to_find_probe_trace_events()
2419 struct probe_trace_event *tevs, in __add_probe_trace_events() argument
2440 tev = &tevs[i]; in __add_probe_trace_events()
2505 struct probe_trace_event **tevs) in find_probe_trace_events_from_map() argument
2557 *tevs = zalloc(sizeof(*tev) * num_matched_functions); in find_probe_trace_events_from_map()
2558 if (!*tevs) { in find_probe_trace_events_from_map()
2568 tev = (*tevs) + ret; in find_probe_trace_events_from_map()
2639 clear_probe_trace_events(*tevs, num_matched_functions); in find_probe_trace_events_from_map()
2640 zfree(tevs); in find_probe_trace_events_from_map()
2645 struct probe_trace_event **tevs) in try_to_find_absolute_address() argument
2663 *tevs = zalloc(sizeof(*tev)); in try_to_find_absolute_address()
2664 if (!*tevs) in try_to_find_absolute_address()
2667 tev = *tevs; in try_to_find_absolute_address()
2729 if (*tevs) { in try_to_find_absolute_address()
2730 clear_probe_trace_events(*tevs, 1); in try_to_find_absolute_address()
2731 *tevs = NULL; in try_to_find_absolute_address()
2739 struct probe_trace_event **tevs) in convert_to_probe_trace_events() argument
2752 ret = try_to_find_absolute_address(pev, tevs); in convert_to_probe_trace_events()
2757 ret = find_probe_trace_events_from_map(pev, tevs); in convert_to_probe_trace_events()
2763 ret = try_to_find_probe_trace_events(pev, tevs); in convert_to_probe_trace_events()
2767 return find_probe_trace_events_from_map(pev, tevs); in convert_to_probe_trace_events()
2780 ret = convert_to_probe_trace_events(&pevs[i], &pevs[i].tevs); in convert_perf_probe_events()
2797 ret = __add_probe_trace_events(&pevs[i], pevs[i].tevs, in apply_perf_probe_events()
2813 clear_probe_trace_event(&pevs[i].tevs[j]); in cleanup_perf_probe_events()
2814 zfree(&pevs[i].tevs); in cleanup_perf_probe_events()