Lines Matching refs:ntevs
235 static void clear_probe_trace_events(struct probe_trace_event *tevs, int ntevs) in clear_probe_trace_events() argument
239 for (i = 0; i < ntevs; i++) in clear_probe_trace_events()
717 int ntevs, const char *pathname) in post_process_offline_probe_trace_events() argument
730 for (i = 0; i < ntevs; i++) { in post_process_offline_probe_trace_events()
742 int ntevs, const char *exec, in add_exec_to_probe_trace_events() argument
755 for (i = 0; i < ntevs && ret >= 0; i++) { in add_exec_to_probe_trace_events()
771 int ntevs, const char *module, in post_process_module_probe_trace_events() argument
789 for (i = 0; i < ntevs; i++) { in post_process_module_probe_trace_events()
810 int ntevs) in post_process_kernel_probe_trace_events() argument
819 return post_process_offline_probe_trace_events(tevs, ntevs, in post_process_kernel_probe_trace_events()
828 for (i = 0; i < ntevs; i++) { in post_process_kernel_probe_trace_events()
862 int ntevs __maybe_unused) in arch__post_process_probe_trace_events()
869 int ntevs, const char *module, in post_process_probe_trace_events() argument
875 ret = add_exec_to_probe_trace_events(tevs, ntevs, module, in post_process_probe_trace_events()
879 ret = post_process_module_probe_trace_events(tevs, ntevs, in post_process_probe_trace_events()
882 ret = post_process_kernel_probe_trace_events(tevs, ntevs); in post_process_probe_trace_events()
885 arch__post_process_probe_trace_events(pev, ntevs); in post_process_probe_trace_events()
897 int ntevs, ret = 0; in try_to_find_probe_trace_events() local
909 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs); in try_to_find_probe_trace_events()
911 if (ntevs == 0) { /* Not found, retry with an alternative */ in try_to_find_probe_trace_events()
914 ntevs = debuginfo__find_trace_events(dinfo, pev, tevs); in try_to_find_probe_trace_events()
924 if (ntevs > 0) { /* Succeeded to find trace events */ in try_to_find_probe_trace_events()
925 pr_debug("Found %d probe_trace_events.\n", ntevs); in try_to_find_probe_trace_events()
926 ret = post_process_probe_trace_events(pev, *tevs, ntevs, in try_to_find_probe_trace_events()
928 if (ret < 0 || ret == ntevs) { in try_to_find_probe_trace_events()
930 clear_probe_trace_events(*tevs, ntevs); in try_to_find_probe_trace_events()
932 ntevs = 0; in try_to_find_probe_trace_events()
938 if (ntevs == 0) { /* No error but failed to find probe point. */ in try_to_find_probe_trace_events()
942 } else if (ntevs < 0) { in try_to_find_probe_trace_events()
944 pr_debug("An error occurred in debuginfo analysis (%d).\n", ntevs); in try_to_find_probe_trace_events()
945 if (ntevs == -EBADF) in try_to_find_probe_trace_events()
953 return ntevs; in try_to_find_probe_trace_events()
2853 int ntevs, bool allow_suffix) in __add_probe_trace_events() argument
2867 for (i = 0; i < ntevs; i++) { in __add_probe_trace_events()
2905 probe_cache__add_entry(cache, pev, tevs, ntevs) < 0 || in __add_probe_trace_events()
3242 concat_probe_trace_events(struct probe_trace_event **tevs, int *ntevs, in concat_probe_trace_events() argument
3248 if (*ntevs == 0) { in concat_probe_trace_events()
3250 *ntevs = ntevs2; in concat_probe_trace_events()
3255 if (*ntevs + ntevs2 > probe_conf.max_probes) in concat_probe_trace_events()
3259 new_tevs = memcat(*tevs, (*ntevs) * sizeof(**tevs), in concat_probe_trace_events()
3266 *ntevs += ntevs2; in concat_probe_trace_events()
3287 int ntevs = 0; in find_cached_events() local
3303 ret = concat_probe_trace_events(tevs, &ntevs, in find_cached_events()
3311 clear_probe_trace_events(*tevs, ntevs); in find_cached_events()
3314 ret = ntevs; in find_cached_events()
3315 if (ntevs > 0 && target && target[0] == '/') in find_cached_events()
3330 int ntevs = 0; in find_cached_events_all() local
3347 ret = concat_probe_trace_events(tevs, &ntevs, in find_cached_events_all()
3356 clear_probe_trace_events(*tevs, ntevs); in find_cached_events_all()
3359 ret = ntevs; in find_cached_events_all()
3469 pevs[i].ntevs = ret; in convert_perf_probe_events()
3505 for (i = 0; i < pev->ntevs && !ret; i++) { in show_probe_trace_events()
3530 pevs[i].ntevs, in apply_perf_probe_events()
3546 for (j = 0; j < pevs[i].ntevs; j++) in cleanup_perf_probe_events()
3549 pevs[i].ntevs = 0; in cleanup_perf_probe_events()