/kernel/ |
D | params.c | 100 static bool param_check_unsafe(const struct kernel_param *kp) in param_check_unsafe() argument 102 if (kp->flags & KERNEL_PARAM_FL_HWPARAM && in param_check_unsafe() 106 if (kp->flags & KERNEL_PARAM_FL_UNSAFE) { in param_check_unsafe() 108 kp->name); in param_check_unsafe() 218 int param_set_##name(const char *val, const struct kernel_param *kp) \ 220 return strtolfn(val, 0, (type *)kp->arg); \ 222 int param_get_##name(char *buffer, const struct kernel_param *kp) \ 225 *((type *)kp->arg)); \ 246 int param_set_uint_minmax(const char *val, const struct kernel_param *kp, in param_set_uint_minmax() argument 259 *((unsigned int *)kp->arg) = num; in param_set_uint_minmax() [all …]
|
D | fail_function.c | 15 static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs); 17 static void fei_post_handler(struct kprobe *kp, struct pt_regs *regs, in fei_post_handler() argument 28 struct kprobe kp; member 62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new() 63 if (!attr->kp.symbol_name) { in fei_attr_new() 67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new() 68 attr->kp.post_handler = fei_post_handler; in fei_attr_new() 78 kfree(attr->kp.symbol_name); in fei_attr_free() 88 if (!strcmp(attr->kp.symbol_name, sym)) in fei_attr_lookup() 124 if (attr->kp.addr) { in fei_retval_set() [all …]
|
D | kprobes.c | 360 static inline void set_kprobe_instance(struct kprobe *kp) in set_kprobe_instance() argument 362 __this_cpu_write(kprobe_instance, kp); in set_kprobe_instance() 424 struct kprobe *kp; in opt_pre_handler() local 426 list_for_each_entry_rcu(kp, &p->list, list) { in opt_pre_handler() 427 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in opt_pre_handler() 428 set_kprobe_instance(kp); in opt_pre_handler() 429 kp->pre_handler(kp, regs); in opt_pre_handler() 441 op = container_of(p, struct optimized_kprobe, kp); in free_aggr_kprobe() 453 op = container_of(p, struct optimized_kprobe, kp); in kprobe_optready() 469 op = container_of(p, struct optimized_kprobe, kp); in kprobe_disarmed() [all …]
|
D | workqueue.c | 5918 const struct kernel_param *kp) in wq_watchdog_param_set_thresh() argument
|
/kernel/trace/ |
D | trace_kprobe.c | 97 return tk->rp.kp.offset; in trace_kprobe_offset() 102 return kprobe_gone(&tk->rp.kp); in trace_kprobe_has_gone() 149 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head() 150 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head() 152 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head() 186 return !(list_empty(&tk->rp.kp.list) && in trace_kprobe_is_registered() 187 hlist_unhashed(&tk->rp.kp.hlist)); in trace_kprobe_is_registered() 200 addr += tk->rp.kp.offset; in trace_kprobe_address() 202 addr = (unsigned long)tk->rp.kp.addr; in trace_kprobe_address() 223 return tk ? (kprobe_on_func_entry(tk->rp.kp.addr, in trace_kprobe_on_func_entry() [all …]
|
D | bpf_trace.c | 1070 struct kprobe *kp = kprobe_running(); in BPF_CALL_1() local 1072 if (!kp || !(kp->flags & KPROBE_FLAG_ON_FUNC_ENTRY)) in BPF_CALL_1() 1075 return get_entry_ip((uintptr_t)kp->addr); in BPF_CALL_1()
|
D | trace_events_user.c | 1506 static ssize_t user_events_write_iter(struct kiocb *kp, struct iov_iter *i) in user_events_write_iter() argument 1508 return user_events_write_core(kp->ki_filp, i); in user_events_write_iter()
|
/kernel/debug/kdb/ |
D | kdb_main.c | 761 kdbtab_t *kp; in kdb_defcmd() local 765 list_for_each_entry(kp, &kdb_cmds_head, list_node) { in kdb_defcmd() 766 if (kp->func == kdb_exec_defcmd) { in kdb_defcmd() 768 kp->name, kp->usage, kp->help); in kdb_defcmd() 769 kmp = container_of(kp, struct kdb_macro, cmd); in kdb_defcmd() 836 kdbtab_t *kp; in kdb_exec_defcmd() local 843 list_for_each_entry(kp, &kdb_cmds_head, list_node) { in kdb_exec_defcmd() 844 if (strcmp(kp->name, argv[0]) == 0) in kdb_exec_defcmd() 847 if (list_entry_is_head(kp, &kdb_cmds_head, list_node)) { in kdb_exec_defcmd() 852 kmp = container_of(kp, struct kdb_macro, cmd); in kdb_exec_defcmd() [all …]
|
D | kdb_private.h | 167 extern void kdb_register_table(kdbtab_t *kp, size_t len);
|
/kernel/module/ |
D | version.c | 96 struct kernel_param *kp, in module_layout() argument
|
D | main.c | 1193 destroy_params(mod->kp, mod->num_kp); in free_module() 2048 mod->kp = section_objs(info, "__param", in find_module_sections() 2049 sizeof(*mod->kp), &mod->num_kp); in find_module_sections() 2888 after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp, in load_module() 2900 err = mod_sysfs_setup(mod, info, mod->kp, mod->num_kp); in load_module() 2922 destroy_params(mod->kp, mod->num_kp); in load_module()
|
D | internal.h | 282 void module_layout(struct module *mod, struct modversion_info *ver, struct kernel_param *kp,
|
/kernel/rcu/ |
D | update.c | 286 static int param_set_rcu_boot_end(const char *val, const struct kernel_param *kp) in param_set_rcu_boot_end() argument
|
D | tree.c | 463 static int param_set_first_fqs_jiffies(const char *val, const struct kernel_param *kp) in param_set_first_fqs_jiffies() argument 469 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : j); in param_set_first_fqs_jiffies() 475 static int param_set_next_fqs_jiffies(const char *val, const struct kernel_param *kp) in param_set_next_fqs_jiffies() argument 481 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : (j ?: 1)); in param_set_next_fqs_jiffies()
|