Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 14 of 14) sorted by relevance

/kernel/
Dparams.c100 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 …]
Dfail_function.c15 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 …]
Dkprobes.c360 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 …]
Dworkqueue.c5918 const struct kernel_param *kp) in wq_watchdog_param_set_thresh() argument
/kernel/trace/
Dtrace_kprobe.c97 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 …]
Dbpf_trace.c1070 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()
Dtrace_events_user.c1506 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/
Dkdb_main.c761 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 …]
Dkdb_private.h167 extern void kdb_register_table(kdbtab_t *kp, size_t len);
/kernel/module/
Dversion.c96 struct kernel_param *kp, in module_layout() argument
Dmain.c1193 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()
Dinternal.h282 void module_layout(struct module *mod, struct modversion_info *ver, struct kernel_param *kp,
/kernel/rcu/
Dupdate.c286 static int param_set_rcu_boot_end(const char *val, const struct kernel_param *kp) in param_set_rcu_boot_end() argument
Dtree.c463 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()