/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 | 247 int dynevent_arg_add(struct dynevent_cmd *cmd, in dynevent_arg_add() argument 259 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 292 int dynevent_arg_pair_add(struct dynevent_cmd *cmd, in dynevent_arg_pair_add() argument 304 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add() 327 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument 331 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add() 360 void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, in dynevent_cmd_init() argument 364 memset(cmd, '\0', sizeof(*cmd)); in dynevent_cmd_init() 366 seq_buf_init(&cmd->seq, buf, maxlen); in dynevent_cmd_init() 367 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 | 919 int synth_event_add_field(struct dynevent_cmd *cmd, const char *type, in synth_event_add_field() argument 925 if (cmd->type != DYNEVENT_TYPE_SYNTH) in synth_event_add_field() 936 ret = dynevent_arg_pair_add(cmd, &arg_pair, synth_event_check_arg_fn); in synth_event_add_field() 940 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field() 963 int synth_event_add_field_str(struct dynevent_cmd *cmd, const char *type_name) in synth_event_add_field_str() argument 968 if (cmd->type != DYNEVENT_TYPE_SYNTH) in synth_event_add_field_str() 978 ret = dynevent_arg_add(cmd, &arg, NULL); in synth_event_add_field_str() 982 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field_str() 1006 int synth_event_add_fields(struct dynevent_cmd *cmd, in synth_event_add_fields() argument 1019 ret = synth_event_add_field(cmd, fields[i].type, fields[i].name); in synth_event_add_fields() [all …]
|
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_events_trigger.c | 329 __init int register_event_command(struct event_command *cmd) in register_event_command() argument 336 if (strcmp(cmd->name, p->name) == 0) { in register_event_command() 341 list_add(&cmd->list, &trigger_commands); in register_event_command() 352 __init int unregister_event_command(struct event_command *cmd) in unregister_event_command() argument 359 if (strcmp(cmd->name, p->name) == 0) { in unregister_event_command() 630 char *glob, char *cmd, char *param) in event_trigger_callback() argument 648 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger); in event_trigger_callback() 1076 onoff_get_trigger_ops(char *cmd, char *param) in onoff_get_trigger_ops() argument 1081 if (strcmp(cmd, "traceon") == 0) in onoff_get_trigger_ops() 1174 snapshot_get_trigger_ops(char *cmd, char *param) in snapshot_get_trigger_ops() argument [all …]
|
D | trace_dynevent.h | 120 extern void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, 133 extern int dynevent_arg_add(struct dynevent_cmd *cmd, 147 extern int dynevent_arg_pair_add(struct dynevent_cmd *cmd, 150 extern int dynevent_str_add(struct dynevent_cmd *cmd, const char *str);
|
D | trace_functions.c | 646 char *cmd, char *param, int enable) in ftrace_trace_probe_callback() argument 683 char *glob, char *cmd, char *param, int enable) in ftrace_trace_onoff_callback() argument 691 if (strcmp(cmd, "traceon") == 0) in ftrace_trace_onoff_callback() 696 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback() 702 char *glob, char *cmd, char *param, int enable) in ftrace_stacktrace_callback() argument 711 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback() 717 char *glob, char *cmd, char *param, int enable) in ftrace_dump_callback() argument 727 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback() 733 char *glob, char *cmd, char *param, int enable) in ftrace_cpudump_callback() argument 743 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_cpudump_callback()
|
D | trace_kprobe.c | 928 static int trace_kprobe_run_command(struct dynevent_cmd *cmd) in trace_kprobe_run_command() argument 930 return trace_run_command(cmd->seq.buffer, create_or_delete_trace_kprobe); in trace_kprobe_run_command() 942 void kprobe_event_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen) in kprobe_event_cmd_init() argument 944 dynevent_cmd_init(cmd, buf, maxlen, DYNEVENT_TYPE_KPROBE, in kprobe_event_cmd_init() 972 int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe, in __kprobe_event_gen_cmd_start() argument 980 if (cmd->type != DYNEVENT_TYPE_KPROBE) in __kprobe_event_gen_cmd_start() 991 ret = dynevent_str_add(cmd, buf); in __kprobe_event_gen_cmd_start() 997 ret = dynevent_arg_add(cmd, &arg, NULL); in __kprobe_event_gen_cmd_start() 1009 if (++cmd->n_fields > MAX_TRACE_ARGS) { in __kprobe_event_gen_cmd_start() 1015 ret = dynevent_arg_add(cmd, &arg, NULL); in __kprobe_event_gen_cmd_start() [all …]
|
D | blktrace.c | 723 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 735 switch (cmd) { in blk_trace_ioctl() 1402 char cmd[TASK_COMM_LEN]; in blk_log_generic() local 1404 trace_find_cmdline(ent->pid, cmd); in blk_log_generic() 1409 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1413 t_sector(ent), t_sec(ent), cmd); in blk_log_generic() 1415 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1449 char cmd[TASK_COMM_LEN]; in blk_log_plug() local 1451 trace_find_cmdline(ent->pid, cmd); in blk_log_plug() 1453 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_plug() [all …]
|
D | trace.h | 1123 char *func, char *cmd, 1219 int register_ftrace_command(struct ftrace_func_command *cmd); 1220 int unregister_ftrace_command(struct ftrace_func_command *cmd); 1233 static inline __init int register_ftrace_command(struct ftrace_func_command *cmd) in register_ftrace_command() argument 1750 char *glob, char *cmd, char *param); 1779 extern int register_event_command(struct event_command *cmd); 1780 extern int unregister_event_command(struct event_command *cmd); 1915 char *glob, char *cmd, char *params); 1928 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param); 2010 extern unsigned int err_pos(char *cmd, const char *str); [all …]
|
D | trace_events_hist.c | 346 char *cmd; member 2359 char *glob, char *cmd, char *param); 2483 char *cmd; in create_field_var_hist() local 2521 cmd = kzalloc(MAX_FILTER_STR_VAL, GFP_KERNEL); in create_field_var_hist() 2522 if (!cmd) { in create_field_var_hist() 2528 strcat(cmd, "keys="); in create_field_var_hist() 2533 strcat(cmd, ","); in create_field_var_hist() 2534 strcat(cmd, key_field->field->name); in create_field_var_hist() 2539 strcat(cmd, ":synthetic_"); in create_field_var_hist() 2540 strcat(cmd, field_name); in create_field_var_hist() [all …]
|
/kernel/ |
D | reboot.c | 74 void kernel_restart_prepare(char *cmd) in kernel_restart_prepare() argument 76 blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); in kernel_restart_prepare() 216 void do_kernel_restart(char *cmd) in do_kernel_restart() argument 218 atomic_notifier_call_chain(&restart_handler_list, reboot_mode, cmd); in do_kernel_restart() 247 void kernel_restart(char *cmd) in kernel_restart() argument 249 kernel_restart_prepare(cmd); in kernel_restart() 252 if (!cmd) in kernel_restart() 255 pr_emerg("Restarting system with command '%s'\n", cmd); in kernel_restart() 257 machine_restart(cmd); in kernel_restart() 313 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()
|
D | pid_namespace.c | 324 int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) in reboot_pid_ns() argument 329 switch (cmd) { in reboot_pid_ns()
|
/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 | 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++) 1152 static int handle_ctrl_cmd(char *cmd) in handle_ctrl_cmd() argument 1160 switch (*cmd) { in handle_ctrl_cmd() 2717 int kdb_register_flags(char *cmd, in kdb_register_flags() argument 2731 if (kp->cmd_name && (strcmp(kp->cmd_name, cmd) == 0)) { in kdb_register_flags() 2733 "%s, func %px help %s\n", cmd, func, help); in kdb_register_flags() 2769 kp->cmd_name = cmd; in kdb_register_flags() 2793 int kdb_register(char *cmd, in kdb_register() argument [all …]
|
D | Makefile | 24 $(call cmd,gen-kdb)
|
/kernel/futex/ |
D | core.c | 3738 int cmd = op & FUTEX_CMD_MASK; in do_futex() local 3746 if (cmd != FUTEX_WAIT_BITSET && cmd != FUTEX_WAIT_REQUEUE_PI) in do_futex() 3750 switch (cmd) { in do_futex() 3760 trace_android_vh_do_futex(cmd, &flags, uaddr2); in do_futex() 3761 switch (cmd) { in do_futex() 3802 int cmd = op & FUTEX_CMD_MASK; in SYSCALL_DEFINE6() local 3804 if (utime && (cmd == FUTEX_WAIT || cmd == FUTEX_LOCK_PI || in SYSCALL_DEFINE6() 3805 cmd == FUTEX_WAIT_BITSET || in SYSCALL_DEFINE6() 3806 cmd == FUTEX_WAIT_REQUEUE_PI)) { in SYSCALL_DEFINE6() 3815 if (cmd == FUTEX_WAIT) in SYSCALL_DEFINE6() [all …]
|
/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 | 450 SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) in SYSCALL_DEFINE3() argument 452 switch (cmd) { in SYSCALL_DEFINE3() 465 switch (cmd) { in SYSCALL_DEFINE3()
|
/kernel/debug/ |
D | gdbstub.c | 1095 int gdbstub_state(struct kgdb_state *ks, char *cmd) in gdbstub_state() argument 1099 switch (cmd[0]) { in gdbstub_state() 1110 strscpy(remcom_in_buffer, cmd, sizeof(remcom_in_buffer)); in gdbstub_state() 1113 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);
|