Lines Matching refs:cnt
883 size_t cnt, loff_t *ppos) in ftrace_profile_write() argument
888 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); in ftrace_profile_write()
899 cnt = ret; in ftrace_profile_write()
905 cnt = ret; in ftrace_profile_write()
921 *ppos += cnt; in ftrace_profile_write()
923 return cnt; in ftrace_profile_write()
928 size_t cnt, loff_t *ppos) in ftrace_profile_read() argument
934 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in ftrace_profile_read()
3184 int cnt; in ftrace_allocate_records() local
3207 cnt = (PAGE_SIZE << order) / ENTRY_SIZE; in ftrace_allocate_records()
3210 if (cnt > count) in ftrace_allocate_records()
3211 cnt = count; in ftrace_allocate_records()
3213 return cnt; in ftrace_allocate_records()
3237 int cnt; in ftrace_allocate_pages() local
3252 cnt = ftrace_allocate_records(pg, num_to_init); in ftrace_allocate_pages()
3253 if (cnt < 0) in ftrace_allocate_pages()
3256 num_to_init -= cnt; in ftrace_allocate_pages()
5042 size_t cnt, loff_t *ppos, int enable) in ftrace_regex_write() argument
5048 if (!cnt) in ftrace_regex_write()
5063 read = trace_get_user(parser, ubuf, cnt, ppos); in ftrace_regex_write()
5081 size_t cnt, loff_t *ppos) in ftrace_filter_write() argument
5083 return ftrace_regex_write(file, ubuf, cnt, ppos, 1); in ftrace_filter_write()
5088 size_t cnt, loff_t *ppos) in ftrace_notrace_write() argument
5090 return ftrace_regex_write(file, ubuf, cnt, ppos, 0); in ftrace_notrace_write()
5115 unsigned int cnt, int remove) in ftrace_match_addr() argument
5120 for (i = 0; i < cnt; i++) { in ftrace_match_addr()
5135 unsigned long *ips, unsigned int cnt, in ftrace_set_hash() argument
5167 ret = ftrace_match_addr(hash, ips, cnt, remove); in ftrace_set_hash()
5184 ftrace_set_addr(struct ftrace_ops *ops, unsigned long *ips, unsigned int cnt, in ftrace_set_addr() argument
5187 return ftrace_set_hash(ops, NULL, 0, ips, cnt, remove, reset, enable); in ftrace_set_addr()
5875 unsigned int cnt, int remove, int reset) in ftrace_set_filter_ips() argument
5878 return ftrace_set_addr(ops, ips, cnt, remove, reset, 1); in ftrace_set_filter_ips()
6534 size_t cnt, loff_t *ppos) in ftrace_graph_write() argument
6540 if (!cnt) in ftrace_graph_write()
6551 read = trace_get_user(parser, ubuf, cnt, ppos); in ftrace_graph_write()
6871 int cnt = 0; in referenced_filters() local
6879 cnt++; in referenced_filters()
6882 if (cnt == 1 && ops->trampoline) in referenced_filters()
6889 return cnt; in referenced_filters()
7043 int cnt; in ftrace_module_enable() local
7061 cnt = 0; in ftrace_module_enable()
7070 cnt += referenced_filters(rec); in ftrace_module_enable()
7073 rec->flags += cnt; in ftrace_module_enable()
7075 if (ftrace_start_up && cnt) { in ftrace_module_enable()
7949 size_t cnt, loff_t *ppos, int type) in pid_write() argument
7958 if (!cnt) in pid_write()
7982 ret = trace_pid_write(filtered_pids, &pid_list, ubuf, cnt); in pid_write()
8024 size_t cnt, loff_t *ppos) in ftrace_pid_write() argument
8026 return pid_write(filp, ubuf, cnt, ppos, TRACE_PIDS); in ftrace_pid_write()
8031 size_t cnt, loff_t *ppos) in ftrace_no_pid_write() argument
8033 return pid_write(filp, ubuf, cnt, ppos, TRACE_NO_PIDS); in ftrace_no_pid_write()
8299 size_t cnt; member
8310 sym = bsearch(&name, args->syms, args->cnt, sizeof(*args->syms), symbols_cmp); in kallsyms_callback()
8323 return args->found == args->cnt ? 1 : 0; in kallsyms_callback()
8342 int ftrace_lookup_symbols(const char **sorted_syms, size_t cnt, unsigned long *addrs) in ftrace_lookup_symbols() argument
8347 memset(addrs, 0, sizeof(*addrs) * cnt); in ftrace_lookup_symbols()
8350 args.cnt = cnt; in ftrace_lookup_symbols()
8355 return args.found == args.cnt ? 0 : -ESRCH; in ftrace_lookup_symbols()