Lines Matching refs:ntevs
233 static void clear_probe_trace_events(struct probe_trace_event *tevs, int ntevs) in clear_probe_trace_events() argument
237 for (i = 0; i < ntevs; i++) in clear_probe_trace_events()
715 int ntevs, const char *pathname) in post_process_offline_probe_trace_events() argument
728 for (i = 0; i < ntevs; i++) { in post_process_offline_probe_trace_events()
740 int ntevs, const char *exec, in add_exec_to_probe_trace_events() argument
753 for (i = 0; i < ntevs && ret >= 0; i++) { in add_exec_to_probe_trace_events()
769 int ntevs, const char *module, in post_process_module_probe_trace_events() argument
787 for (i = 0; i < ntevs; i++) { in post_process_module_probe_trace_events()
808 int ntevs) in post_process_kernel_probe_trace_events() argument
817 return post_process_offline_probe_trace_events(tevs, ntevs, in post_process_kernel_probe_trace_events()
826 for (i = 0; i < ntevs; i++) { in post_process_kernel_probe_trace_events()
860 int ntevs __maybe_unused) in arch__post_process_probe_trace_events()
867 int ntevs, const char *module, in post_process_probe_trace_events() argument
873 ret = add_exec_to_probe_trace_events(tevs, ntevs, module, in post_process_probe_trace_events()
877 ret = post_process_module_probe_trace_events(tevs, ntevs, in post_process_probe_trace_events()
880 ret = post_process_kernel_probe_trace_events(tevs, ntevs); in post_process_probe_trace_events()
883 arch__post_process_probe_trace_events(pev, ntevs); in post_process_probe_trace_events()
895 int ntevs, ret = 0; in try_to_find_probe_trace_events() local
907 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs); in try_to_find_probe_trace_events()
909 if (ntevs == 0) { /* Not found, retry with an alternative */ in try_to_find_probe_trace_events()
912 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs); in try_to_find_probe_trace_events()
922 if (ntevs > 0) { /* Succeeded to find trace events */ in try_to_find_probe_trace_events()
923 pr_debug("Found %d probe_trace_events.\n", ntevs); in try_to_find_probe_trace_events()
924 ret = post_process_probe_trace_events(pev, *tevs, ntevs, in try_to_find_probe_trace_events()
926 if (ret < 0 || ret == ntevs) { in try_to_find_probe_trace_events()
928 clear_probe_trace_events(*tevs, ntevs); in try_to_find_probe_trace_events()
930 ntevs = 0; in try_to_find_probe_trace_events()
936 if (ntevs == 0) { /* No error but failed to find probe point. */ in try_to_find_probe_trace_events()
940 } else if (ntevs < 0) { in try_to_find_probe_trace_events()
942 pr_debug("An error occurred in debuginfo analysis (%d).\n", ntevs); in try_to_find_probe_trace_events()
943 if (ntevs == -EBADF) in try_to_find_probe_trace_events()
951 return ntevs; in try_to_find_probe_trace_events()
2849 int ntevs, bool allow_suffix) in __add_probe_trace_events() argument
2863 for (i = 0; i < ntevs; i++) { in __add_probe_trace_events()
2901 probe_cache__add_entry(cache, pev, tevs, ntevs) < 0 || in __add_probe_trace_events()
3235 concat_probe_trace_events(struct probe_trace_event **tevs, int *ntevs, in concat_probe_trace_events() argument
3241 if (*ntevs == 0) { in concat_probe_trace_events()
3243 *ntevs = ntevs2; in concat_probe_trace_events()
3248 if (*ntevs + ntevs2 > probe_conf.max_probes) in concat_probe_trace_events()
3252 new_tevs = memcat(*tevs, (*ntevs) * sizeof(**tevs), in concat_probe_trace_events()
3259 *ntevs += ntevs2; in concat_probe_trace_events()
3280 int ntevs = 0; in find_cached_events() local
3296 ret = concat_probe_trace_events(tevs, &ntevs, in find_cached_events()
3304 clear_probe_trace_events(*tevs, ntevs); in find_cached_events()
3307 ret = ntevs; in find_cached_events()
3308 if (ntevs > 0 && target && target[0] == '/') in find_cached_events()
3323 int ntevs = 0; in find_cached_events_all() local
3340 ret = concat_probe_trace_events(tevs, &ntevs, in find_cached_events_all()
3349 clear_probe_trace_events(*tevs, ntevs); in find_cached_events_all()
3352 ret = ntevs; in find_cached_events_all()
3462 pevs[i].ntevs = ret; in convert_perf_probe_events()
3498 for (i = 0; i < pev->ntevs && !ret; i++) { in show_probe_trace_events()
3523 pevs[i].ntevs, in apply_perf_probe_events()
3539 for (j = 0; j < pevs[i].ntevs; j++) in cleanup_perf_probe_events()
3542 pevs[i].ntevs = 0; in cleanup_perf_probe_events()