Lines Matching refs:tevs

281 static void clear_probe_trace_events(struct probe_trace_event *tevs, int ntevs)  in clear_probe_trace_events()  argument
286 clear_probe_trace_event(tevs + i); in clear_probe_trace_events()
494 static int add_exec_to_probe_trace_events(struct probe_trace_event *tevs, in add_exec_to_probe_trace_events() argument
509 tevs[i].point.address -= stext; in add_exec_to_probe_trace_events()
510 tevs[i].point.module = strdup(exec); in add_exec_to_probe_trace_events()
511 if (!tevs[i].point.module) { in add_exec_to_probe_trace_events()
515 tevs[i].uprobes = true; in add_exec_to_probe_trace_events()
521 static int add_module_to_probe_trace_events(struct probe_trace_event *tevs, in add_module_to_probe_trace_events() argument
543 tevs[i].point.module = strdup(module); in add_module_to_probe_trace_events()
544 if (!tevs[i].point.module) { in add_module_to_probe_trace_events()
555 static int post_process_probe_trace_events(struct probe_trace_event *tevs, in post_process_probe_trace_events() argument
564 return add_exec_to_probe_trace_events(tevs, ntevs, module); in post_process_probe_trace_events()
568 return add_module_to_probe_trace_events(tevs, ntevs, module); in post_process_probe_trace_events()
577 if (tevs[i].point.address && !tevs[i].point.retprobe) { in post_process_probe_trace_events()
581 free(tevs[i].point.symbol); in post_process_probe_trace_events()
582 tevs[i].point.symbol = tmp; in post_process_probe_trace_events()
583 tevs[i].point.offset = tevs[i].point.address - in post_process_probe_trace_events()
592 struct probe_trace_event **tevs, in try_to_find_probe_trace_events() argument
611 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs, max_tevs); in try_to_find_probe_trace_events()
617 tevs, max_tevs); in try_to_find_probe_trace_events()
631 ret = post_process_probe_trace_events(*tevs, ntevs, in try_to_find_probe_trace_events()
634 clear_probe_trace_events(*tevs, ntevs); in try_to_find_probe_trace_events()
635 zfree(tevs); in try_to_find_probe_trace_events()
919 struct probe_trace_event **tevs __maybe_unused, in try_to_find_probe_trace_events()
2325 struct probe_trace_event *tevs, in __add_probe_trace_events() argument
2362 tev = &tevs[i]; in __add_probe_trace_events()
2457 struct probe_trace_event **tevs, in find_probe_trace_events_from_map() argument
2502 *tevs = zalloc(sizeof(*tev) * num_matched_functions); in find_probe_trace_events_from_map()
2503 if (!*tevs) { in find_probe_trace_events_from_map()
2511 tev = (*tevs) + ret; in find_probe_trace_events_from_map()
2567 clear_probe_trace_events(*tevs, num_matched_functions); in find_probe_trace_events_from_map()
2568 zfree(tevs); in find_probe_trace_events_from_map()
2573 struct probe_trace_event **tevs, in convert_to_probe_trace_events() argument
2588 ret = try_to_find_probe_trace_events(pev, tevs, max_tevs, target); in convert_to_probe_trace_events()
2592 return find_probe_trace_events_from_map(pev, tevs, max_tevs, target); in convert_to_probe_trace_events()
2597 struct probe_trace_event *tevs; member
2624 &pkgs[i].tevs, in add_perf_probe_events()
2634 ret = __add_probe_trace_events(pkgs[i].pev, pkgs[i].tevs, in add_perf_probe_events()
2643 clear_probe_trace_event(&pkgs[i].tevs[j]); in add_perf_probe_events()
2644 zfree(&pkgs[i].tevs); in add_perf_probe_events()