Home
last modified time | relevance | path

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

1234

/kernel/
Dkallsyms.c116 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument
125 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
133 for (i = 0; i < (pos & 0xFF); i++) { in get_symbol_offset()
411 unsigned long pos; in kallsyms_lookup_buildid() local
413 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup_buildid()
415 kallsyms_expand_symbol(get_symbol_offset(pos), in kallsyms_lookup_buildid()
466 unsigned long pos; in lookup_symbol_name() local
468 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name()
470 kallsyms_expand_symbol(get_symbol_offset(pos), in lookup_symbol_name()
493 unsigned long pos; in lookup_symbol_attrs() local
[all …]
Dsysctl-test.c39 loff_t pos; in sysctl_test_api_dointvec_null_tbl_data() local
48 &pos)); in sysctl_test_api_dointvec_null_tbl_data()
57 &pos)); in sysctl_test_api_dointvec_null_tbl_data()
85 loff_t pos; in sysctl_test_api_dointvec_table_maxlen_unset() local
94 &pos)); in sysctl_test_api_dointvec_table_maxlen_unset()
103 &pos)); in sysctl_test_api_dointvec_table_maxlen_unset()
131 loff_t pos; in sysctl_test_api_dointvec_table_len_is_zero() local
134 &len, &pos)); in sysctl_test_api_dointvec_table_len_is_zero()
138 &len, &pos)); in sysctl_test_api_dointvec_table_len_is_zero()
170 loff_t pos = 1; in sysctl_test_api_dointvec_table_read_but_position_set() local
[all …]
Duser_namespace.c665 loff_t pos = *ppos; in m_start() local
669 if (pos >= extents) in m_start()
673 return &map->extent[pos]; in m_start()
675 return &map->forward[pos]; in m_start()
699 static void *m_next(struct seq_file *seq, void *v, loff_t *pos) in m_next() argument
701 (*pos)++; in m_next()
702 return seq->op->start(seq, pos); in m_next()
931 char *kbuf = NULL, *pos, *next_line; in map_write() local
979 pos = kbuf; in map_write()
980 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_events_user.c673 #define LEN_OR_ZERO (len ? len - pos : 0)
677 int pos = 0, i = *iout; in user_dyn_field_set_string() local
683 pos += snprintf(buf + pos, LEN_OR_ZERO, " "); in user_dyn_field_set_string()
685 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", argv[i]); in user_dyn_field_set_string()
698 return pos + 1; in user_dyn_field_set_string()
704 int pos = 0; in user_field_set_string() local
706 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", field->type); in user_field_set_string()
707 pos += snprintf(buf + pos, LEN_OR_ZERO, " "); in user_field_set_string()
708 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", field->name); in user_field_set_string()
711 pos += snprintf(buf + pos, LEN_OR_ZERO, " %d", field->size); in user_field_set_string()
[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()
889 #define LEN_OR_ZERO (len ? len - pos : 0)
895 int pos = 0; in __set_print_fmt() local
916 pos += snprintf(buf + pos, LEN_OR_ZERO, "\"%s", fmt); in __set_print_fmt()
920 pos += snprintf(buf + pos, LEN_OR_ZERO, " %s=", parg->name); in __set_print_fmt()
922 pos += snprintf(buf + pos, LEN_OR_ZERO, "{%s", in __set_print_fmt()
925 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()
/kernel/cgroup/
Drstat.c91 static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, in cgroup_rstat_cpu_pop_updated() argument
97 if (pos == root) in cgroup_rstat_cpu_pop_updated()
104 if (!pos) { in cgroup_rstat_cpu_pop_updated()
105 pos = root; in cgroup_rstat_cpu_pop_updated()
107 if (!cgroup_rstat_cpu(pos, cpu)->updated_next) in cgroup_rstat_cpu_pop_updated()
110 pos = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
115 rstatc = cgroup_rstat_cpu(pos, cpu); in cgroup_rstat_cpu_pop_updated()
116 if (rstatc->updated_children == pos) in cgroup_rstat_cpu_pop_updated()
118 pos = rstatc->updated_children; in cgroup_rstat_cpu_pop_updated()
127 parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
[all …]
Dlegacy_freezer.c259 struct cgroup_subsys_state *pos; in update_if_frozen() local
271 css_for_each_child(pos, css) { in update_if_frozen()
272 struct freezer *child = css_freezer(pos); in update_if_frozen()
297 struct cgroup_subsys_state *css = seq_css(m), *pos; in freezer_read() local
303 css_for_each_descendant_post(pos, css) { in freezer_read()
304 if (!css_tryget_online(pos)) in freezer_read()
308 update_if_frozen(pos); in freezer_read()
311 css_put(pos); in freezer_read()
391 struct cgroup_subsys_state *pos; in freezer_change_state() local
401 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
37 if (pos >= nr_entries) in pi_get_entry()
40 return entries[pos]; in pi_get_entry()
43 static void *pi_next(struct seq_file *s, void *v, loff_t *pos) in pi_next() argument
46 struct pi_entry *entry = pi_get_entry(mod, *pos); in pi_next()
48 (*pos)++; in pi_next()
53 static void *pi_start(struct seq_file *s, loff_t *pos) in pi_start() argument
59 if (*pos == 0) in pi_start()
62 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/
Dlink_iter.c13 static void *bpf_link_seq_start(struct seq_file *seq, loff_t *pos) in bpf_link_seq_start() argument
22 if (*pos == 0) in bpf_link_seq_start()
23 ++*pos; in bpf_link_seq_start()
27 static void *bpf_link_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_link_seq_next() argument
31 ++*pos; in bpf_link_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()
Dtask_iter.c160 static void *task_seq_start(struct seq_file *seq, loff_t *pos) in task_seq_start() argument
169 if (*pos == 0) in task_seq_start()
170 ++*pos; in task_seq_start()
174 static void *task_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_seq_next() argument
179 ++*pos; in task_seq_next()
338 static void *task_file_seq_start(struct seq_file *seq, loff_t *pos) in task_file_seq_start() argument
345 if (file && *pos == 0) in task_file_seq_start()
346 ++*pos; in task_file_seq_start()
351 static void *task_file_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_file_seq_next() argument
355 ++*pos; in task_file_seq_next()
[all …]
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()
/kernel/module/
Dprocfs.c49 static void *m_start(struct seq_file *m, loff_t *pos) in m_start() argument
52 return seq_list_start(&modules, *pos); in m_start()
55 static void *m_next(struct seq_file *m, void *p, loff_t *pos) in m_next() argument
57 return seq_list_next(p, &modules, pos); in m_next()
Dtracking.c68 static void *unloaded_tainted_modules_seq_start(struct seq_file *m, loff_t *pos) in unloaded_tainted_modules_seq_start() argument
72 return seq_list_start_rcu(&unloaded_tainted_modules, *pos); in unloaded_tainted_modules_seq_start()
75 static void *unloaded_tainted_modules_seq_next(struct seq_file *m, void *p, loff_t *pos) in unloaded_tainted_modules_seq_next() argument
77 return seq_list_next_rcu(p, &unloaded_tainted_modules, pos); in unloaded_tainted_modules_seq_next()
/kernel/trace/rv/
Drv.c398 static void *available_monitors_start(struct seq_file *m, loff_t *pos) in available_monitors_start() argument
401 return seq_list_start(&rv_monitors_list, *pos); in available_monitors_start()
404 static void *available_monitors_next(struct seq_file *m, void *p, loff_t *pos) in available_monitors_next() argument
406 return seq_list_next(p, &rv_monitors_list, pos); in available_monitors_next()
412 static void *enabled_monitors_next(struct seq_file *m, void *p, loff_t *pos) in enabled_monitors_next() argument
416 (*pos)++; in enabled_monitors_next()
426 static void *enabled_monitors_start(struct seq_file *m, loff_t *pos) in enabled_monitors_start() argument
438 for (l = 0; l <= *pos; ) { in enabled_monitors_start()

1234