/kernel/ |
D | module.c | 172 static void mod_tree_insert(struct module *mod) in mod_tree_insert() argument 174 mod->core_layout.mtn.mod = mod; in mod_tree_insert() 175 mod->init_layout.mtn.mod = mod; in mod_tree_insert() 177 __mod_tree_insert(&mod->core_layout.mtn); in mod_tree_insert() 178 if (mod->init_layout.size) in mod_tree_insert() 179 __mod_tree_insert(&mod->init_layout.mtn); in mod_tree_insert() 182 static void mod_tree_remove_init(struct module *mod) in mod_tree_remove_init() argument 184 if (mod->init_layout.size) in mod_tree_remove_init() 185 __mod_tree_remove(&mod->init_layout.mtn); in mod_tree_remove_init() 188 static void mod_tree_remove(struct module *mod) in mod_tree_remove() argument [all …]
|
D | jump_label.c | 513 struct module *mod; member 529 struct static_key_mod *mod) in static_key_set_mod() argument 533 WARN_ON_ONCE((unsigned long)mod & JUMP_TYPE_MASK); in static_key_set_mod() 535 key->next = mod; in static_key_set_mod() 541 struct module *mod; in __jump_label_mod_text_reserved() local 544 mod = __module_text_address((unsigned long)start); in __jump_label_mod_text_reserved() 545 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __jump_label_mod_text_reserved() 548 if (!mod) in __jump_label_mod_text_reserved() 552 return __jump_label_text_reserved(mod->jump_entries, in __jump_label_mod_text_reserved() 553 mod->jump_entries + mod->num_jump_entries, in __jump_label_mod_text_reserved() [all …]
|
D | cfi.c | 133 static void add_module_to_shadow(struct cfi_shadow *s, struct module *mod) in add_module_to_shadow() argument 138 unsigned long check = (unsigned long)mod->cfi_check; in add_module_to_shadow() 147 min_page_addr = (unsigned long)mod->core_layout.base & PAGE_MASK; in add_module_to_shadow() 148 max_page_addr = (unsigned long)mod->core_layout.base + in add_module_to_shadow() 149 mod->core_layout.text_size; in add_module_to_shadow() 164 static void remove_module_from_shadow(struct cfi_shadow *s, struct module *mod) in remove_module_from_shadow() argument 170 min_page_addr = (unsigned long)mod->core_layout.base & PAGE_MASK; in remove_module_from_shadow() 171 max_page_addr = (unsigned long)mod->core_layout.base + in remove_module_from_shadow() 172 mod->core_layout.text_size; in remove_module_from_shadow() 185 static void update_shadow(struct module *mod, unsigned long min_addr, in update_shadow() argument [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() 394 static int param_array(struct module *mod, in param_array() argument 426 check_kparam_locked(mod); in param_array() 448 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set() [all …]
|
D | tracepoint.c | 375 bool trace_module_has_bad_taint(struct module *mod) in trace_module_has_bad_taint() argument 377 return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) | in trace_module_has_bad_taint() 443 static int tracepoint_module_coming(struct module *mod) in tracepoint_module_coming() argument 448 if (!mod->num_tracepoints) in tracepoint_module_coming() 456 if (trace_module_has_bad_taint(mod)) in tracepoint_module_coming() 464 tp_mod->mod = mod; in tracepoint_module_coming() 473 static void tracepoint_module_going(struct module *mod) in tracepoint_module_going() argument 477 if (!mod->num_tracepoints) in tracepoint_module_going() 482 if (tp_mod->mod == mod) { in tracepoint_module_going() 491 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);
|
/kernel/livepatch/ |
D | core.c | 54 struct module *mod; in klp_find_object_module() local 65 mod = find_module(obj->name); in klp_find_object_module() 73 if (mod && mod->klp_alive) in klp_find_object_module() 74 obj->mod = mod; in klp_find_object_module() 127 struct module *mod, unsigned long addr) in klp_find_callback() argument 131 if ((mod && !args->objname) || (!mod && args->objname)) in klp_find_callback() 137 if (args->objname && strcmp(args->objname, mod->name)) in klp_find_callback() 593 obj->mod = NULL; in klp_free_object_loaded() 664 module_put(patch->mod); in klp_free_patch_finish() 724 module_disable_ro(patch->mod); in klp_init_object_loaded() [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 | 22 return !obj->name || obj->mod; in klp_is_object_loaded()
|
/kernel/trace/ |
D | bpf_trace.c | 218 int mod[3] = {}; in BPF_CALL_5() local 246 mod[fmt_cnt]++; in BPF_CALL_5() 249 mod[fmt_cnt]++; in BPF_CALL_5() 285 mod[fmt_cnt]++; in BPF_CALL_5() 304 ((mod[0] == 2 || (mod[0] == 1 && __BITS_PER_LONG == 64)) \ in BPF_CALL_5() 306 : ((mod[0] == 1 || (mod[0] == 0 && __BITS_PER_LONG == 32)) \ in BPF_CALL_5() 311 ((mod[1] == 2 || (mod[1] == 1 && __BITS_PER_LONG == 64)) \ in BPF_CALL_5() 313 : ((mod[1] == 1 || (mod[1] == 0 && __BITS_PER_LONG == 32)) \ in BPF_CALL_5() 318 ((mod[2] == 2 || (mod[2] == 1 && __BITS_PER_LONG == 64)) \ in BPF_CALL_5() 320 : ((mod[2] == 1 || (mod[2] == 0 && __BITS_PER_LONG == 32)) \ in BPF_CALL_5() [all …]
|
D | ftrace.c | 2497 ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec) in ftrace_code_disable() argument 2504 ret = ftrace_make_nop(mod, rec, MCOUNT_ADDR); in ftrace_code_disable() 2905 static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs) in ftrace_update_code() argument 2927 if (mod) in ftrace_update_code() 2946 !ftrace_code_disable(mod, p)) in ftrace_update_code() 3798 match_records(struct ftrace_hash *hash, char *func, int len, char *mod) in match_records() argument 3804 struct ftrace_glob *mod_match = (mod) ? &mod_g : NULL; in match_records() 3816 if (mod) { in match_records() 3817 mod_g.type = filter_parse_regex(mod, strlen(mod), in match_records() 3976 char *mod, bool enable) in process_mod_list() argument [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 | trace_events.c | 2090 __register_event(struct trace_event_call *call, struct module *mod) in __register_event() argument 2099 call->mod = mod; in __register_event() 2381 static void trace_module_add_events(struct module *mod) in trace_module_add_events() argument 2385 if (!mod->num_trace_events) in trace_module_add_events() 2389 if (trace_module_has_bad_taint(mod)) { in trace_module_add_events() 2391 mod->name); in trace_module_add_events() 2395 start = mod->trace_events; in trace_module_add_events() 2396 end = mod->trace_events + mod->num_trace_events; in trace_module_add_events() 2399 __register_event(*call, mod); in trace_module_add_events() 2404 static void trace_module_remove_events(struct module *mod) in trace_module_remove_events() argument [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_kprobe.c | 108 struct module *mod) in trace_kprobe_within_module() argument 110 int len = strlen(mod->name); in trace_kprobe_within_module() 112 return strncmp(mod->name, name, len) == 0 && name[len] == ':'; in trace_kprobe_within_module() 674 struct module *mod = data; in trace_kprobe_module_callback() local 685 if (trace_kprobe_within_module(tk, mod)) { in trace_kprobe_module_callback() 692 mod->name, ret); in trace_kprobe_module_callback()
|
D | trace.c | 129 struct module *mod; member 5355 trace_insert_eval_map_file(struct module *mod, struct trace_eval_map **start, in trace_insert_eval_map_file() argument 5391 map_array->head.mod = mod; in trace_insert_eval_map_file() 5412 static inline void trace_insert_eval_map_file(struct module *mod, in trace_insert_eval_map_file() argument 5416 static void trace_insert_eval_map(struct module *mod, in trace_insert_eval_map() argument 5428 trace_insert_eval_map_file(mod, start, len); in trace_insert_eval_map() 8694 static void trace_module_add_evals(struct module *mod) in trace_module_add_evals() argument 8696 if (!mod->num_trace_evals) in trace_module_add_evals() 8703 if (trace_module_has_bad_taint(mod)) in trace_module_add_evals() 8706 trace_insert_eval_map(mod, mod->trace_evals, mod->num_trace_evals); in trace_module_add_evals() [all …]
|
D | trace_events_trigger.c | 1316 module_put(enable_data->file->event_call->mod); in event_enable_trigger_free() 1458 ret = try_module_get(event_enable_file->event_call->mod); in event_enable_trigger_func() 1487 module_put(event_enable_file->event_call->mod); in event_enable_trigger_func()
|
/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_3_4.c | 147 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument 149 return within_module((unsigned long)info, mod); in gcov_info_within_module()
|
D | gcc_4_7.c | 160 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument 162 return within_module((unsigned long)info, mod); in gcov_info_within_module()
|
D | clang.c | 219 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) in gcov_info_within_module() argument 221 return within_module((unsigned long)info->filename, mod); in gcov_info_within_module()
|
/kernel/rcu/ |
D | srcutree.c | 1318 static int srcu_module_coming(struct module *mod) in srcu_module_coming() argument 1321 struct srcu_struct **sspp = mod->srcu_struct_ptrs; in srcu_module_coming() 1324 for (i = 0; i < mod->num_srcu_structs; i++) { in srcu_module_coming() 1333 static void srcu_module_going(struct module *mod) in srcu_module_going() argument 1336 struct srcu_struct **sspp = mod->srcu_struct_ptrs; in srcu_module_going() 1338 for (i = 0; i < mod->num_srcu_structs; i++) in srcu_module_going() 1346 struct module *mod = data; in srcu_module_notify() local 1351 ret = srcu_module_coming(mod); in srcu_module_notify() 1354 srcu_module_going(mod); in srcu_module_notify()
|
/kernel/debug/kdb/ |
D | kdb_main.c | 2026 struct module *mod; in kdb_lsmod() local 2032 list_for_each_entry(mod, kdb_modules, list) { in kdb_lsmod() 2033 if (mod->state == MODULE_STATE_UNFORMED) in kdb_lsmod() 2036 kdb_printf("%-20s%8u 0x%px ", mod->name, in kdb_lsmod() 2037 mod->core_layout.size, (void *)mod); in kdb_lsmod() 2039 kdb_printf("%4d ", module_refcount(mod)); in kdb_lsmod() 2041 if (mod->state == MODULE_STATE_GOING) in kdb_lsmod() 2043 else if (mod->state == MODULE_STATE_COMING) in kdb_lsmod() 2047 kdb_printf(" 0x%px", mod->core_layout.base); in kdb_lsmod() 2053 list_for_each_entry(use, &mod->source_list, in kdb_lsmod()
|