Lines Matching refs:pos
116 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
495 pos = get_symbol_pos(addr, size, offset); in lookup_symbol_attrs()
497 kallsyms_expand_symbol(get_symbol_offset(pos), in lookup_symbol_attrs()
645 loff_t pos; member
667 int ret = arch_get_kallsym(iter->pos - kallsyms_num_syms, in get_ksymbol_arch()
672 iter->pos_arch_end = iter->pos; in get_ksymbol_arch()
681 int ret = module_get_kallsym(iter->pos - iter->pos_arch_end, in get_ksymbol_mod()
686 iter->pos_mod_end = iter->pos; in get_ksymbol_mod()
700 int ret = ftrace_mod_get_kallsym(iter->pos - iter->pos_mod_end, in get_ksymbol_ftrace_mod()
705 iter->pos_ftrace_mod_end = iter->pos; in get_ksymbol_ftrace_mod()
718 ret = bpf_get_kallsym(iter->pos - iter->pos_ftrace_mod_end, in get_ksymbol_bpf()
722 iter->pos_bpf_end = iter->pos; in get_ksymbol_bpf()
738 return kprobe_get_kallsym(iter->pos - iter->pos_bpf_end, in get_ksymbol_kprobe()
749 iter->value = kallsyms_sym_address(iter->pos); in get_ksymbol_core()
762 iter->pos = new_pos; in reset_iter()
776 static int update_iter_mod(struct kallsym_iter *iter, loff_t pos) in update_iter_mod() argument
778 iter->pos = pos; in update_iter_mod()
780 if ((!iter->pos_arch_end || iter->pos_arch_end > pos) && in update_iter_mod()
784 if ((!iter->pos_mod_end || iter->pos_mod_end > pos) && in update_iter_mod()
788 if ((!iter->pos_ftrace_mod_end || iter->pos_ftrace_mod_end > pos) && in update_iter_mod()
792 if ((!iter->pos_bpf_end || iter->pos_bpf_end > pos) && in update_iter_mod()
800 static int update_iter(struct kallsym_iter *iter, loff_t pos) in update_iter() argument
803 if (pos >= kallsyms_num_syms) in update_iter()
804 return update_iter_mod(iter, pos); in update_iter()
807 if (pos != iter->pos) in update_iter()
808 reset_iter(iter, pos); in update_iter()
811 iter->pos++; in update_iter()
816 static void *s_next(struct seq_file *m, void *p, loff_t *pos) in s_next() argument
818 (*pos)++; in s_next()
820 if (!update_iter(m->private, *pos)) in s_next()
825 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
827 if (!update_iter(m->private, *pos)) in s_start()
1018 const char *kdb_walk_kallsyms(loff_t *pos) in kdb_walk_kallsyms() argument
1021 if (*pos == 0) { in kdb_walk_kallsyms()
1027 if (!update_iter(&kdb_walk_kallsyms_iter, *pos)) in kdb_walk_kallsyms()
1029 ++*pos; in kdb_walk_kallsyms()