Home
last modified time | relevance | path

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

/kernel/
Dparams.c111 static void param_check_unsafe(const struct kernel_param *kp) in param_check_unsafe() argument
113 if (kp->flags & KERNEL_PARAM_FL_UNSAFE) { in param_check_unsafe()
115 kp->name); in param_check_unsafe()
273 int param_set_##name(const char *val, const struct kernel_param *kp) \
275 return strtolfn(val, 0, (type *)kp->arg); \
277 int param_get_##name(char *buffer, const struct kernel_param *kp) \
280 *((type *)kp->arg)); \
300 int param_set_charp(const char *val, const struct kernel_param *kp) in param_set_charp() argument
303 pr_err("%s: string parameter too long\n", kp->name); in param_set_charp()
307 maybe_kfree_parameter(*(char **)kp->arg); in param_set_charp()
[all …]
Dkprobes.c288 static inline void set_kprobe_instance(struct kprobe *kp) in set_kprobe_instance() argument
290 __this_cpu_write(kprobe_instance, kp); in set_kprobe_instance()
353 struct kprobe *kp; in opt_pre_handler() local
355 list_for_each_entry_rcu(kp, &p->list, list) { in opt_pre_handler()
356 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in opt_pre_handler()
357 set_kprobe_instance(kp); in opt_pre_handler()
358 kp->pre_handler(kp, regs); in opt_pre_handler()
370 op = container_of(p, struct optimized_kprobe, kp); in free_aggr_kprobe()
382 op = container_of(p, struct optimized_kprobe, kp); in kprobe_optready()
398 op = container_of(p, struct optimized_kprobe, kp); in kprobe_disarmed()
[all …]
Dtest_kprobes.c51 static struct kprobe kp = { variable
61 ret = register_kprobe(&kp); in test_kprobe()
68 unregister_kprobe(&kp); in test_kprobe()
113 struct kprobe *kps[2] = {&kp, &kp2}; in test_kprobes()
116 kp.addr = NULL; in test_kprobes()
117 kp.flags = 0; in test_kprobes()
171 .kp.symbol_name = "kprobe_target"
196 .kp.symbol_name = "kprobe_target2"
205 jp.kp.addr = NULL; in test_jprobes()
206 jp.kp.flags = 0; in test_jprobes()
[all …]
Dmodule.c2026 destroy_params(mod->kp, mod->num_kp); in free_module()
2940 mod->kp = section_objs(info, "__param", in find_module_sections()
2941 sizeof(*mod->kp), &mod->num_kp); in find_module_sections()
3585 after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp, in load_module()
3597 err = mod_sysfs_setup(mod, info, mod->kp, mod->num_kp); in load_module()
4178 struct kernel_param *kp, in module_layout() argument
/kernel/trace/
Dtrace_kprobe.c55 return tk->rp.kp.offset; in trace_kprobe_offset()
60 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
82 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs);
281 tk->rp.kp.symbol_name = tk->symbol; in alloc_trace_kprobe()
282 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
284 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
289 tk->rp.kp.pre_handler = kprobe_dispatcher; in alloc_trace_kprobe()
373 ret = enable_kprobe(&tk->rp.kp); in enable_trace_kprobe()
422 disable_kprobe(&tk->rp.kp); in disable_trace_kprobe()
455 tk->rp.kp.flags &= ~KPROBE_FLAG_DISABLED; in __register_trace_kprobe()
[all …]
/kernel/debug/kdb/
Dkdb_main.c2190 static int kdb_param_enable_nmi(const char *val, const struct kernel_param *kp) in kdb_param_enable_nmi() argument
2715 kdbtab_t *kp; in kdb_register_flags() local
2720 for_each_kdbcmd(kp, i) { in kdb_register_flags()
2721 if (kp->cmd_name && (strcmp(kp->cmd_name, cmd) == 0)) { in kdb_register_flags()
2731 for_each_kdbcmd(kp, i) { in kdb_register_flags()
2732 if (kp->cmd_name == NULL) in kdb_register_flags()
2752 kp = kdb_commands + kdb_max_commands - KDB_BASE_CMD_MAX; in kdb_register_flags()
2756 kp->cmd_name = cmd; in kdb_register_flags()
2757 kp->cmd_func = func; in kdb_register_flags()
2758 kp->cmd_usage = usage; in kdb_register_flags()
[all …]