/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 | 291 int dynevent_arg_add(struct dynevent_cmd *cmd, in dynevent_arg_add() argument 303 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 336 int dynevent_arg_pair_add(struct dynevent_cmd *cmd, in dynevent_arg_pair_add() argument 348 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add() 371 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument 375 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add() 404 void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, in dynevent_cmd_init() argument 408 memset(cmd, '\0', sizeof(*cmd)); in dynevent_cmd_init() 410 seq_buf_init(&cmd->seq, buf, maxlen); in dynevent_cmd_init() 411 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 | 1043 int synth_event_add_field(struct dynevent_cmd *cmd, const char *type, in synth_event_add_field() argument 1049 if (cmd->type != DYNEVENT_TYPE_SYNTH) in synth_event_add_field() 1060 ret = dynevent_arg_pair_add(cmd, &arg_pair, synth_event_check_arg_fn); in synth_event_add_field() 1064 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field() 1087 int synth_event_add_field_str(struct dynevent_cmd *cmd, const char *type_name) in synth_event_add_field_str() argument 1092 if (cmd->type != DYNEVENT_TYPE_SYNTH) in synth_event_add_field_str() 1102 ret = dynevent_arg_add(cmd, &arg, NULL); in synth_event_add_field_str() 1106 if (++cmd->n_fields > SYNTH_FIELDS_MAX) in synth_event_add_field_str() 1130 int synth_event_add_fields(struct dynevent_cmd *cmd, in synth_event_add_fields() argument 1143 ret = synth_event_add_field(cmd, fields[i].type, fields[i].name); in synth_event_add_fields() [all …]
|
D | trace_events_trigger.c | 357 __init int register_event_command(struct event_command *cmd) in register_event_command() argument 364 if (strcmp(cmd->name, p->name) == 0) { in register_event_command() 369 list_add(&cmd->list, &trigger_commands); in register_event_command() 380 __init int unregister_event_command(struct event_command *cmd) in unregister_event_command() argument 387 if (strcmp(cmd->name, p->name) == 0) { in unregister_event_command() 826 char *cmd, in event_trigger_alloc() argument 833 trigger_ops = cmd_ops->get_trigger_ops(cmd, param); in event_trigger_alloc() 981 char *glob, char *cmd, char *param_and_filter) in event_trigger_parse() argument 995 trigger_data = event_trigger_alloc(cmd_ops, cmd, param, file); in event_trigger_parse() 1389 onoff_get_trigger_ops(char *cmd, char *param) in onoff_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 | 800 char *cmd, char *param, int enable) in ftrace_trace_probe_callback() argument 837 char *glob, char *cmd, char *param, int enable) in ftrace_trace_onoff_callback() argument 845 if (strcmp(cmd, "traceon") == 0) in ftrace_trace_onoff_callback() 850 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_trace_onoff_callback() 856 char *glob, char *cmd, char *param, int enable) in ftrace_stacktrace_callback() argument 865 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_stacktrace_callback() 871 char *glob, char *cmd, char *param, int enable) in ftrace_dump_callback() argument 881 return ftrace_trace_probe_callback(tr, ops, hash, glob, cmd, in ftrace_dump_callback() 887 char *glob, char *cmd, char *param, int enable) in ftrace_cpudump_callback() argument 897 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 | 982 static int trace_kprobe_run_command(struct dynevent_cmd *cmd) in trace_kprobe_run_command() argument 984 return create_or_delete_trace_kprobe(cmd->seq.buffer); in trace_kprobe_run_command() 996 void kprobe_event_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen) in kprobe_event_cmd_init() argument 998 dynevent_cmd_init(cmd, buf, maxlen, DYNEVENT_TYPE_KPROBE, in kprobe_event_cmd_init() 1026 int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe, in __kprobe_event_gen_cmd_start() argument 1034 if (cmd->type != DYNEVENT_TYPE_KPROBE) in __kprobe_event_gen_cmd_start() 1045 ret = dynevent_str_add(cmd, buf); in __kprobe_event_gen_cmd_start() 1051 ret = dynevent_arg_add(cmd, &arg, NULL); in __kprobe_event_gen_cmd_start() 1063 if (++cmd->n_fields > MAX_TRACE_ARGS) { in __kprobe_event_gen_cmd_start() 1069 ret = dynevent_arg_add(cmd, &arg, NULL); in __kprobe_event_gen_cmd_start() [all …]
|
D | blktrace.c | 730 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 742 switch (cmd) { in blk_trace_ioctl() 1348 char cmd[TASK_COMM_LEN]; in blk_log_generic() local 1350 trace_find_cmdline(ent->pid, cmd); in blk_log_generic() 1355 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1359 t_sector(ent), t_sec(ent), cmd); in blk_log_generic() 1361 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_generic() 1395 char cmd[TASK_COMM_LEN]; in blk_log_plug() local 1397 trace_find_cmdline(ent->pid, cmd); in blk_log_plug() 1399 trace_seq_printf(s, "[%s]\n", cmd); in blk_log_plug() [all …]
|
D | trace.h | 989 char *func, char *cmd, 1085 int register_ftrace_command(struct ftrace_func_command *cmd); 1086 int unregister_ftrace_command(struct ftrace_func_command *cmd); 1099 static inline __init int register_ftrace_command(struct ftrace_func_command *cmd) in register_ftrace_command() argument 1577 char *glob, char *cmd, 1604 extern int register_event_command(struct event_command *cmd); 1605 extern int unregister_event_command(struct event_command *cmd); 1613 char *cmd, 1777 char *glob, char *cmd, 1789 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param); [all …]
|
D | trace_events_hist.c | 543 char *cmd; member 2832 char *glob, char *cmd, 2957 char *cmd; in create_field_var_hist() local 2995 cmd = kzalloc(MAX_FILTER_STR_VAL, GFP_KERNEL); in create_field_var_hist() 2996 if (!cmd) { in create_field_var_hist() 3002 strcat(cmd, "keys="); in create_field_var_hist() 3007 strcat(cmd, ","); in create_field_var_hist() 3008 strcat(cmd, key_field->field->name); in create_field_var_hist() 3013 strcat(cmd, ":synthetic_"); in create_field_var_hist() 3014 strcat(cmd, field_name); in create_field_var_hist() [all …]
|
/kernel/futex/ |
D | syscalls.c | 89 int cmd = op & FUTEX_CMD_MASK; in do_futex() local 97 if (cmd != FUTEX_WAIT_BITSET && cmd != FUTEX_WAIT_REQUEUE_PI && in do_futex() 98 cmd != FUTEX_LOCK_PI2) in do_futex() 102 trace_android_vh_do_futex(cmd, &flags, uaddr2); in do_futex() 103 switch (cmd) { in do_futex() 139 static __always_inline bool futex_cmd_has_timeout(u32 cmd) in futex_cmd_has_timeout() argument 141 switch (cmd) { in futex_cmd_has_timeout() 153 futex_init_timeout(u32 cmd, u32 op, struct timespec64 *ts, ktime_t *t) in futex_init_timeout() argument 159 if (cmd == FUTEX_WAIT) in futex_init_timeout() 161 else if (cmd != FUTEX_LOCK_PI && !(op & FUTEX_CLOCK_REALTIME)) in futex_init_timeout() [all …]
|
/kernel/ |
D | reboot.c | 83 void kernel_restart_prepare(char *cmd) in kernel_restart_prepare() argument 85 blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); in kernel_restart_prepare() 225 void do_kernel_restart(char *cmd) in do_kernel_restart() argument 227 atomic_notifier_call_chain(&restart_handler_list, reboot_mode, cmd); in do_kernel_restart() 267 void kernel_restart(char *cmd) in kernel_restart() argument 269 kernel_restart_prepare(cmd); in kernel_restart() 273 if (!cmd) in kernel_restart() 276 pr_emerg("Restarting system with command '%s'\n", cmd); in kernel_restart() 278 machine_restart(cmd); in kernel_restart() 319 unsigned long mode, void *cmd) in sys_off_notify() argument [all …]
|
D | taskstats.c | 66 static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, in prepare_reply() argument 82 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply() 84 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 669 .cmd = TASKSTATS_CMD_GET, 677 .cmd = CGROUPSTATS_CMD_GET,
|
D | kcov.c | 574 static int kcov_ioctl_locked(struct kcov *kcov, unsigned int cmd, in kcov_ioctl_locked() argument 583 switch (cmd) { in kcov_ioctl_locked() 680 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 691 switch (cmd) { in kcov_ioctl() 740 res = kcov_ioctl_locked(kcov, cmd, arg); in kcov_ioctl()
|
/kernel/power/ |
D | user.c | 249 static long snapshot_ioctl(struct file *filp, unsigned int cmd, in snapshot_ioctl() argument 262 if (_IOC_TYPE(cmd) != SNAPSHOT_IOC_MAGIC) in snapshot_ioctl() 264 if (_IOC_NR(cmd) > SNAPSHOT_IOC_MAXNR) in snapshot_ioctl() 275 switch (cmd) { in snapshot_ioctl() 425 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snapshot_compat_ioctl() argument 429 switch (cmd) { in snapshot_compat_ioctl() 435 return snapshot_ioctl(file, cmd, in snapshot_compat_ioctl() 438 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 | 709 kdbtab_t cmd; /* Macro command */ member 734 kdb_register(&kdb_macro->cmd); in kdb_defcmd2() 769 kmp = container_of(kp, struct kdb_macro, cmd); in kdb_defcmd() 788 mp = &kdb_macro->cmd; in kdb_defcmd() 852 kmp = container_of(kp, struct kdb_macro, cmd); in kdb_exec_defcmd() 858 kdb_printf("[%s]kdb> %s\n", kmp->cmd.name, kms->statement); in kdb_exec_defcmd() 1137 static int handle_ctrl_cmd(char *cmd) in handle_ctrl_cmd() argument 1145 switch (*cmd) { in handle_ctrl_cmd() 2635 int kdb_register(kdbtab_t *cmd) in kdb_register() argument 2640 if (strcmp(kp->name, cmd->name) == 0) { in kdb_register() [all …]
|
D | Makefile | 24 $(call cmd,gen-kdb)
|
/kernel/sched/ |
D | core_sched.c | 129 int sched_core_share_pid(unsigned int cmd, pid_t pid, enum pid_type type, in sched_core_share_pid() argument 144 if (type > PIDTYPE_PGID || cmd >= PR_SCHED_CORE_MAX || pid < 0 || in sched_core_share_pid() 145 (cmd != PR_SCHED_CORE_GET && uaddr)) in sched_core_share_pid() 170 switch (cmd) { in sched_core_share_pid()
|
D | membarrier.c | 585 SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) in SYSCALL_DEFINE3() argument 587 switch (cmd) { in SYSCALL_DEFINE3() 600 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/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()
|
/kernel/bpf/ |
D | syscall.c | 4494 int cmd) in bpf_map_do_batch() argument 4496 bool has_read = cmd == BPF_MAP_LOOKUP_BATCH || in bpf_map_do_batch() 4497 cmd == BPF_MAP_LOOKUP_AND_DELETE_BATCH; in bpf_map_do_batch() 4498 bool has_write = cmd != BPF_MAP_LOOKUP_BATCH; in bpf_map_do_batch() 4522 if (cmd == BPF_MAP_LOOKUP_BATCH) in bpf_map_do_batch() 4524 else if (cmd == BPF_MAP_LOOKUP_AND_DELETE_BATCH) in bpf_map_do_batch() 4526 else if (cmd == BPF_MAP_UPDATE_BATCH) in bpf_map_do_batch() 4931 static int __sys_bpf(int cmd, bpfptr_t uattr, unsigned int size) in __sys_bpf() argument 4948 (cmd == BPF_MAP_CREATE || cmd == BPF_PROG_LOAD)) in __sys_bpf() 4961 trace_android_vh_check_bpf_syscall(cmd, &attr, size); in __sys_bpf() [all …]
|