/kernel/ |
D | reboot.c | 73 void kernel_restart_prepare(char *cmd) in kernel_restart_prepare() argument 75 blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); in kernel_restart_prepare() 215 void do_kernel_restart(char *cmd) in do_kernel_restart() argument 217 atomic_notifier_call_chain(&restart_handler_list, reboot_mode, cmd); in do_kernel_restart() 246 void kernel_restart(char *cmd) in kernel_restart() argument 248 kernel_restart_prepare(cmd); in kernel_restart() 251 if (!cmd) in kernel_restart() 254 pr_emerg("Restarting system with command '%s'\n", cmd); in kernel_restart() 256 machine_restart(cmd); in kernel_restart() 312 SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd, in SYSCALL_DEFINE4() argument [all …]
|
D | futex.c | 3853 int cmd = op & FUTEX_CMD_MASK; in do_futex() local 3861 if (cmd != FUTEX_WAIT && cmd != FUTEX_WAIT_BITSET && \ in do_futex() 3862 cmd != FUTEX_WAIT_REQUEUE_PI) in do_futex() 3866 switch (cmd) { in do_futex() 3876 switch (cmd) { in do_futex() 3917 int cmd = op & FUTEX_CMD_MASK; in SYSCALL_DEFINE6() local 3919 if (utime && (cmd == FUTEX_WAIT || cmd == FUTEX_LOCK_PI || in SYSCALL_DEFINE6() 3920 cmd == FUTEX_WAIT_BITSET || in SYSCALL_DEFINE6() 3921 cmd == FUTEX_WAIT_REQUEUE_PI)) { in SYSCALL_DEFINE6() 3930 if (cmd == FUTEX_WAIT) in SYSCALL_DEFINE6() [all …]
|
D | taskstats.c | 69 static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, in prepare_reply() argument 85 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply() 87 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 649 .cmd = TASKSTATS_CMD_GET, 656 .cmd = CGROUPSTATS_CMD_GET, 669 switch (ops->cmd) { in taskstats_pre_doit()
|
D | kcov.c | 545 static int kcov_ioctl_locked(struct kcov *kcov, unsigned int cmd, in kcov_ioctl_locked() argument 554 switch (cmd) { in kcov_ioctl_locked() 673 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 681 if (cmd == KCOV_REMOTE_ENABLE) { in kcov_ioctl() 701 res = kcov_ioctl_locked(kcov, cmd, arg); in kcov_ioctl()
|
D | pid_namespace.c | 308 int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) in reboot_pid_ns() argument 313 switch (cmd) { in reboot_pid_ns()
|
D | Makefile | 138 $(call cmd,genikh)
|
D | seccomp.c | 1160 static long seccomp_notify_ioctl(struct file *file, unsigned int cmd, in seccomp_notify_ioctl() argument 1166 switch (cmd) { in seccomp_notify_ioctl()
|
/kernel/trace/ |
D | trace_events_trigger.c | 322 __init int register_event_command(struct event_command *cmd) in register_event_command() argument 329 if (strcmp(cmd->name, p->name) == 0) { in register_event_command() 334 list_add(&cmd->list, &trigger_commands); in register_event_command() 345 __init int unregister_event_command(struct event_command *cmd) in unregister_event_command() argument 352 if (strcmp(cmd->name, p->name) == 0) { in unregister_event_command() 623 char *glob, char *cmd, char *param) in event_trigger_callback() argument 635 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger); in event_trigger_callback() 1023 onoff_get_trigger_ops(char *cmd, char *param) in onoff_get_trigger_ops() argument 1028 if (strcmp(cmd, "traceon") == 0) in onoff_get_trigger_ops() 1123 snapshot_get_trigger_ops(char *cmd, char *param) in snapshot_get_trigger_ops() argument [all …]
|
D | trace_functions.c | 640 char *cmd, char *param, int enable) in ftrace_trace_probe_callback() argument 677 char *glob, char *cmd, char *param, int enable) in ftrace_trace_onoff_callback() argument 685 if (strcmp(cmd, "traceon") == 0) in ftrace_trace_onoff_callback() 690 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback() 696 char *glob, char *cmd, char *param, int enable) in ftrace_stacktrace_callback() argument 705 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback() 711 char *glob, char *cmd, char *param, int enable) in ftrace_dump_callback() argument 721 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback() 727 char *glob, char *cmd, char *param, int enable) in ftrace_cpudump_callback() argument 737 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_cpudump_callback()
|
D | blktrace.c | 695 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 707 switch (cmd) { in blk_trace_ioctl() 1321 char cmd[TASK_COMM_LEN]; in blk_log_generic() local 1323 trace_find_cmdline(ent->pid, cmd); in blk_log_generic() 1328 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1332 t_sector(ent), t_sec(ent), cmd); in blk_log_generic() 1334 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1368 char cmd[TASK_COMM_LEN]; in blk_log_plug() local 1370 trace_find_cmdline(ent->pid, cmd); in blk_log_plug() 1372 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_plug() [all …]
|
D | trace.h | 1036 char *func, char *cmd, 1124 int register_ftrace_command(struct ftrace_func_command *cmd); 1125 int unregister_ftrace_command(struct ftrace_func_command *cmd); 1133 static inline __init int register_ftrace_command(struct ftrace_func_command *cmd) in register_ftrace_command() argument 1633 char *glob, char *cmd, char *param); 1662 extern int register_event_command(struct event_command *cmd); 1663 extern int unregister_event_command(struct event_command *cmd); 1798 char *glob, char *cmd, char *params); 1811 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param); 1885 extern unsigned int err_pos(char *cmd, const char *str); [all …]
|
D | trace_events_hist.c | 344 char *cmd; member 3159 char *glob, char *cmd, char *param); 3283 char *cmd; in create_field_var_hist() local 3321 cmd = kzalloc(MAX_FILTER_STR_VAL, GFP_KERNEL); in create_field_var_hist() 3322 if (!cmd) { in create_field_var_hist() 3328 strcat(cmd, "keys="); in create_field_var_hist() 3333 strcat(cmd, ","); in create_field_var_hist() 3334 strcat(cmd, key_field->field->name); in create_field_var_hist() 3339 strcat(cmd, ":synthetic_"); in create_field_var_hist() 3340 strcat(cmd, field_name); in create_field_var_hist() [all …]
|
D | trace_kprobe.c | 1667 char *p, *cmd = kprobe_boot_events_buf; in setup_boot_kprobe_events() local 1672 while (cmd && *cmd != '\0') { in setup_boot_kprobe_events() 1673 p = strchr(cmd, ';'); in setup_boot_kprobe_events() 1677 ret = trace_run_command(cmd, create_or_delete_trace_kprobe); in setup_boot_kprobe_events() 1679 pr_warn("Failed to add event(%d): %s\n", ret, cmd); in setup_boot_kprobe_events() 1683 cmd = p; in setup_boot_kprobe_events()
|
D | trace_events.c | 432 bool cmd = false, tgid = false; in __ftrace_event_enable_disable() local 439 cmd = true; in __ftrace_event_enable_disable() 452 if (cmd) in __ftrace_event_enable_disable() 2694 char *glob, char *cmd, char *param, int enabled) in event_enable_func() argument 2725 enable = strcmp(cmd, ENABLE_EVENT_STR) == 0; in event_enable_func()
|
D | trace.c | 6974 char cmd[MAX_FILTER_STR_VAL]; /* what caused err */ member 7010 unsigned int err_pos(char *cmd, const char *str) in err_pos() argument 7014 if (WARN_ON(!strlen(cmd))) in err_pos() 7017 found = strstr(cmd, str); in err_pos() 7019 return found - cmd; in err_pos() 7052 const char *loc, const char *cmd, in tracing_log_err() argument 7068 snprintf(err->cmd, MAX_FILTER_STR_VAL,"\n" CMD_PREFIX "%s\n", cmd); in tracing_log_err() 7137 seq_printf(m, "%s", err->cmd); in tracing_err_log_seq_show() 7714 char *glob, char *cmd, char *param, int enable) in ftrace_trace_snapshot_callback() argument
|
/kernel/power/ |
D | user.c | 201 static long snapshot_ioctl(struct file *filp, unsigned int cmd, in snapshot_ioctl() argument 209 if (_IOC_TYPE(cmd) != SNAPSHOT_IOC_MAGIC) in snapshot_ioctl() 211 if (_IOC_NR(cmd) > SNAPSHOT_IOC_MAXNR) in snapshot_ioctl() 222 switch (cmd) { in snapshot_ioctl() 405 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snapshot_compat_ioctl() argument 409 switch (cmd) { in snapshot_compat_ioctl() 420 err = snapshot_ioctl(file, cmd, (unsigned long) &offset); in snapshot_compat_ioctl() 428 return snapshot_ioctl(file, cmd, in snapshot_compat_ioctl() 451 return snapshot_ioctl(file, cmd, arg); in snapshot_compat_ioctl()
|
/kernel/debug/kdb/ |
D | kdb_bp.c | 387 int cmd; /* KDBCMD_B? */ in kdb_bc() local 393 cmd = KDBCMD_BE; in kdb_bc() 395 cmd = KDBCMD_BD; in kdb_bc() 397 cmd = KDBCMD_BC; in kdb_bc() 442 switch (cmd) { in kdb_bc() 475 if (bp->bp_delay && (cmd == KDBCMD_BC || cmd == KDBCMD_BD)) { in kdb_bc()
|
D | kdb_main.c | 93 #define for_each_kdbcmd(cmd, num) \ argument 94 for ((cmd) = kdb_base_commands, (num) = 0; \ 96 num++, num == KDB_BASE_CMD_MAX ? cmd = kdb_commands : cmd++) 1094 static int handle_ctrl_cmd(char *cmd) in handle_ctrl_cmd() argument 1102 switch (*cmd) { in handle_ctrl_cmd() 2658 int kdb_register_flags(char *cmd, in kdb_register_flags() argument 2672 if (kp->cmd_name && (strcmp(kp->cmd_name, cmd) == 0)) { in kdb_register_flags() 2674 "%s, func %px help %s\n", cmd, func, help); in kdb_register_flags() 2710 kp->cmd_name = cmd; in kdb_register_flags() 2734 int kdb_register(char *cmd, in kdb_register() argument [all …]
|
D | Makefile | 24 $(call cmd,gen-kdb)
|
/kernel/time/ |
D | posix-clock.c | 73 unsigned int cmd, unsigned long arg) in posix_clock_ioctl() argument 82 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl() 91 unsigned int cmd, unsigned long arg) in posix_clock_compat_ioctl() argument 100 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_compat_ioctl()
|
/kernel/sched/ |
D | membarrier.c | 340 SYSCALL_DEFINE2(membarrier, int, cmd, int, flags) in SYSCALL_DEFINE2() argument 344 switch (cmd) { in SYSCALL_DEFINE2()
|
/kernel/debug/ |
D | gdbstub.c | 1083 int gdbstub_state(struct kgdb_state *ks, char *cmd) in gdbstub_state() argument 1087 switch (cmd[0]) { in gdbstub_state() 1098 strscpy(remcom_in_buffer, cmd, sizeof(remcom_in_buffer)); in gdbstub_state() 1101 strscpy(remcom_in_buffer, cmd, sizeof(remcom_in_buffer)); in gdbstub_state()
|
D | debug_core.h | 71 extern int gdbstub_state(struct kgdb_state *ks, char *cmd);
|
/kernel/cgroup/ |
D | cpuset.c | 1119 static int update_parent_subparts_cpumask(struct cpuset *cpuset, int cmd, in update_parent_subparts_cpumask() argument 1144 if ((cmd != partcmd_update) && css_has_online_children(&cpuset->css)) in update_parent_subparts_cpumask() 1152 if ((cmd == partcmd_enable) && in update_parent_subparts_cpumask() 1161 if (cmd == partcmd_enable) { in update_parent_subparts_cpumask() 1164 } else if (cmd == partcmd_disable) { in update_parent_subparts_cpumask() 1215 if (cmd == partcmd_update) { in update_parent_subparts_cpumask() 1279 return cmd == partcmd_update; in update_parent_subparts_cpumask()
|
/kernel/bpf/ |
D | offload.c | 347 enum bpf_netdev_command cmd) in bpf_map_offload_ndo() argument 354 data.command = cmd; in bpf_map_offload_ndo()
|