Home
last modified time | relevance | path

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

123

/kernel/
Dkallsyms.c127 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument
136 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
144 for (i = 0; i < (pos & 0xFF); i++) in get_symbol_offset()
316 unsigned long pos; in kallsyms_lookup_buildid() local
318 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup_buildid()
320 kallsyms_expand_symbol(get_symbol_offset(pos), in kallsyms_lookup_buildid()
371 unsigned long pos; in lookup_symbol_name() local
373 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name()
375 kallsyms_expand_symbol(get_symbol_offset(pos), in lookup_symbol_name()
398 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.c660 loff_t pos = *ppos; in m_start() local
664 if (pos >= extents) in m_start()
668 return &map->extent[pos]; in m_start()
670 return &map->forward[pos]; in m_start()
694 static void *m_next(struct seq_file *seq, void *v, loff_t *pos) in m_next() argument
696 (*pos)++; in m_next()
697 return seq->op->start(seq, pos); in m_next()
926 char *kbuf = NULL, *pos, *next_line; in map_write() local
974 pos = kbuf; in map_write()
975 for (; pos; pos = next_line) { in map_write()
[all …]
/kernel/gcov/
Dgcc_4_7.c391 size_t pos = 0; in convert_to_gcda() local
394 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
395 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
396 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda()
400 pos += store_gcov_u32(buffer, pos, 0); in convert_to_gcda()
407 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
408 pos += store_gcov_u32(buffer, pos, in convert_to_gcda()
410 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
411 pos += store_gcov_u32(buffer, pos, fi_ptr->lineno_checksum); in convert_to_gcda()
412 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda()
[all …]
Dclang.c371 size_t pos = 0; in convert_to_gcda() local
374 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda()
375 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda()
376 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda()
381 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda()
382 pos += store_gcov_u32(buffer, pos, 3); in convert_to_gcda()
383 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda()
384 pos += store_gcov_u32(buffer, pos, fi_ptr->checksum); in convert_to_gcda()
385 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda()
386 pos += store_gcov_u32(buffer, pos, GCOV_TAG_COUNTER_BASE); in convert_to_gcda()
[all …]
Dfs.c101 loff_t pos; member
155 iter->pos = 0; in gcov_iter_start()
166 if (iter->pos < iter->size) in gcov_iter_next()
167 iter->pos += ITER_STRIDE; in gcov_iter_next()
169 if (iter->pos >= iter->size) in gcov_iter_next()
186 if (iter->pos >= iter->size) in gcov_iter_write()
190 if (iter->pos + len > iter->size) in gcov_iter_write()
191 len = iter->size - iter->pos; in gcov_iter_write()
193 seq_write(seq, iter->buffer + iter->pos, len); in gcov_iter_write()
204 static void *gcov_seq_start(struct seq_file *seq, loff_t *pos) in gcov_seq_start() argument
[all …]
/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
265 static const char **find_next(void *v, loff_t *pos) in find_next() argument
273 if (*pos < start_index) in find_next()
[all …]
Dtrace_dynevent.c74 struct dyn_event *pos, *n; in dyn_event_release() local
110 for_each_dyn_event_safe(pos, n) { in dyn_event_release()
111 if (type && type != pos->ops) in dyn_event_release()
113 if (!pos->ops->match(system, event, in dyn_event_release()
114 argc - 1, (const char **)argv + 1, pos)) in dyn_event_release()
117 ret = pos->ops->free(pos); in dyn_event_release()
152 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos) in dyn_event_seq_start() argument
155 return seq_list_start(&dyn_event_list, *pos); in dyn_event_seq_start()
158 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos) in dyn_event_seq_next() argument
160 return seq_list_next(v, &dyn_event_list, pos); in dyn_event_seq_next()
Dtrace_dynevent.h98 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos);
99 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos);
111 #define for_each_dyn_event(pos) \ argument
112 list_for_each_entry(pos, &dyn_event_list, list)
119 #define for_each_dyn_event_safe(pos, n) \ argument
120 list_for_each_entry_safe(pos, n, &dyn_event_list, list)
Dtrace_probe.c168 int i, len = 0, pos = 0; in __trace_probe_log_err() local
176 pos = len; in __trace_probe_log_err()
189 pos = len; in __trace_probe_log_err()
204 trace_probe_err_text, err_type, pos + offset); in __trace_probe_log_err()
885 #define LEN_OR_ZERO (len ? len - pos : 0)
891 int pos = 0; in __set_print_fmt() local
912 pos += snprintf(buf + pos, LEN_OR_ZERO, "\"%s", fmt); in __set_print_fmt()
916 pos += snprintf(buf + pos, LEN_OR_ZERO, " %s=", parg->name); in __set_print_fmt()
918 pos += snprintf(buf + pos, LEN_OR_ZERO, "{%s", in __set_print_fmt()
921 pos += snprintf(buf + pos, LEN_OR_ZERO, ",%s", in __set_print_fmt()
[all …]
Dtrace_stack.c376 __next(struct seq_file *m, loff_t *pos) in __next() argument
378 long n = *pos - 1; in __next()
388 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument
390 (*pos)++; in t_next()
391 return __next(m, pos); in t_next()
394 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument
402 if (*pos == 0) in t_start()
405 return __next(m, pos); in t_start()
Dtrace_recursion_record.c121 static void *recursed_function_seq_start(struct seq_file *m, loff_t *pos) in recursed_function_seq_start() argument
128 if (*pos < index) { in recursed_function_seq_start()
129 ret = &recursed_functions[*pos]; in recursed_function_seq_start()
141 static void *recursed_function_seq_next(struct seq_file *m, void *v, loff_t *pos) in recursed_function_seq_next() argument
147 p = ++(*pos); in recursed_function_seq_next()
Dtrace_uprobe.c82 #define for_each_trace_uprobe(pos, dpos) \ argument
84 if (is_trace_uprobe(dpos) && (pos = to_trace_uprobe(dpos)))
375 struct dyn_event *pos; in find_probe_event() local
378 for_each_trace_uprobe(tu, pos) in find_probe_event()
413 struct trace_probe *pos; in trace_uprobe_has_same_uprobe() local
417 list_for_each_entry(pos, &tpe->probes, list) { in trace_uprobe_has_same_uprobe()
418 orig = container_of(pos, struct trace_uprobe, tp); in trace_uprobe_has_same_uprobe()
476 struct dyn_event *pos; in validate_ref_ctr_offset() local
480 for_each_trace_uprobe(tmp, pos) { in validate_ref_ctr_offset()
1079 struct trace_probe *pos; in __probe_event_disable() local
[all …]
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 …]
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()
/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()
131 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/printk/
Dindex.c20 static struct pi_entry *pi_get_entry(const struct module *mod, loff_t pos) in pi_get_entry() argument
38 if (pos >= nr_entries) in pi_get_entry()
41 return entries[pos]; in pi_get_entry()
44 static void *pi_next(struct seq_file *s, void *v, loff_t *pos) in pi_next() argument
47 struct pi_entry *entry = pi_get_entry(mod, *pos); in pi_next()
49 (*pos)++; in pi_next()
54 static void *pi_start(struct seq_file *s, loff_t *pos) in pi_start() argument
60 if (*pos == 0) in pi_start()
63 return pi_next(s, NULL, pos); in pi_start()
/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()
128 static void *lc_start(struct seq_file *m, loff_t *pos) in lc_start() argument
130 if (*pos < 0) in lc_start()
133 if (*pos == 0) in lc_start()
136 return lock_chains + (*pos - 1); in lc_start()
139 static void *lc_next(struct seq_file *m, void *v, loff_t *pos) in lc_next() argument
[all …]
Dww_mutex.h53 __ww_waiter_add(struct mutex *lock, struct mutex_waiter *waiter, struct mutex_waiter *pos) in __ww_waiter_add() argument
56 if (pos) in __ww_waiter_add()
57 p = &pos->list; in __ww_waiter_add()
130 __ww_waiter_add(struct rt_mutex *lock, struct rt_mutex_waiter *waiter, struct rt_mutex_waiter *pos) in __ww_waiter_add() argument
493 struct MUTEX_WAITER *cur, *pos = NULL; in __ww_mutex_add_waiter() local
532 pos = cur; in __ww_mutex_add_waiter()
538 __ww_waiter_add(lock, waiter, pos); in __ww_mutex_add_waiter()
/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()
195 static void *task_file_seq_start(struct seq_file *seq, loff_t *pos) in task_file_seq_start() argument
202 if (file && *pos == 0) in task_file_seq_start()
203 ++*pos; in task_file_seq_start()
208 static void *task_file_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_file_seq_next() argument
212 ++*pos; in task_file_seq_next()
[all …]
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()
/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()

123