/kernel/ |
D | module.c | 180 static void mod_tree_insert(struct module *mod) in mod_tree_insert() argument 182 mod->core_layout.mtn.mod = mod; in mod_tree_insert() 183 mod->init_layout.mtn.mod = mod; in mod_tree_insert() 185 __mod_tree_insert(&mod->core_layout.mtn); in mod_tree_insert() 186 if (mod->init_layout.size) in mod_tree_insert() 187 __mod_tree_insert(&mod->init_layout.mtn); in mod_tree_insert() 190 static void mod_tree_remove_init(struct module *mod) in mod_tree_remove_init() argument 192 if (mod->init_layout.size) in mod_tree_remove_init() 193 __mod_tree_remove(&mod->init_layout.mtn); in mod_tree_remove_init() 196 static void mod_tree_remove(struct module *mod) in mod_tree_remove() argument [all …]
|
D | static_call.c | 147 .mod = NULL, in __static_call_update() 153 struct module *mod = site_mod->mod; in __static_call_update() local 168 if (mod) { in __static_call_update() 170 stop = mod->static_call_sites + in __static_call_update() 171 mod->num_static_call_sites; in __static_call_update() 172 init = mod->state == MODULE_STATE_COMING; in __static_call_update() 209 static int __static_call_init(struct module *mod, in __static_call_init() argument 225 if ((mod && within_module_init((unsigned long)site_addr, mod)) || in __static_call_init() 226 (!mod && init_section_contains(site_addr, 1))) in __static_call_init() 241 if (!mod) { in __static_call_init() [all …]
|
D | jump_label.c | 523 struct module *mod; member 539 struct static_key_mod *mod) in static_key_set_mod() argument 543 WARN_ON_ONCE((unsigned long)mod & JUMP_TYPE_MASK); in static_key_set_mod() 545 key->next = mod; in static_key_set_mod() 551 struct module *mod; in __jump_label_mod_text_reserved() local 555 mod = __module_text_address((unsigned long)start); in __jump_label_mod_text_reserved() 556 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __jump_label_mod_text_reserved() 557 if (!try_module_get(mod)) in __jump_label_mod_text_reserved() 558 mod = NULL; in __jump_label_mod_text_reserved() 561 if (!mod) in __jump_label_mod_text_reserved() [all …]
|
D | cfi.c | 146 static void add_module_to_shadow(struct cfi_shadow *s, struct module *mod, in add_module_to_shadow() argument 150 unsigned long check = (unsigned long)mod->cfi_check; in add_module_to_shadow() 154 pr_warn("cfi: not using shadow for module %s\n", mod->name); in add_module_to_shadow() 174 static void remove_module_from_shadow(struct cfi_shadow *s, struct module *mod, in remove_module_from_shadow() argument 190 static void update_shadow(struct module *mod, unsigned long base_addr, in update_shadow() argument 208 min_addr = (unsigned long)mod->core_layout.base; in update_shadow() 209 max_addr = min_addr + mod->core_layout.text_size; in update_shadow() 210 fn(next, mod, min_addr & PAGE_MASK, max_addr & PAGE_MASK); in update_shadow() 225 void cfi_module_add(struct module *mod, unsigned long base_addr) in cfi_module_add() argument 227 update_shadow(mod, base_addr, add_module_to_shadow); in cfi_module_add() [all …]
|
D | params.c | 23 #define KPARAM_MUTEX(mod) ((mod) ? &(mod)->param_lock : ¶m_lock) argument 25 #define KPARAM_MUTEX(mod) (¶m_lock) argument 28 static inline void check_kparam_locked(struct module *mod) in check_kparam_locked() argument 30 BUG_ON(!mutex_is_locked(KPARAM_MUTEX(mod))); in check_kparam_locked() 33 static inline void check_kparam_locked(struct module *mod) in check_kparam_locked() argument 141 kernel_param_lock(params[i].mod); in parse_one() 146 kernel_param_unlock(params[i].mod); in parse_one() 395 static int param_array(struct module *mod, in param_array() argument 427 check_kparam_locked(mod); in param_array() 449 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set() [all …]
|
D | tracepoint.c | 592 bool trace_module_has_bad_taint(struct module *mod) in trace_module_has_bad_taint() argument 594 return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) | in trace_module_has_bad_taint() 660 static int tracepoint_module_coming(struct module *mod) in tracepoint_module_coming() argument 665 if (!mod->num_tracepoints) in tracepoint_module_coming() 673 if (trace_module_has_bad_taint(mod)) in tracepoint_module_coming() 681 tp_mod->mod = mod; in tracepoint_module_coming() 690 static void tracepoint_module_going(struct module *mod) in tracepoint_module_going() argument 694 if (!mod->num_tracepoints) in tracepoint_module_going() 699 if (tp_mod->mod == mod) { in tracepoint_module_going() 708 for_each_tracepoint_range(mod->tracepoints_ptrs, in tracepoint_module_going() [all …]
|
D | module_signing.c | 20 int mod_verify_sig(const void *mod, struct load_info *info) in mod_verify_sig() argument 31 memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms)); in mod_verify_sig() 41 return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len, in mod_verify_sig()
|
D | module-internal.h | 14 struct module *mod; member 27 unsigned int sym, str, mod, vers, info, pcpu; member 31 extern int mod_verify_sig(const void *mod, struct load_info *info);
|
D | kprobes.c | 2492 static void add_module_kprobe_blacklist(struct module *mod) in add_module_kprobe_blacklist() argument 2497 if (mod->kprobe_blacklist) { in add_module_kprobe_blacklist() 2498 for (i = 0; i < mod->num_kprobe_blacklist; i++) in add_module_kprobe_blacklist() 2499 kprobe_add_ksym_blacklist(mod->kprobe_blacklist[i]); in add_module_kprobe_blacklist() 2502 start = (unsigned long)mod->kprobes_text_start; in add_module_kprobe_blacklist() 2504 end = start + mod->kprobes_text_size; in add_module_kprobe_blacklist() 2508 start = (unsigned long)mod->noinstr_text_start; in add_module_kprobe_blacklist() 2510 end = start + mod->noinstr_text_size; in add_module_kprobe_blacklist() 2515 static void remove_module_kprobe_blacklist(struct module *mod) in remove_module_kprobe_blacklist() argument 2520 if (mod->kprobe_blacklist) { in remove_module_kprobe_blacklist() [all …]
|
/kernel/livepatch/ |
D | core.c | 55 struct module *mod; in klp_find_object_module() local 66 mod = find_module(obj->name); in klp_find_object_module() 74 if (mod && mod->klp_alive) in klp_find_object_module() 75 obj->mod = mod; in klp_find_object_module() 128 struct module *mod, unsigned long addr) in klp_find_callback() argument 132 if ((mod && !args->objname) || (!mod && args->objname)) in klp_find_callback() 138 if (args->objname && strcmp(args->objname, mod->name)) in klp_find_callback() 615 obj->mod = NULL; in klp_free_object_loaded() 686 module_put(patch->mod); in klp_free_patch_finish() 752 struct klp_modinfo *info = patch->mod->klp_info; in klp_apply_object_relocs() [all …]
|
D | transition.c | 77 klp_transition_patch->mod->name, in klp_complete_transition() 131 pr_notice("'%s': %s complete\n", klp_transition_patch->mod->name, in klp_complete_transition() 150 klp_transition_patch->mod->name); in klp_cancel_transition() 471 klp_transition_patch->mod->name, in klp_start_transition() 522 pr_debug("'%s': initializing %s transition\n", patch->mod->name, in klp_init_transition() 584 klp_transition_patch->mod->name, in klp_reverse_transition()
|
D | core.h | 23 return !obj->name || obj->mod; in klp_is_object_loaded()
|
/kernel/trace/ |
D | bpf_trace.c | 416 int i, mod[3] = {}, fmt_cnt = 0; in BPF_CALL_5() local 443 mod[fmt_cnt]++; in BPF_CALL_5() 446 mod[fmt_cnt]++; in BPF_CALL_5() 468 mod[fmt_cnt]++; in BPF_CALL_5() 502 mod[fmt_cnt]++; in BPF_CALL_5() 521 ((mod[0] == 2 || (mod[0] == 1 && __BITS_PER_LONG == 64)) \ in BPF_CALL_5() 523 : ((mod[0] == 1 || (mod[0] == 0 && __BITS_PER_LONG == 32)) \ in BPF_CALL_5() 528 ((mod[1] == 2 || (mod[1] == 1 && __BITS_PER_LONG == 64)) \ in BPF_CALL_5() 530 : ((mod[1] == 1 || (mod[1] == 0 && __BITS_PER_LONG == 32)) \ in BPF_CALL_5() 535 ((mod[2] == 2 || (mod[2] == 1 && __BITS_PER_LONG == 64)) \ in BPF_CALL_5() [all …]
|
D | trace_printk.c | 91 struct module *mod = data; in module_trace_bprintk_format_notify() local 92 if (mod->num_trace_bprintk_fmt) { in module_trace_bprintk_format_notify() 93 const char **start = mod->trace_bprintk_fmt_start; in module_trace_bprintk_format_notify() 94 const char **end = start + mod->num_trace_bprintk_fmt; in module_trace_bprintk_format_notify()
|
D | ftrace.c | 2645 ftrace_nop_initialize(struct module *mod, struct dyn_ftrace *rec) in ftrace_nop_initialize() argument 2652 ret = ftrace_init_nop(mod, rec); in ftrace_nop_initialize() 3102 static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs) in ftrace_update_code() argument 3124 if (mod) in ftrace_update_code() 3143 !ftrace_nop_initialize(mod, p)) in ftrace_update_code() 4016 match_records(struct ftrace_hash *hash, char *func, int len, char *mod) in match_records() argument 4022 struct ftrace_glob *mod_match = (mod) ? &mod_g : NULL; in match_records() 4034 if (mod) { in match_records() 4035 mod_g.type = filter_parse_regex(mod, strlen(mod), in match_records() 4194 char *mod, bool enable) in process_mod_list() argument [all …]
|
D | trace_events.c | 2305 __register_event(struct trace_event_call *call, struct module *mod) in __register_event() argument 2314 call->mod = mod; in __register_event() 2619 static void trace_module_add_events(struct module *mod) in trace_module_add_events() argument 2623 if (!mod->num_trace_events) in trace_module_add_events() 2627 if (trace_module_has_bad_taint(mod)) { in trace_module_add_events() 2629 mod->name); in trace_module_add_events() 2633 start = mod->trace_events; in trace_module_add_events() 2634 end = mod->trace_events + mod->num_trace_events; in trace_module_add_events() 2637 __register_event(*call, mod); in trace_module_add_events() 2642 static void trace_module_remove_events(struct module *mod) in trace_module_remove_events() argument [all …]
|
D | trace_events_synth.c | 1057 struct module *mod, ...) in __synth_event_gen_cmd_start() argument 1064 cmd->private_data = mod; in __synth_event_gen_cmd_start() 1075 va_start(args, mod); in __synth_event_gen_cmd_start() 1126 struct module *mod, in synth_event_gen_cmd_array_start() argument 1135 cmd->private_data = mod; in synth_event_gen_cmd_array_start() 1301 unsigned int n_fields, struct module *mod) in synth_event_create() argument 1313 ret = synth_event_gen_cmd_array_start(&cmd, name, mod, in synth_event_create() 1354 struct module *mod = NULL; in synth_event_delete() local 1360 mod = se->mod; in synth_event_delete() 1365 if (mod) { in synth_event_delete() [all …]
|
D | trace_event_perf.c | 180 module_put(tp_event->mod); in perf_trace_event_unreg() 227 try_module_get(tp_event->mod)) { in perf_trace_init() 230 module_put(tp_event->mod); in perf_trace_init()
|
D | trace_synth.h | 35 struct module *mod; member
|
D | trace_kprobe.c | 108 struct module *mod) in trace_kprobe_within_module() argument 110 int len = strlen(module_name(mod)); in trace_kprobe_within_module() 113 return strncmp(module_name(mod), name, len) == 0 && name[len] == ':'; in trace_kprobe_within_module() 679 struct module *mod = data; in trace_kprobe_module_callback() local 690 if (trace_kprobe_within_module(tk, mod)) { in trace_kprobe_module_callback() 697 module_name(mod), ret); in trace_kprobe_module_callback()
|
/kernel/gcov/ |
D | base.c | 57 struct module *mod = data; in gcov_module_notifier() local 67 if (gcov_info_within_module(info, mod)) { in gcov_module_notifier()
|
D | gcov.h | 50 bool gcov_info_within_module(struct gcov_info *info, struct module *mod);
|
D | gcc_4_7.c | 174 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument 176 return within_module((unsigned long)info, mod); in gcov_info_within_module()
|
/kernel/rcu/ |
D | srcutree.c | 1391 static int srcu_module_coming(struct module *mod) in srcu_module_coming() argument 1394 struct srcu_struct **sspp = mod->srcu_struct_ptrs; in srcu_module_coming() 1397 for (i = 0; i < mod->num_srcu_structs; i++) { in srcu_module_coming() 1406 static void srcu_module_going(struct module *mod) in srcu_module_going() argument 1409 struct srcu_struct **sspp = mod->srcu_struct_ptrs; in srcu_module_going() 1411 for (i = 0; i < mod->num_srcu_structs; i++) in srcu_module_going() 1419 struct module *mod = data; in srcu_module_notify() local 1424 ret = srcu_module_coming(mod); in srcu_module_notify() 1427 srcu_module_going(mod); in srcu_module_notify()
|
/kernel/debug/kdb/ |
D | kdb_main.c | 2083 struct module *mod; in kdb_lsmod() local 2089 list_for_each_entry(mod, kdb_modules, list) { in kdb_lsmod() 2090 if (mod->state == MODULE_STATE_UNFORMED) in kdb_lsmod() 2093 kdb_printf("%-20s%8u 0x%px ", mod->name, in kdb_lsmod() 2094 mod->core_layout.size, (void *)mod); in kdb_lsmod() 2096 kdb_printf("%4d ", module_refcount(mod)); in kdb_lsmod() 2098 if (mod->state == MODULE_STATE_GOING) in kdb_lsmod() 2100 else if (mod->state == MODULE_STATE_COMING) in kdb_lsmod() 2104 kdb_printf(" 0x%px", mod->core_layout.base); in kdb_lsmod() 2110 list_for_each_entry(use, &mod->source_list, in kdb_lsmod()
|