Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 53) sorted by relevance

123

/kernel/
Dkallsyms.c122 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument
131 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
139 for (i = 0; i < (pos & 0xFF); i++) in get_symbol_offset()
310 unsigned long pos; in kallsyms_lookup() local
312 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup()
314 kallsyms_expand_symbol(get_symbol_offset(pos), in kallsyms_lookup()
347 unsigned long pos; in lookup_symbol_name() local
349 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name()
351 kallsyms_expand_symbol(get_symbol_offset(pos), in lookup_symbol_name()
374 unsigned long pos; in lookup_symbol_attrs() local
[all …]
Duser_namespace.c643 loff_t pos = *ppos; in m_start() local
647 if (pos >= extents) in m_start()
651 return &map->extent[pos]; in m_start()
653 return &map->forward[pos]; in m_start()
677 static void *m_next(struct seq_file *seq, void *v, loff_t *pos) in m_next() argument
679 (*pos)++; in m_next()
680 return seq->op->start(seq, pos); in m_next()
855 char *kbuf = NULL, *pos, *next_line; in map_write() local
903 pos = kbuf; in map_write()
904 for (; pos; pos = next_line) { in map_write()
[all …]
Dtracepoint.c134 int pos = -1; in func_add() local
145 if (pos < 0 && old[nr_probes].prio < prio) in func_add()
146 pos = nr_probes; in func_add()
157 if (pos < 0) { in func_add()
158 pos = nr_probes; in func_add()
162 memcpy(new, old, pos * sizeof(struct tracepoint_func)); in func_add()
164 memcpy(new + pos + 1, old + pos, in func_add()
165 (nr_probes - pos) * sizeof(struct tracepoint_func)); in func_add()
168 pos = 0; in func_add()
169 new[pos] = *tp_func; in func_add()
Dsysctl_binary.c920 loff_t pos = 0; in bin_string() local
923 result = vfs_read(file, oldval, oldlen, &pos); in bin_string()
944 loff_t pos = 0; in bin_string() local
946 result = vfs_write(file, newval, newlen, &pos); in bin_string()
973 loff_t pos = 0; in bin_intvec() local
975 result = kernel_read(file, buffer, BUFSZ - 1, &pos); in bin_intvec()
1004 loff_t pos = 0; in bin_intvec() local
1018 result = kernel_write(file, buffer, str - buffer, &pos); in bin_intvec()
1046 loff_t pos = 0; in bin_ulongvec() local
1048 result = kernel_read(file, buffer, BUFSZ - 1, &pos); in bin_ulongvec()
[all …]
Dkcov.c120 struct list_head *pos; in kcov_remote_area_get() local
123 list_for_each(pos, &kcov_remote_areas) { in kcov_remote_area_get()
124 area = list_entry(pos, struct kcov_remote_area, list); in kcov_remote_area_get()
184 unsigned long pos; in __sanitizer_cov_trace_pc() local
192 pos = READ_ONCE(area[0]) + 1; in __sanitizer_cov_trace_pc()
193 if (likely(pos < t->kcov_size)) { in __sanitizer_cov_trace_pc()
194 area[pos] = ip; in __sanitizer_cov_trace_pc()
195 WRITE_ONCE(area[0], pos); in __sanitizer_cov_trace_pc()
Dfail_function.c186 static void *fei_seq_start(struct seq_file *m, loff_t *pos) in NOKPROBE_SYMBOL()
189 return seq_list_start(&fei_attr_list, *pos); in NOKPROBE_SYMBOL()
197 static void *fei_seq_next(struct seq_file *m, void *v, loff_t *pos) in fei_seq_next() argument
199 return seq_list_next(v, &fei_attr_list, pos); in fei_seq_next()
/kernel/gcov/
Dgcc_4_7.c379 loff_t pos; member
445 size_t pos = 0; in convert_to_gcda() local
448 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
449 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
450 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda()
456 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
457 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION_LENGTH); in convert_to_gcda()
458 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
459 pos += store_gcov_u32(buffer, pos, fi_ptr->lineno_checksum); in convert_to_gcda()
460 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda()
[all …]
Dclang.c392 loff_t pos; member
454 size_t pos = 0; in convert_to_gcda() local
457 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
458 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
459 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda()
468 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
469 pos += store_gcov_u32(buffer, pos, len); in convert_to_gcda()
470 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
471 pos += store_gcov_u32(buffer, pos, fi_ptr->checksum); in convert_to_gcda()
473 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda()
[all …]
Dfs.c94 static void *gcov_seq_start(struct seq_file *seq, loff_t *pos) in gcov_seq_start() argument
99 for (i = 0; i < *pos; i++) { in gcov_seq_start()
107 static void *gcov_seq_next(struct seq_file *seq, void *data, loff_t *pos) in gcov_seq_next() argument
113 (*pos)++; in gcov_seq_next()
273 size_t len, loff_t *pos) in gcov_seq_write() argument
526 size_t len, loff_t *pos) in reset_write() argument
548 loff_t *pos) in reset_read() argument
/kernel/trace/
Dtrace_printk.c40 struct trace_bprintk_fmt *pos; in lookup_format() local
45 list_for_each_entry(pos, &trace_bprintk_fmt_list, list) { in lookup_format()
46 if (!strcmp(pos->fmt, fmt)) in lookup_format()
47 return pos; in lookup_format()
123 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument
136 if (!v || start_index == *pos) { in find_next_mod_format()
141 if (start_index == *pos) in find_next_mod_format()
180 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument
254 static const char **find_next(void *v, loff_t *pos) in find_next() argument
262 if (*pos < start_index) in find_next()
[all …]
Dtrace_dynevent.c36 struct dyn_event *pos, *n; in dyn_event_release() local
62 for_each_dyn_event_safe(pos, n) { in dyn_event_release()
63 if (type && type != pos->ops) in dyn_event_release()
65 if (!pos->ops->match(system, event, in dyn_event_release()
66 argc, (const char **)argv, pos)) in dyn_event_release()
69 ret = pos->ops->free(pos); in dyn_event_release()
102 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos) in dyn_event_seq_start() argument
105 return seq_list_start(&dyn_event_list, *pos); in dyn_event_seq_start()
108 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos) in dyn_event_seq_next() argument
110 return seq_list_next(v, &dyn_event_list, pos); in dyn_event_seq_next()
Dtrace_dynevent.h96 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos);
97 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos);
109 #define for_each_dyn_event(pos) \ argument
110 list_for_each_entry(pos, &dyn_event_list, list)
117 #define for_each_dyn_event_safe(pos, n) \ argument
118 list_for_each_entry_safe(pos, n, &dyn_event_list, list)
Dtrace_probe.c166 int i, len = 0, pos = 0; in __trace_probe_log_err() local
174 pos = len; in __trace_probe_log_err()
187 pos = len; in __trace_probe_log_err()
202 trace_probe_err_text, err_type, pos + offset); in __trace_probe_log_err()
840 #define LEN_OR_ZERO (len ? len - pos : 0)
846 int pos = 0; in __set_print_fmt() local
857 pos += snprintf(buf + pos, LEN_OR_ZERO, "\"%s", fmt); in __set_print_fmt()
861 pos += snprintf(buf + pos, LEN_OR_ZERO, " %s=", parg->name); in __set_print_fmt()
863 pos += snprintf(buf + pos, LEN_OR_ZERO, "{%s", in __set_print_fmt()
866 pos += snprintf(buf + pos, LEN_OR_ZERO, ",%s", in __set_print_fmt()
[all …]
Dtrace_stack.c377 __next(struct seq_file *m, loff_t *pos) in __next() argument
379 long n = *pos - 1; in __next()
389 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument
391 (*pos)++; in t_next()
392 return __next(m, pos); in t_next()
395 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument
403 if (*pos == 0) in t_start()
406 return __next(m, pos); in t_start()
Dtrace_events_filter.c133 static void parse_error(struct filter_parse_error *pe, int err, int pos) in parse_error() argument
136 pe->lasterr_pos = pos; in parse_error()
139 typedef int (*parse_pred_fn)(const char *str, void *data, int pos,
934 int pos = pe->lasterr_pos; in append_filter_err() local
947 if (pos > len) in append_filter_err()
948 pos = len; in append_filter_err()
951 if (pos) in append_filter_err()
952 pos++; in append_filter_err()
956 trace_seq_printf(s, "\n%*s", pos, "^"); in append_filter_err()
1153 int pos, struct filter_parse_error *pe, in parse_pred() argument
[all …]
Dtrace_uprobe.c88 #define for_each_trace_uprobe(pos, dpos) \ argument
90 if (is_trace_uprobe(dpos) && (pos = to_trace_uprobe(dpos)))
392 struct dyn_event *pos; in find_probe_event() local
395 for_each_trace_uprobe(tu, pos) in find_probe_event()
426 struct trace_probe *pos; in trace_uprobe_has_same_uprobe() local
430 list_for_each_entry(pos, &tpe->probes, list) { in trace_uprobe_has_same_uprobe()
431 orig = container_of(pos, struct trace_uprobe, tp); in trace_uprobe_has_same_uprobe()
489 struct dyn_event *pos; in validate_ref_ctr_offset() local
493 for_each_trace_uprobe(tmp, pos) { in validate_ref_ctr_offset()
1075 struct trace_probe *pos; in __probe_event_disable() local
[all …]
Dtrace_syscalls.c211 int pos = 0; in __set_enter_print_fmt() local
214 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_enter_print_fmt()
216 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt()
218 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s: 0x%%0%zulx%s", in __set_enter_print_fmt()
222 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt()
225 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_enter_print_fmt()
232 return pos; in __set_enter_print_fmt()
Dtrace_kprobe.c79 #define for_each_trace_kprobe(pos, dpos) \ argument
81 if (is_trace_kprobe(dpos) && (pos = to_trace_kprobe(dpos)))
307 struct dyn_event *pos; in find_trace_kprobe() local
310 for_each_trace_kprobe(tk, pos) in find_trace_kprobe()
333 struct trace_probe *pos; in __disable_trace_kprobe() local
336 list_for_each_entry(pos, trace_probe_probe_list(tp), list) { in __disable_trace_kprobe()
337 tk = container_of(pos, struct trace_kprobe, tp); in __disable_trace_kprobe()
354 struct trace_probe *pos, *tp; in enable_trace_kprobe() local
375 list_for_each_entry(pos, trace_probe_probe_list(tp), list) { in enable_trace_kprobe()
376 tk = container_of(pos, struct trace_kprobe, tp); in enable_trace_kprobe()
[all …]
Dftrace.c3051 loff_t pos; member
3069 t_probe_next(struct seq_file *m, loff_t *pos) in t_probe_next() argument
3080 (*pos)++; in t_probe_next()
3081 iter->pos = *pos; in t_probe_next()
3146 static void *t_probe_start(struct seq_file *m, loff_t *pos) in t_probe_start() argument
3155 if (iter->mod_pos > *pos) in t_probe_start()
3161 for (l = 0; l <= (*pos - iter->mod_pos); ) { in t_probe_start()
3200 t_mod_next(struct seq_file *m, loff_t *pos) in t_mod_next() argument
3205 (*pos)++; in t_mod_next()
3206 iter->pos = *pos; in t_mod_next()
[all …]
Dtrace_stat.c173 static void *stat_seq_start(struct seq_file *s, loff_t *pos) in stat_seq_start() argument
177 int n = *pos; in stat_seq_start()
197 static void *stat_seq_next(struct seq_file *s, void *p, loff_t *pos) in stat_seq_next() argument
202 (*pos)++; in stat_seq_next()
/kernel/cgroup/
Drstat.c87 static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, in cgroup_rstat_cpu_pop_updated() argument
92 if (pos == root) in cgroup_rstat_cpu_pop_updated()
99 if (!pos) in cgroup_rstat_cpu_pop_updated()
100 pos = root; in cgroup_rstat_cpu_pop_updated()
102 pos = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
106 rstatc = cgroup_rstat_cpu(pos, cpu); in cgroup_rstat_cpu_pop_updated()
107 if (rstatc->updated_children == pos) in cgroup_rstat_cpu_pop_updated()
109 pos = rstatc->updated_children; in cgroup_rstat_cpu_pop_updated()
119 struct cgroup *parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
127 if (*nextp == pos) in cgroup_rstat_cpu_pop_updated()
[all …]
Dlegacy_freezer.c247 struct cgroup_subsys_state *pos; in update_if_frozen() local
259 css_for_each_child(pos, css) { in update_if_frozen()
260 struct freezer *child = css_freezer(pos); in update_if_frozen()
293 struct cgroup_subsys_state *css = seq_css(m), *pos; in freezer_read() local
299 css_for_each_descendant_post(pos, css) { in freezer_read()
300 if (!css_tryget_online(pos)) in freezer_read()
304 update_if_frozen(pos); in freezer_read()
307 css_put(pos); in freezer_read()
387 struct cgroup_subsys_state *pos; in freezer_change_state() local
396 css_for_each_descendant_pre(pos, &freezer->css) { in freezer_change_state()
[all …]
Dcgroup.c857 struct css_task_iter *it, *pos; in css_set_skip_task_iters() local
859 list_for_each_entry_safe(it, pos, &cset->task_iters, iters_node) in css_set_skip_task_iters()
4179 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos, in css_next_child() argument
4206 if (!pos) { in css_next_child()
4208 } else if (likely(!(pos->flags & CSS_RELEASED))) { in css_next_child()
4209 next = list_entry_rcu(pos->sibling.next, struct cgroup_subsys_state, sibling); in css_next_child()
4212 if (next->serial_nr > pos->serial_nr) in css_next_child()
4247 css_next_descendant_pre(struct cgroup_subsys_state *pos, in css_next_descendant_pre() argument
4255 if (!pos) in css_next_descendant_pre()
4259 next = css_next_child(NULL, pos); in css_next_descendant_pre()
[all …]
/kernel/locking/
Dlockdep_proc.c27 static void *l_next(struct seq_file *m, void *v, loff_t *pos) in l_next() argument
29 return seq_list_next(v, &all_lock_classes, pos); in l_next()
32 static void *l_start(struct seq_file *m, loff_t *pos) in l_start() argument
34 return seq_list_start_head(&all_lock_classes, *pos); in l_start()
105 static void *lc_start(struct seq_file *m, loff_t *pos) in lc_start() argument
107 if (*pos < 0) in lc_start()
110 if (*pos == 0) in lc_start()
113 return lock_chains + (*pos - 1); in lc_start()
116 static void *lc_next(struct seq_file *m, void *v, loff_t *pos) in lc_next() argument
118 *pos = lockdep_next_lockchain(*pos - 1) + 1; in lc_next()
[all …]
/kernel/irq/
Dproc.c116 const char __user *buffer, size_t count, loff_t *pos) in write_irq_affinity() argument
158 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_proc_write() argument
160 return write_irq_affinity(0, file, buffer, count, pos); in irq_affinity_proc_write()
164 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_list_proc_write() argument
166 return write_irq_affinity(1, file, buffer, count, pos); in irq_affinity_list_proc_write()

123