Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 26) sorted by relevance

12

/kernel/
Dparams.c62 static void maybe_kfree_parameter(void *param) in maybe_kfree_parameter() argument
68 if (p->val == param) { in maybe_kfree_parameter()
115 static int parse_one(char *param, in parse_one() argument
123 int (*handle_unknown)(char *param, char *val, in parse_one() argument
131 if (parameq(param, params[i].name)) { in parse_one()
139 pr_debug("handling %s with %p\n", param, in parse_one()
152 pr_debug("doing %s: %s='%s'\n", doing, param, val); in parse_one()
153 return handle_unknown(param, val, doing, arg); in parse_one()
156 pr_debug("Unknown argument '%s'\n", param); in parse_one()
168 int (*unknown)(char *param, char *val, in parse_args() argument
[all …]
Dwatchdog.c656 int err, old, *param = table->data; in proc_watchdog_common() local
665 *param = (watchdog_enabled & which) != 0; in proc_watchdog_common()
668 old = READ_ONCE(*param); in proc_watchdog_common()
670 if (!err && old != READ_ONCE(*param)) in proc_watchdog_common()
Dsysctl.c944 struct do_proc_dointvec_minmax_conv_param *param = data; in do_proc_dointvec_minmax_conv() local
956 if ((param->min && *param->min > tmp) || in do_proc_dointvec_minmax_conv()
957 (param->max && *param->max < tmp)) in do_proc_dointvec_minmax_conv()
984 struct do_proc_dointvec_minmax_conv_param param = { in proc_dointvec_minmax() local
989 do_proc_dointvec_minmax_conv, &param); in proc_dointvec_minmax()
1012 struct do_proc_douintvec_minmax_conv_param *param = data; in do_proc_douintvec_minmax_conv() local
1021 if ((param->min && *param->min > tmp) || in do_proc_douintvec_minmax_conv()
1022 (param->max && *param->max < tmp)) in do_proc_douintvec_minmax_conv()
1053 struct do_proc_douintvec_minmax_conv_param param = { in proc_douintvec_minmax() local
1058 do_proc_douintvec_minmax_conv, &param); in proc_douintvec_minmax()
[all …]
Dcpu.c1197 struct sched_param param = { .sched_priority = 0 }; in pause_reduce_prio() local
1200 sched_setscheduler_nocheck(current, SCHED_NORMAL, &param); in pause_reduce_prio()
1210 struct sched_param param = { .sched_priority = MAX_RT_PRIO-1-prev_prio }; in pause_restore_prio() local
1212 sched_setscheduler_nocheck(current, SCHED_FIFO, &param); in pause_restore_prio()
1502 struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; in switch_to_rt_policy() local
1507 return sched_setscheduler_nocheck(current, SCHED_FIFO, &param); in switch_to_rt_policy()
1514 struct sched_param param = { .sched_priority = 0 }; in switch_to_fair_policy() local
1516 return sched_setscheduler_nocheck(current, SCHED_NORMAL, &param); in switch_to_fair_policy()
Dkthread.c394 static const struct sched_param param = { .sched_priority = 0 }; in __kthread_create_on_node() local
407 sched_setscheduler_nocheck(task, SCHED_NORMAL, &param); in __kthread_create_on_node()
Dmodule.c3963 static int unknown_module_param_cb(char *param, char *val, const char *modname, in unknown_module_param_cb() argument
3969 if (strcmp(param, "async_probe") == 0) { in unknown_module_param_cb()
3975 ret = ddebug_dyndbg_module_param_cb(param, val, modname); in unknown_module_param_cb()
3977 pr_warn("%s: unknown parameter '%s' ignored\n", modname, param); in unknown_module_param_cb()
/kernel/trace/
Dtrace_events_trigger.c630 char *glob, char *cmd, char *param) in event_trigger_callback() argument
639 if (param && isdigit(param[0])) { in event_trigger_callback()
640 trigger = strsep(&param, " \t"); in event_trigger_callback()
641 if (param) { in event_trigger_callback()
642 param = skip_spaces(param); in event_trigger_callback()
643 if (!*param) in event_trigger_callback()
644 param = NULL; in event_trigger_callback()
685 if (!param) /* if param is non-empty, it's supposed to be a filter */ in event_trigger_callback()
691 ret = cmd_ops->set_filter(param, trigger_data, file); in event_trigger_callback()
1076 onoff_get_trigger_ops(char *cmd, char *param) in onoff_get_trigger_ops() argument
[all …]
Dtrace_functions.c646 char *cmd, char *param, int enable) in ftrace_trace_probe_callback() argument
659 if (!param) in ftrace_trace_probe_callback()
662 number = strsep(&param, ":"); in ftrace_trace_probe_callback()
683 char *glob, char *cmd, char *param, int enable) in ftrace_trace_onoff_callback() argument
692 ops = param ? &traceon_count_probe_ops : &traceon_probe_ops; in ftrace_trace_onoff_callback()
694 ops = param ? &traceoff_count_probe_ops : &traceoff_probe_ops; in ftrace_trace_onoff_callback()
697 param, enable); in ftrace_trace_onoff_callback()
702 char *glob, char *cmd, char *param, int enable) in ftrace_stacktrace_callback() argument
709 ops = param ? &stacktrace_count_probe_ops : &stacktrace_probe_ops; in ftrace_stacktrace_callback()
712 param, enable); in ftrace_stacktrace_callback()
[all …]
Dtrace_syscalls.c582 } param; in perf_call_bpf_enter() local
585 *(struct pt_regs **)&param = regs; in perf_call_bpf_enter()
586 param.syscall_nr = rec->nr; in perf_call_bpf_enter()
588 param.args[i] = rec->args[i]; in perf_call_bpf_enter()
589 return trace_call_bpf(call, &param); in perf_call_bpf_enter()
684 } param; in perf_call_bpf_exit() local
686 *(struct pt_regs **)&param = regs; in perf_call_bpf_exit()
687 param.syscall_nr = rec->nr; in perf_call_bpf_exit()
688 param.ret = rec->ret; in perf_call_bpf_exit()
689 return trace_call_bpf(call, &param); in perf_call_bpf_exit()
Dtrace_probe.c275 unsigned long param; in parse_probe_vars() local
290 ret = kstrtoul(arg + len, 10, &param); in parse_probe_vars()
294 param > PARAM_MAX_STACK) { in parse_probe_vars()
299 code->param = (unsigned int)param; in parse_probe_vars()
309 ret = kstrtoul(arg + len, 10, &param); in parse_probe_vars()
312 } else if (!param || param > PARAM_MAX_STACK) { in parse_probe_vars()
317 code->param = (unsigned int)param - 1; in parse_probe_vars()
359 unsigned long param; in parse_probe_arg() local
374 code->param = (unsigned int)ret; in parse_probe_arg()
382 ret = kstrtoul(arg + 1, 0, &param); in parse_probe_arg()
[all …]
Dtrace_events_hist.c2359 char *glob, char *cmd, char *param);
3116 char *param, *saved_param; in parse_action_params() local
3127 param = strsep(&params, ","); in parse_action_params()
3128 if (!param) { in parse_action_params()
3134 param = strstrip(param); in parse_action_params()
3135 if (strlen(param) < 2) { in parse_action_params()
3136 hist_err(tr, HIST_ERR_INVALID_PARAM, errpos(param)); in parse_action_params()
3141 saved_param = kstrdup(param, GFP_KERNEL); in parse_action_params()
3450 char *event_name, *param, *system = NULL; in trace_action_create() local
3480 p = param = kstrdup(data->params[i], GFP_KERNEL); in trace_action_create()
[all …]
Dtrace_events.c3017 char *glob, char *cmd, char *param, int enabled) in event_enable_func() argument
3032 if (!enabled || !param) in event_enable_func()
3035 system = strsep(&param, ":"); in event_enable_func()
3036 if (!param) in event_enable_func()
3039 event = strsep(&param, ":"); in event_enable_func()
3051 ops = param ? &event_enable_count_probe_ops : &event_enable_probe_ops; in event_enable_func()
3053 ops = param ? &event_disable_count_probe_ops : &event_disable_probe_ops; in event_enable_func()
3070 if (!param) in event_enable_func()
3073 number = strsep(&param, ":"); in event_enable_func()
Dtrace_probe_tmpl.h149 if (++i < code->param) { in process_fetch_insn_bottom()
Dtrace_probe.h112 unsigned int param; member
Dtrace_kprobe.c1345 val = regs_get_register(regs, code->param); in process_fetch_insn()
1348 val = regs_get_kernel_stack_nth(regs, code->param); in process_fetch_insn()
1367 val = regs_get_kernel_argument(regs, code->param); in process_fetch_insn()
Dtrace.h1750 char *glob, char *cmd, char *param);
1928 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param);
Dtrace_uprobe.c229 val = regs_get_register(regs, code->param); in process_fetch_insn()
232 val = get_user_stack_nth(regs, code->param); in process_fetch_insn()
Dtrace.c8088 char *glob, char *cmd, char *param, int enable) in ftrace_trace_snapshot_callback() argument
8102 ops = param ? &snapshot_count_probe_ops : &snapshot_probe_ops; in ftrace_trace_snapshot_callback()
8107 if (!param) in ftrace_trace_snapshot_callback()
8110 number = strsep(&param, ":"); in ftrace_trace_snapshot_callback()
/kernel/cgroup/
Dcgroup-v1.c922 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup1_parse_param() argument
929 opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); in cgroup1_parse_param()
931 if (strcmp(param->key, "source") == 0) { in cgroup1_parse_param()
932 if (param->type != fs_value_is_string) in cgroup1_parse_param()
936 fc->source = param->string; in cgroup1_parse_param()
937 param->string = NULL; in cgroup1_parse_param()
941 if (strcmp(param->key, ss->legacy_name)) in cgroup1_parse_param()
945 param->key); in cgroup1_parse_param()
949 return invalfc(fc, "Unknown subsys name '%s'", param->key); in cgroup1_parse_param()
984 ctx->release_agent = param->string; in cgroup1_parse_param()
[all …]
Dcgroup-internal.h294 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param);
Dcgroup.c1884 static int cgroup2_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup2_parse_param() argument
1890 opt = fs_parse(fc, cgroup2_fs_parameters, param, &result); in cgroup2_parse_param()
/kernel/irq/
Dirqdomain.c781 fwspec->param, fwspec->param_count, in irq_domain_translate()
785 *hwirq = fwspec->param[0]; in irq_domain_translate()
799 fwspec->param[i] = args[i]; in of_phandle_args_to_fwspec()
1048 *out_hwirq = fwspec->param[0]; in irq_domain_translate_onecell()
1069 *out_hwirq = fwspec->param[0]; in irq_domain_translate_twocell()
1070 *out_type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; in irq_domain_translate_twocell()
/kernel/sched/
Dcore.c2581 struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; in sched_set_stop_task() local
2593 sched_setscheduler_nocheck(stop, SCHED_FIFO, &param); in sched_set_stop_task()
5749 const struct sched_param *param, bool check) in _sched_setscheduler() argument
5753 .sched_priority = param->sched_priority, in _sched_setscheduler()
5779 const struct sched_param *param) in sched_setscheduler() argument
5781 return _sched_setscheduler(p, policy, param, true); in sched_setscheduler()
5811 const struct sched_param *param) in sched_setscheduler_nocheck() argument
5813 return _sched_setscheduler(p, policy, param, false); in sched_setscheduler_nocheck()
5863 do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param) in do_sched_setscheduler() argument
5869 if (!param || pid < 0) in do_sched_setscheduler()
[all …]
/kernel/bpf/
Dinode.c643 static int bpf_parse_param(struct fs_context *fc, struct fs_parameter *param) in bpf_parse_param() argument
649 opt = fs_parse(fc, bpf_fs_parameters, param, &result); in bpf_parse_param()
/kernel/time/
Dtimeconst.bc51 print "#include <linux/param.h>\n"

12