Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 9 of 9) 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)); \
245 int param_set_charp(const char *val, const struct kernel_param *kp) in param_set_charp() argument
248 pr_err("%s: string parameter too long\n", kp->name); in param_set_charp()
[all …]
Dkprobes.c307 static inline void set_kprobe_instance(struct kprobe *kp) in set_kprobe_instance() argument
309 __this_cpu_write(kprobe_instance, kp); in set_kprobe_instance()
372 struct kprobe *kp; in opt_pre_handler() local
374 list_for_each_entry_rcu(kp, &p->list, list) { in opt_pre_handler()
375 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in opt_pre_handler()
376 set_kprobe_instance(kp); in opt_pre_handler()
377 kp->pre_handler(kp, regs); in opt_pre_handler()
389 op = container_of(p, struct optimized_kprobe, kp); in free_aggr_kprobe()
401 op = container_of(p, struct optimized_kprobe, kp); in kprobe_optready()
417 op = container_of(p, struct optimized_kprobe, kp); in kprobe_disarmed()
[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 …]
Dtest_kprobes.c50 static struct kprobe kp = { variable
60 ret = register_kprobe(&kp); in test_kprobe()
67 unregister_kprobe(&kp); in test_kprobe()
112 struct kprobe *kps[2] = {&kp, &kp2}; in test_kprobes()
115 kp.addr = NULL; in test_kprobes()
116 kp.flags = 0; in test_kprobes()
193 .kp.symbol_name = "kprobe_target"
236 .kp.symbol_name = "kprobe_target2"
245 rp.kp.addr = NULL; in test_kretprobes()
246 rp.kp.flags = 0; in test_kretprobes()
Dmodule.c2209 destroy_params(mod->kp, mod->num_kp); in free_module()
3155 mod->kp = section_objs(info, "__param", in find_module_sections()
3156 sizeof(*mod->kp), &mod->num_kp); in find_module_sections()
3911 after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp, in load_module()
3923 err = mod_sysfs_setup(mod, info, mod->kp, mod->num_kp); in load_module()
3945 destroy_params(mod->kp, mod->num_kp); in load_module()
4574 struct kernel_param *kp, in module_layout() argument
Dworkqueue.c5800 const struct kernel_param *kp) in wq_watchdog_param_set_thresh() argument
/kernel/trace/
Dtrace_kprobe.c99 return tk->rp.kp.offset; in trace_kprobe_offset()
104 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
150 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); in trace_kprobe_match_command_head()
151 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
153 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 …]
/kernel/debug/kdb/
Dkdb_main.c2188 static int kdb_param_enable_nmi(const char *val, const struct kernel_param *kp) in kdb_param_enable_nmi() argument
2666 kdbtab_t *kp; in kdb_register_flags() local
2671 for_each_kdbcmd(kp, i) { in kdb_register_flags()
2672 if (kp->cmd_name && (strcmp(kp->cmd_name, cmd) == 0)) { in kdb_register_flags()
2682 for_each_kdbcmd(kp, i) { in kdb_register_flags()
2683 if (kp->cmd_name == NULL) in kdb_register_flags()
2706 kp = kdb_commands + kdb_max_commands - KDB_BASE_CMD_MAX; in kdb_register_flags()
2710 kp->cmd_name = cmd; in kdb_register_flags()
2711 kp->cmd_func = func; in kdb_register_flags()
2712 kp->cmd_usage = usage; in kdb_register_flags()
[all …]
/kernel/rcu/
Dtree.c460 static int param_set_first_fqs_jiffies(const char *val, const struct kernel_param *kp) in param_set_first_fqs_jiffies() argument
466 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : j); in param_set_first_fqs_jiffies()
472 static int param_set_next_fqs_jiffies(const char *val, const struct kernel_param *kp) in param_set_next_fqs_jiffies() argument
478 WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : (j ?: 1)); in param_set_next_fqs_jiffies()