Home
last modified time | relevance | path

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

123

/kernel/
Dkallsyms.c124 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument
133 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
141 for (i = 0; i < (pos & 0xFF); i++) in get_symbol_offset()
315 unsigned long pos; in kallsyms_lookup() local
317 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup()
319 kallsyms_expand_symbol(get_symbol_offset(pos), in kallsyms_lookup()
352 unsigned long pos; in lookup_symbol_name() local
354 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name()
356 kallsyms_expand_symbol(get_symbol_offset(pos), in lookup_symbol_name()
379 unsigned long pos; in lookup_symbol_attrs() local
[all …]
Dsysctl-test.c42 loff_t pos; in sysctl_test_api_dointvec_null_tbl_data() local
51 &pos)); in sysctl_test_api_dointvec_null_tbl_data()
60 &pos)); in sysctl_test_api_dointvec_null_tbl_data()
88 loff_t pos; in sysctl_test_api_dointvec_table_maxlen_unset() local
97 &pos)); in sysctl_test_api_dointvec_table_maxlen_unset()
106 &pos)); in sysctl_test_api_dointvec_table_maxlen_unset()
134 loff_t pos; in sysctl_test_api_dointvec_table_len_is_zero() local
137 &len, &pos)); in sysctl_test_api_dointvec_table_len_is_zero()
141 &len, &pos)); in sysctl_test_api_dointvec_table_len_is_zero()
173 loff_t pos = 1; in sysctl_test_api_dointvec_table_read_but_position_set() local
[all …]
Duser_namespace.c644 loff_t pos = *ppos; in m_start() local
648 if (pos >= extents) in m_start()
652 return &map->extent[pos]; in m_start()
654 return &map->forward[pos]; in m_start()
678 static void *m_next(struct seq_file *seq, void *v, loff_t *pos) in m_next() argument
680 (*pos)++; in m_next()
681 return seq->op->start(seq, pos); in m_next()
910 char *kbuf = NULL, *pos, *next_line; in map_write() local
958 pos = kbuf; in map_write()
959 for (; pos; pos = next_line) { in map_write()
[all …]
Dtracepoint.c186 int pos = -1; in func_add() local
197 if (pos < 0 && old[nr_probes].prio < prio) in func_add()
198 pos = nr_probes; in func_add()
215 pos = -1; in func_add()
219 if (pos < 0 && old[nr_probes].prio < prio) in func_add()
220 pos = probes++; in func_add()
224 if (pos < 0) in func_add()
225 pos = probes; in func_add()
229 } else if (pos < 0) { in func_add()
230 pos = nr_probes; in func_add()
[all …]
/kernel/gcov/
Dgcc_4_7.c393 loff_t pos; member
459 size_t pos = 0; in convert_to_gcda() local
462 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
463 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
464 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda()
468 pos += store_gcov_u32(buffer, pos, 0); in convert_to_gcda()
475 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
476 pos += store_gcov_u32(buffer, pos, in convert_to_gcda()
478 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
479 pos += store_gcov_u32(buffer, pos, fi_ptr->lineno_checksum); in convert_to_gcda()
[all …]
Dclang.c467 loff_t pos; member
529 size_t pos = 0; in convert_to_gcda() local
532 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
533 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
534 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda()
539 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
541 pos += store_gcov_u32(buffer, pos, in convert_to_gcda()
544 pos += store_gcov_u32(buffer, pos, 3); in convert_to_gcda()
546 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
547 pos += store_gcov_u32(buffer, pos, fi_ptr->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
111 (*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()
103 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos) in dyn_event_seq_start() argument
106 return seq_list_start(&dyn_event_list, *pos); in dyn_event_seq_start()
109 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos) in dyn_event_seq_next() argument
111 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()
841 #define LEN_OR_ZERO (len ? len - pos : 0)
847 int pos = 0; in __set_print_fmt() local
858 pos += snprintf(buf + pos, LEN_OR_ZERO, "\"%s", fmt); in __set_print_fmt()
862 pos += snprintf(buf + pos, LEN_OR_ZERO, " %s=", parg->name); in __set_print_fmt()
864 pos += snprintf(buf + pos, LEN_OR_ZERO, "{%s", in __set_print_fmt()
867 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_uprobe.c82 #define for_each_trace_uprobe(pos, dpos) \ argument
84 if (is_trace_uprobe(dpos) && (pos = to_trace_uprobe(dpos)))
378 struct dyn_event *pos; in find_probe_event() local
381 for_each_trace_uprobe(tu, pos) in find_probe_event()
412 struct trace_probe *pos; in trace_uprobe_has_same_uprobe() local
416 list_for_each_entry(pos, &tpe->probes, list) { in trace_uprobe_has_same_uprobe()
417 orig = container_of(pos, struct trace_uprobe, tp); in trace_uprobe_has_same_uprobe()
475 struct dyn_event *pos; in validate_ref_ctr_offset() local
479 for_each_trace_uprobe(tmp, pos) { in validate_ref_ctr_offset()
1078 struct trace_probe *pos; in __probe_event_disable() local
[all …]
Dtrace_syscalls.c215 int pos = 0; in __set_enter_print_fmt() local
218 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_enter_print_fmt()
220 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt()
222 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s: 0x%%0%zulx%s", in __set_enter_print_fmt()
226 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt()
229 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_enter_print_fmt()
236 return pos; in __set_enter_print_fmt()
Dtrace_events_filter.c134 static void parse_error(struct filter_parse_error *pe, int err, int pos) in parse_error() argument
137 pe->lasterr_pos = pos; in parse_error()
140 typedef int (*parse_pred_fn)(const char *str, void *data, int pos,
1005 int pos = pe->lasterr_pos; in append_filter_err() local
1018 if (pos > len) in append_filter_err()
1019 pos = len; in append_filter_err()
1022 if (pos) in append_filter_err()
1023 pos++; in append_filter_err()
1027 trace_seq_printf(s, "\n%*s", pos, "^"); in append_filter_err()
1224 int pos, struct filter_parse_error *pe, in parse_pred() argument
[all …]
Dftrace.c3261 loff_t pos; member
3279 t_probe_next(struct seq_file *m, loff_t *pos) in t_probe_next() argument
3290 (*pos)++; in t_probe_next()
3291 iter->pos = *pos; in t_probe_next()
3356 static void *t_probe_start(struct seq_file *m, loff_t *pos) in t_probe_start() argument
3365 if (iter->mod_pos > *pos) in t_probe_start()
3371 for (l = 0; l <= (*pos - iter->mod_pos); ) { in t_probe_start()
3410 t_mod_next(struct seq_file *m, loff_t *pos) in t_mod_next() argument
3415 (*pos)++; in t_mod_next()
3416 iter->pos = *pos; in t_mod_next()
[all …]
Dtrace_events_synth.c524 int pos = 0; in __set_synth_event_print_fmt() local
528 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_synth_event_print_fmt()
530 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_synth_event_print_fmt()
533 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s=%s%s", in __set_synth_event_print_fmt()
537 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_synth_event_print_fmt()
542 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_synth_event_print_fmt()
545 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_synth_event_print_fmt()
552 return pos; in __set_synth_event_print_fmt()
732 struct dyn_event *pos; in find_synth_event() local
735 for_each_dyn_event(pos) { in find_synth_event()
[all …]
/kernel/cgroup/
Drstat.c83 static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, in cgroup_rstat_cpu_pop_updated() argument
88 if (pos == root) in cgroup_rstat_cpu_pop_updated()
95 if (!pos) in cgroup_rstat_cpu_pop_updated()
96 pos = root; in cgroup_rstat_cpu_pop_updated()
98 pos = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
102 rstatc = cgroup_rstat_cpu(pos, cpu); in cgroup_rstat_cpu_pop_updated()
103 if (rstatc->updated_children == pos) in cgroup_rstat_cpu_pop_updated()
105 pos = rstatc->updated_children; in cgroup_rstat_cpu_pop_updated()
115 struct cgroup *parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
123 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 …]
/kernel/locking/
Dlockdep_proc.c38 static void *l_next(struct seq_file *m, void *v, loff_t *pos) in l_next() argument
43 *pos = class - lock_classes; in l_next()
44 return (*pos > max_lock_class_idx) ? NULL : class; in l_next()
47 static void *l_start(struct seq_file *m, loff_t *pos) in l_start() argument
49 unsigned long idx = *pos; in l_start()
126 static void *lc_start(struct seq_file *m, loff_t *pos) in lc_start() argument
128 if (*pos < 0) in lc_start()
131 if (*pos == 0) in lc_start()
134 return lock_chains + (*pos - 1); in lc_start()
137 static void *lc_next(struct seq_file *m, void *v, loff_t *pos) in lc_next() argument
[all …]
/kernel/bpf/preload/
Dbpf_preload_kern.c26 loff_t pos = 0; in preload() local
36 &magic, sizeof(magic), &pos); in preload()
41 pos = 0; in preload()
44 &obj[i], sizeof(*obj), &pos); in preload()
55 loff_t pos = 0; in finish() local
60 &magic, sizeof(magic), &pos); in finish()
/kernel/bpf/
Dtask_iter.c53 static void *task_seq_start(struct seq_file *seq, loff_t *pos) in task_seq_start() argument
62 if (*pos == 0) in task_seq_start()
63 ++*pos; in task_seq_start()
67 static void *task_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_seq_next() argument
72 ++*pos; in task_seq_next()
211 static void *task_file_seq_start(struct seq_file *seq, loff_t *pos) in task_file_seq_start() argument
219 if (file && *pos == 0) in task_file_seq_start()
220 ++*pos; in task_file_seq_start()
225 static void *task_file_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_file_seq_next() argument
229 ++*pos; in task_file_seq_next()
Dprog_iter.c13 static void *bpf_prog_seq_start(struct seq_file *seq, loff_t *pos) in bpf_prog_seq_start() argument
22 if (*pos == 0) in bpf_prog_seq_start()
23 ++*pos; in bpf_prog_seq_start()
27 static void *bpf_prog_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_prog_seq_next() argument
31 ++*pos; in bpf_prog_seq_next()
Dmap_iter.c13 static void *bpf_map_seq_start(struct seq_file *seq, loff_t *pos) in bpf_map_seq_start() argument
22 if (*pos == 0) in bpf_map_seq_start()
23 ++*pos; in bpf_map_seq_start()
27 static void *bpf_map_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_map_seq_next() argument
31 ++*pos; in bpf_map_seq_next()
Dnet_namespace.c68 struct bpf_netns_link *pos; in link_index() local
71 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
72 if (pos == link) in link_index()
81 struct list_head *pos; in link_count() local
84 list_for_each(pos, &net->bpf.links[type]) in link_count()
92 struct bpf_netns_link *pos; in fill_prog_array() local
95 list_for_each_entry(pos, &net->bpf.links[type], node) { in fill_prog_array()
96 prog_array->items[i].prog = pos->link.prog; in fill_prog_array()

123