/kernel/trace/ |
D | synth_event_gen_test.c | 47 struct dynevent_cmd cmd; in test_gen_synth_cmd() local 58 synth_event_cmd_init(&cmd, buf, MAX_DYNEVENT_CMD_LEN); in test_gen_synth_cmd() 64 ret = synth_event_gen_cmd_start(&cmd, "gen_synth_test", THIS_MODULE, in test_gen_synth_cmd() 74 ret = synth_event_add_field(&cmd, "unsigned int", "cpu"); in test_gen_synth_cmd() 78 ret = synth_event_add_field(&cmd, "char[64]", "my_string_field"); in test_gen_synth_cmd() 82 ret = synth_event_add_field(&cmd, "int", "my_int_field"); in test_gen_synth_cmd() 86 ret = synth_event_gen_cmd_end(&cmd); in test_gen_synth_cmd() 138 struct dynevent_cmd cmd; in test_empty_synth_event() local 149 synth_event_cmd_init(&cmd, buf, MAX_DYNEVENT_CMD_LEN); in test_empty_synth_event() 154 ret = synth_event_gen_cmd_start(&cmd, "empty_synth_test", THIS_MODULE); in test_empty_synth_event() [all …]
|
D | trace_dynevent.c | 296 int dynevent_arg_add(struct dynevent_cmd *cmd, in dynevent_arg_add() argument 308 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 341 int dynevent_arg_pair_add(struct dynevent_cmd *cmd, in dynevent_arg_pair_add() argument 353 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add() 376 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument 380 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add() 409 void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, in dynevent_cmd_init() argument 413 memset(cmd, '\0', sizeof(*cmd)); in dynevent_cmd_init() 415 seq_buf_init(&cmd->seq, buf, maxlen); in dynevent_cmd_init() 416 cmd->type = type; in dynevent_cmd_init() [all …]
|
D | kprobe_event_gen_test.c | 87 struct dynevent_cmd cmd; in test_gen_kprobe_cmd() local 97 kprobe_event_cmd_init(&cmd, buf, MAX_DYNEVENT_CMD_LEN); in test_gen_kprobe_cmd() 103 ret = kprobe_event_gen_cmd_start(&cmd, "gen_kprobe_test", in test_gen_kprobe_cmd() 111 ret = kprobe_event_add_fields(&cmd, KPROBE_GEN_TEST_ARG2, KPROBE_GEN_TEST_ARG3); in test_gen_kprobe_cmd() 118 ret = kprobe_event_gen_cmd_end(&cmd); in test_gen_kprobe_cmd() 158 struct dynevent_cmd cmd; in test_gen_kretprobe_cmd() local 168 kprobe_event_cmd_init(&cmd, buf, MAX_DYNEVENT_CMD_LEN); in test_gen_kretprobe_cmd() 173 ret = kretprobe_event_gen_cmd_start(&cmd, "gen_kretprobe_test", in test_gen_kretprobe_cmd() 182 ret = kretprobe_event_gen_cmd_end(&cmd); in test_gen_kretprobe_cmd()
|
D | trace_events_synth.c | 1024 int synth_event_add_field(struct dynevent_cmd *cmd, const char *type, in synth_event_add_field() argument 1030 if (cmd->type != DYNEVENT_TYPE_SYNTH) in synth_event_add_field() 1041 ret = dynevent_arg_pair_add(cmd, &arg_pair, synth_event_check_arg_fn); in synth_event_add_field() 1045 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field() 1068 int synth_event_add_field_str(struct dynevent_cmd *cmd, const char *type_name) in synth_event_add_field_str() argument 1073 if (cmd->type != DYNEVENT_TYPE_SYNTH) in synth_event_add_field_str() 1083 ret = dynevent_arg_add(cmd, &arg, NULL); in synth_event_add_field_str() 1087 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field_str() 1111 int synth_event_add_fields(struct dynevent_cmd *cmd, in synth_event_add_fields() argument 1124 ret = synth_event_add_field(cmd, fields[i].type, fields[i].name); in synth_event_add_fields() [all …]
|
D | trace_events_trigger.c | 343 __init int register_event_command(struct event_command *cmd) in register_event_command() argument 350 if (strcmp(cmd->name, p->name) == 0) { in register_event_command() 355 list_add(&cmd->list, &trigger_commands); in register_event_command() 366 __init int unregister_event_command(struct event_command *cmd) in unregister_event_command() argument 373 if (strcmp(cmd->name, p->name) == 0) { in unregister_event_command() 644 char *glob, char *cmd, char *param) in event_trigger_callback() argument 662 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger); in event_trigger_callback() 1095 onoff_get_trigger_ops(char *cmd, char *param) in onoff_get_trigger_ops() argument 1100 if (strcmp(cmd, "traceon") == 0) in onoff_get_trigger_ops() 1195 snapshot_get_trigger_ops(char *cmd, char *param) in snapshot_get_trigger_ops() argument [all …]
|
D | trace_dynevent.h | 122 extern void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, 135 extern int dynevent_arg_add(struct dynevent_cmd *cmd, 149 extern int dynevent_arg_pair_add(struct dynevent_cmd *cmd, 152 extern int dynevent_str_add(struct dynevent_cmd *cmd, const char *str);
|
D | trace_functions.c | 805 char *cmd, char *param, int enable) in ftrace_trace_probe_callback() argument 842 char *glob, char *cmd, char *param, int enable) in ftrace_trace_onoff_callback() argument 850 if (strcmp(cmd, "traceon") == 0) in ftrace_trace_onoff_callback() 855 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback() 861 char *glob, char *cmd, char *param, int enable) in ftrace_stacktrace_callback() argument 870 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback() 876 char *glob, char *cmd, char *param, int enable) in ftrace_dump_callback() argument 886 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback() 892 char *glob, char *cmd, char *param, int enable) in ftrace_cpudump_callback() argument 902 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_cpudump_callback()
|
D | trace_boot.c | 104 struct dynevent_cmd cmd; in trace_boot_add_kprobe_event() local 111 kprobe_event_cmd_init(&cmd, buf, MAX_BUF_LEN); in trace_boot_add_kprobe_event() 113 ret = kprobe_event_gen_cmd_start(&cmd, event, val); in trace_boot_add_kprobe_event() 119 ret = kprobe_event_gen_cmd_end(&cmd); in trace_boot_add_kprobe_event() 141 struct dynevent_cmd cmd; in trace_boot_add_synth_event() local 147 synth_event_cmd_init(&cmd, buf, MAX_BUF_LEN); in trace_boot_add_synth_event() 149 ret = synth_event_gen_cmd_start(&cmd, event, NULL); in trace_boot_add_synth_event() 154 ret = synth_event_add_field_str(&cmd, p); in trace_boot_add_synth_event() 159 ret = synth_event_gen_cmd_end(&cmd); in trace_boot_add_synth_event()
|
D | trace_kprobe.c | 978 static int trace_kprobe_run_command(struct dynevent_cmd *cmd) in trace_kprobe_run_command() argument 980 return create_or_delete_trace_kprobe(cmd->seq.buffer); in trace_kprobe_run_command() 992 void kprobe_event_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen) in kprobe_event_cmd_init() argument 994 dynevent_cmd_init(cmd, buf, maxlen, DYNEVENT_TYPE_KPROBE, in kprobe_event_cmd_init() 1022 int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe, in __kprobe_event_gen_cmd_start() argument 1030 if (cmd->type != DYNEVENT_TYPE_KPROBE) in __kprobe_event_gen_cmd_start() 1041 ret = dynevent_str_add(cmd, buf); in __kprobe_event_gen_cmd_start() 1047 ret = dynevent_arg_add(cmd, &arg, NULL); in __kprobe_event_gen_cmd_start() 1059 if (++cmd->n_fields > MAX_TRACE_ARGS) { in __kprobe_event_gen_cmd_start() 1065 ret = dynevent_arg_add(cmd, &arg, NULL); in __kprobe_event_gen_cmd_start() [all …]
|
D | blktrace.c | 725 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 737 switch (cmd) { in blk_trace_ioctl() 1347 char cmd[TASK_COMM_LEN]; in blk_log_generic() local 1349 trace_find_cmdline(ent->pid, cmd); in blk_log_generic() 1354 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1358 t_sector(ent), t_sec(ent), cmd); in blk_log_generic() 1360 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1394 char cmd[TASK_COMM_LEN]; in blk_log_plug() local 1396 trace_find_cmdline(ent->pid, cmd); in blk_log_plug() 1398 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_plug() [all …]
|
D | trace.h | 990 char *func, char *cmd, 1086 int register_ftrace_command(struct ftrace_func_command *cmd); 1087 int unregister_ftrace_command(struct ftrace_func_command *cmd); 1100 static inline __init int register_ftrace_command(struct ftrace_func_command *cmd) in register_ftrace_command() argument 1589 char *glob, char *cmd, char *param); 1618 extern int register_event_command(struct event_command *cmd); 1619 extern int unregister_event_command(struct event_command *cmd); 1754 char *glob, char *cmd, char *params); 1767 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param); 1848 extern unsigned int err_pos(char *cmd, const char *str); [all …]
|
D | trace_events_hist.c | 498 char *cmd; member 2759 char *glob, char *cmd, char *param); 2883 char *cmd; in create_field_var_hist() local 2921 cmd = kzalloc(MAX_FILTER_STR_VAL, GFP_KERNEL); in create_field_var_hist() 2922 if (!cmd) { in create_field_var_hist() 2928 strcat(cmd, "keys="); in create_field_var_hist() 2933 strcat(cmd, ","); in create_field_var_hist() 2934 strcat(cmd, key_field->field->name); in create_field_var_hist() 2939 strcat(cmd, ":synthetic_"); in create_field_var_hist() 2940 strcat(cmd, field_name); in create_field_var_hist() [all …]
|
/kernel/ |
D | reboot.c | 75 void kernel_restart_prepare(char *cmd) in kernel_restart_prepare() argument 77 blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); in kernel_restart_prepare() 217 void do_kernel_restart(char *cmd) in do_kernel_restart() argument 219 atomic_notifier_call_chain(&restart_handler_list, reboot_mode, cmd); in do_kernel_restart() 248 void kernel_restart(char *cmd) in kernel_restart() argument 250 kernel_restart_prepare(cmd); in kernel_restart() 253 if (!cmd) in kernel_restart() 256 pr_emerg("Restarting system with command '%s'\n", cmd); in kernel_restart() 258 machine_restart(cmd); in kernel_restart() 314 SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd, in SYSCALL_DEFINE4() argument [all …]
|
D | taskstats.c | 65 static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, in prepare_reply() argument 81 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply() 83 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 645 .cmd = TASKSTATS_CMD_GET, 653 .cmd = CGROUPSTATS_CMD_GET,
|
D | kcov.c | 560 static int kcov_ioctl_locked(struct kcov *kcov, unsigned int cmd, in kcov_ioctl_locked() argument 570 switch (cmd) { in kcov_ioctl_locked() 685 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 694 if (cmd == KCOV_REMOTE_ENABLE) { in kcov_ioctl() 714 res = kcov_ioctl_locked(kcov, cmd, arg); in kcov_ioctl()
|
/kernel/power/ |
D | user.c | 245 static long snapshot_ioctl(struct file *filp, unsigned int cmd, in snapshot_ioctl() argument 258 if (_IOC_TYPE(cmd) != SNAPSHOT_IOC_MAGIC) in snapshot_ioctl() 260 if (_IOC_NR(cmd) > SNAPSHOT_IOC_MAXNR) in snapshot_ioctl() 271 switch (cmd) { in snapshot_ioctl() 421 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snapshot_compat_ioctl() argument 425 switch (cmd) { in snapshot_compat_ioctl() 431 return snapshot_ioctl(file, cmd, in snapshot_compat_ioctl() 434 return snapshot_ioctl(file, cmd, arg); in snapshot_compat_ioctl()
|
/kernel/debug/kdb/ |
D | kdb_bp.c | 396 int cmd; /* KDBCMD_B? */ in kdb_bc() local 402 cmd = KDBCMD_BE; in kdb_bc() 404 cmd = KDBCMD_BD; in kdb_bc() 406 cmd = KDBCMD_BC; in kdb_bc() 450 switch (cmd) { in kdb_bc() 483 if (bp->bp_delay && (cmd == KDBCMD_BC || cmd == KDBCMD_BD)) { in kdb_bc()
|
D | kdb_main.c | 710 kdbtab_t cmd; /* Macro command */ member 735 kdb_register(&kdb_macro->cmd); in kdb_defcmd2() 770 kmp = container_of(kp, struct kdb_macro, cmd); in kdb_defcmd() 789 mp = &kdb_macro->cmd; in kdb_defcmd() 853 kmp = container_of(kp, struct kdb_macro, cmd); in kdb_exec_defcmd() 859 kdb_printf("[%s]kdb> %s\n", kmp->cmd.name, kms->statement); in kdb_exec_defcmd() 1138 static int handle_ctrl_cmd(char *cmd) in handle_ctrl_cmd() argument 1146 switch (*cmd) { in handle_ctrl_cmd() 2684 int kdb_register(kdbtab_t *cmd) in kdb_register() argument 2689 if (strcmp(kp->name, cmd->name) == 0) { in kdb_register() [all …]
|
D | Makefile | 24 $(call cmd,gen-kdb)
|
/kernel/sched/ |
D | core_sched.c | 126 int sched_core_share_pid(unsigned int cmd, pid_t pid, enum pid_type type, in sched_core_share_pid() argument 137 if (type > PIDTYPE_PGID || cmd >= PR_SCHED_CORE_MAX || pid < 0 || in sched_core_share_pid() 138 (cmd != PR_SCHED_CORE_GET && uaddr)) in sched_core_share_pid() 163 switch (cmd) { in sched_core_share_pid()
|
D | membarrier.c | 589 SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) in SYSCALL_DEFINE3() argument 591 switch (cmd) { in SYSCALL_DEFINE3() 604 switch (cmd) { in SYSCALL_DEFINE3()
|
/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/futex/ |
D | core.c | 3965 int cmd = op & FUTEX_CMD_MASK; in do_futex() local 3973 if (cmd != FUTEX_WAIT_BITSET && cmd != FUTEX_WAIT_REQUEUE_PI && in do_futex() 3974 cmd != FUTEX_LOCK_PI2) in do_futex() 3978 switch (cmd) { in do_futex() 3989 trace_android_vh_do_futex(cmd, &flags, uaddr2); in do_futex() 3990 switch (cmd) { in do_futex() 4026 static __always_inline bool futex_cmd_has_timeout(u32 cmd) in futex_cmd_has_timeout() argument 4028 switch (cmd) { in futex_cmd_has_timeout() 4040 futex_init_timeout(u32 cmd, u32 op, struct timespec64 *ts, ktime_t *t) in futex_init_timeout() argument 4046 if (cmd == FUTEX_WAIT) in futex_init_timeout() [all …]
|
/kernel/debug/ |
D | gdbstub.c | 1092 int gdbstub_state(struct kgdb_state *ks, char *cmd) in gdbstub_state() argument 1096 switch (cmd[0]) { in gdbstub_state() 1107 strscpy(remcom_in_buffer, cmd, sizeof(remcom_in_buffer)); in gdbstub_state() 1110 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);
|