Lines Matching refs:p
41 const char *p; in probe_likely_condition() local
72 p = f->data.file + strlen(f->data.file); in probe_likely_condition()
73 while (p >= f->data.file && *p != '/') in probe_likely_condition()
74 p--; in probe_likely_condition()
75 p++; in probe_likely_condition()
78 strncpy(entry->file, p, TRACE_FILE_SIZE); in probe_likely_condition()
247 static inline long get_incorrect_percent(const struct ftrace_branch_data *p) in get_incorrect_percent() argument
251 if (p->correct) { in get_incorrect_percent()
252 percent = p->incorrect * 100; in get_incorrect_percent()
253 percent /= p->correct + p->incorrect; in get_incorrect_percent()
255 percent = p->incorrect ? 100 : -1; in get_incorrect_percent()
260 static const char *branch_stat_process_file(struct ftrace_branch_data *p) in branch_stat_process_file() argument
265 f = p->file + strlen(p->file); in branch_stat_process_file()
266 while (f >= p->file && *f != '/') in branch_stat_process_file()
272 struct ftrace_branch_data *p, const char *f) in branch_stat_show() argument
279 percent = get_incorrect_percent(p); in branch_stat_show()
286 seq_printf(m, "%-30.30s %-20.20s %d\n", p->func, f, p->line); in branch_stat_show()
290 struct ftrace_branch_data *p, const char *f) in branch_stat_show_normal() argument
292 seq_printf(m, "%8lu %8lu ", p->correct, p->incorrect); in branch_stat_show_normal()
293 branch_stat_show(m, p, f); in branch_stat_show_normal()
299 struct ftrace_likely_data *p = v; in annotate_branch_stat_show() local
303 f = branch_stat_process_file(&p->data); in annotate_branch_stat_show()
305 if (!p->constant) in annotate_branch_stat_show()
306 return branch_stat_show_normal(m, &p->data, f); in annotate_branch_stat_show()
308 l = snprintf(NULL, 0, "/%lu", p->constant); in annotate_branch_stat_show()
312 p->data.correct, p->constant, l, p->data.incorrect); in annotate_branch_stat_show()
313 branch_stat_show(m, &p->data, f); in annotate_branch_stat_show()
325 struct ftrace_likely_data *p = v; in annotated_branch_stat_next() local
327 ++p; in annotated_branch_stat_next()
329 if ((void *)p >= (void *)__stop_annotated_branch_profile) in annotated_branch_stat_next()
332 return p; in annotated_branch_stat_next()
415 struct ftrace_branch_data *p = v; in all_branch_stat_next() local
417 ++p; in all_branch_stat_next()
419 if ((void *)p >= (void *)__stop_branch_profile) in all_branch_stat_next()
422 return p; in all_branch_stat_next()
427 struct ftrace_branch_data *p = v; in all_branch_stat_show() local
430 f = branch_stat_process_file(p); in all_branch_stat_show()
431 return branch_stat_show_normal(m, p, f); in all_branch_stat_show()