Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 – 25 of 75) sorted by relevance

123

/f-stack/dpdk/lib/librte_cmdline/
H A Dcmdline.h32 struct cmdline { struct
43 struct cmdline; argument
47 struct cmdline *cmdline_new(cmdline_parse_ctx_t *ctx, const char *prompt, int s_in, int s_out);
48 void cmdline_set_prompt(struct cmdline *cl, const char *prompt);
49 void cmdline_free(struct cmdline *cl);
50 void cmdline_printf(const struct cmdline *cl, const char *fmt, ...)
52 int cmdline_in(struct cmdline *cl, const char *buf, int size);
57 cmdline_get_rdline(struct cmdline *cl);
71 int cmdline_poll(struct cmdline *cl);
73 void cmdline_interact(struct cmdline *cl);
[all …]
H A Dcmdline.c29 struct cmdline *cl = rdl->opaque; in cmdline_valid_buffer()
45 struct cmdline *cl = rdl->opaque; in cmdline_complete_buffer()
53 struct cmdline *cl; in cmdline_write_char()
75 struct cmdline *
78 struct cmdline *cl; in cmdline_new()
84 cl = malloc(sizeof(struct cmdline)); in cmdline_new()
107 cmdline_get_rdline(struct cmdline *cl) in cmdline_get_rdline()
113 cmdline_free(struct cmdline *cl) in cmdline_free()
180 cmdline_quit(struct cmdline *cl) in cmdline_quit()
188 cmdline_poll(struct cmdline *cl) in cmdline_poll()
[all …]
H A Dcmdline_private.h25 struct cmdline { struct
38 void terminal_adjust(struct cmdline *cl); argument
41 void terminal_restore(const struct cmdline *cl);
44 int cmdline_poll_char(struct cmdline *cl);
47 ssize_t cmdline_read_char(struct cmdline *cl, char *c);
H A Dcmdline_socket.c23 struct cmdline *
40 struct cmdline *
43 struct cmdline *cl; in cmdline_stdin_new()
54 cmdline_stdin_exit(struct cmdline *cl) in cmdline_stdin_exit()
H A Dcmdline_parse.h74 struct cmdline;
133 void (*f)(void *, struct cmdline *, void *);
155 int cmdline_parse(struct cmdline *cl, const char *buf);
176 int cmdline_complete(struct cmdline *cl, const char *buf, int *state,
H A Dcmdline_os_unix.c12 terminal_adjust(struct cmdline *cl) in terminal_adjust()
26 terminal_restore(const struct cmdline *cl) in terminal_restore()
32 cmdline_poll_char(struct cmdline *cl) in cmdline_poll_char()
44 cmdline_read_char(struct cmdline *cl, char *c) in cmdline_read_char()
H A Dcmdline_socket.h17 struct cmdline *cmdline_file_new(cmdline_parse_ctx_t *ctx, const char *prompt, const char *path);
18 struct cmdline *cmdline_stdin_new(cmdline_parse_ctx_t *ctx, const char *prompt);
19 void cmdline_stdin_exit(struct cmdline *cl);
H A Dcmdline_os_windows.c21 terminal_adjust(struct cmdline *cl) in terminal_adjust()
57 terminal_restore(const struct cmdline *cl) in terminal_restore()
95 cmdline_poll_char_file(struct cmdline *cl, HANDLE handle) in cmdline_poll_char_file()
137 cmdline_poll_char(struct cmdline *cl) in cmdline_poll_char()
146 cmdline_read_char(struct cmdline *cl, char *c) in cmdline_read_char()
/f-stack/dpdk/app/test/
H A Dautotest_runner.py66 cmdline, prefix = queue.get()
74 cmdline = "%s %s" % (cmdline, prefix_cmdline)
83 print("\ncmdline=%s" % cmdline, file=startuplog)
181 cmdline = "" variable in AutotestRunner
195 self.cmdline = cmdline
206 binary = cmdline.split()[0]
228 cmdline = ("taskset -c %i " % cpu_nr) + self.cmdline
230 return cmdline
299 for proc, cmdline in enumerate(worker_cmdlines):
301 group_queue.put(tuple((cmdline, prefix)))
[all …]
H A Dautotest.py34 cmdline = "%s -c f" % (sys.argv[1]) variable
36 print(cmdline)
42 runner = autotest_runner.AutotestRunner(cmdline, target, test_blocklist,
H A Dcommands.c62 __rte_unused struct cmdline *cl, in cmd_autotest_parsed()
115 __rte_unused struct cmdline *cl, in cmd_dump_parsed()
169 static void cmd_dump_one_parsed(void *parsed_result, struct cmdline *cl, in cmd_dump_one_parsed()
220 struct cmdline *cl, in cmd_quit_parsed()
247 static void cmd_set_rxtx_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_rxtx_parsed()
283 struct cmdline *cl, in cmd_set_rxtx_anchor_parsed()
320 struct cmdline *cl, in cmd_set_rxtx_sc_parsed()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_013_pos.ksh63 typeset cmdline="zfs create -s -V ${size[j]} \
66 str=$(eval $cmdline 2>&1)
68 log_note "SUCCESS: $cmdline"
74 log_note "UNSUPPORTED: $cmdline"
76 log_fail "$cmdline"
H A Dzfs_create_002_pos.ksh65 typeset cmdline="zfs create -s -V ${size[j]} \
68 str=$(eval $cmdline 2>&1)
70 log_note "SUCCESS: $cmdline"
76 log_note "UNSUPPORTED: $cmdline"
78 log_fail "$cmdline"
/f-stack/dpdk/app/test-cmdline/
H A Dcommands.c29 struct cmdline *cl, in cmd_quit_parsed()
60 struct cmdline *cl, in cmd_single_parsed()
91 struct cmdline *cl, in cmd_single_long_parsed()
124 struct cmdline *cl, in cmd_autocomplete_1_parsed()
157 struct cmdline *cl, in cmd_autocomplete_2_parsed()
188 struct cmdline *cl, in cmd_num_parsed()
220 struct cmdline *cl, in cmd_ambig_1_parsed()
256 struct cmdline *cl, in cmd_ambig_2_parsed()
294 struct cmdline *cl, in cmd_get_history_bufsize_parsed()
328 struct cmdline *cl, in cmd_clear_history_parsed()
/f-stack/dpdk/drivers/net/failsafe/
H A Dfailsafe_args.c95 RTE_ASSERT(cmdline != NULL || sdev->cmdline != NULL); in fs_execute_cmd()
96 if (sdev->cmdline == NULL) { in fs_execute_cmd()
99 len = strlen(cmdline) + 1; in fs_execute_cmd()
101 if (sdev->cmdline == NULL) { in fs_execute_cmd()
105 strlcpy(sdev->cmdline, cmdline, len); in fs_execute_cmd()
108 if (sdev->cmdline[i] == ',') in fs_execute_cmd()
109 sdev->cmdline[i] = ' '; in fs_execute_cmd()
111 DEBUG("'%s'", sdev->cmdline); in fs_execute_cmd()
450 free(sdev->cmdline); in failsafe_args_free()
451 sdev->cmdline = NULL; in failsafe_args_free()
[all …]
/f-stack/freebsd/arm64/arm64/
H A Dmachdep_boot.c133 cmdline_set_env(char *cmdline, const char *guard) in cmdline_set_env() argument
138 while (isspace(*cmdline)) in cmdline_set_env()
139 cmdline++; in cmdline_set_env()
144 if (strncasecmp(cmdline, guard, guard_len) != 0) in cmdline_set_env()
146 cmdline += guard_len; in cmdline_set_env()
149 boothowto |= boot_parse_cmdline(cmdline); in cmdline_set_env()
/f-stack/dpdk/examples/qos_sched/
H A Dcmdline.c25 struct cmdline *cl, in cmd_help_parsed()
68 struct cmdline *cl, in cmd_quit_parsed()
95 __rte_unused struct cmdline *cl, in cmd_setqavg_parsed()
137 __rte_unused struct cmdline *cl, in cmd_appstats_parsed()
171 __rte_unused struct cmdline *cl, in cmd_subportstats_parsed()
222 __rte_unused struct cmdline *cl, in cmd_pipestats_parsed()
285 __rte_unused struct cmdline *cl, in cmd_avg_q_parsed()
362 __rte_unused struct cmdline *cl, in cmd_avg_tcpipe_parsed()
429 __rte_unused struct cmdline *cl, in cmd_avg_pipe_parsed()
488 __rte_unused struct cmdline *cl, in cmd_avg_tcsubport_parsed()
[all …]
/f-stack/dpdk/examples/multi_process/hotplug_mp/
H A Dcommands.c20 struct cmdline *cl, in cmd_help_parsed()
50 struct cmdline *cl, in cmd_quit_parsed()
76 struct cmdline *cl, in cmd_list_parsed()
114 struct cmdline *cl, in cmd_dev_attach_parsed()
161 struct cmdline *cl, in cmd_dev_detach_parsed()
/f-stack/dpdk/examples/ethtool/ethtool-app/
H A Dethapp.c139 struct cmdline *ctx, in pcmd_quit_callback()
148 __rte_unused struct cmdline *ctx, in pcmd_drvinfo_callback()
171 __rte_unused struct cmdline *ctx, in pcmd_link_callback()
201 __rte_unused struct cmdline *ctx, in pcmd_regs_callback()
247 __rte_unused struct cmdline *ctx, in pcmd_eeprom_callback()
306 __rte_unused struct cmdline *ctx, in pcmd_module_eeprom_callback()
354 __rte_unused struct cmdline *ctx, in pcmd_pause_callback()
404 __rte_unused struct cmdline *ctx, in pcmd_open_callback()
428 __rte_unused struct cmdline *ctx, in pcmd_stop_callback()
453 __rte_unused struct cmdline *ctx, in pcmd_rxmode_callback()
[all …]
/f-stack/dpdk/examples/vm_power_manager/
H A Dvm_power_cli.c31 struct cmdline *cl, in cmd_quit_parsed()
60 cmd_show_vm_parsed(void *parsed_result, struct cmdline *cl, in cmd_show_vm_parsed()
137 cmd_set_pcpu_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_pcpu_parsed()
184 cmd_vm_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_vm_op_parsed()
223 cmd_channels_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_channels_op_parsed()
304 __rte_unused struct cmdline *cl, in cmd_set_query_parsed()
351 cmd_channels_status_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_channels_status_op_parsed()
437 cmd_show_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_show_cpu_freq_parsed()
478 cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_cpu_freq_parsed()
541 struct cmdline *cl; in run_cli()
/f-stack/freebsd/kern/
H A Dsubr_boot.c187 boot_parse_cmdline_delim(char *cmdline, const char *delim) in boot_parse_cmdline_delim() argument
193 while ((v = strsep(&cmdline, delim)) != NULL) { in boot_parse_cmdline_delim()
205 boot_parse_cmdline(char *cmdline) in boot_parse_cmdline() argument
208 return (boot_parse_cmdline_delim(cmdline, " \t\n")); in boot_parse_cmdline()
/f-stack/dpdk/examples/multi_process/simple_mp/
H A Dmp_commands.c43 __rte_unused struct cmdline *cl, in cmd_send_parsed()
81 struct cmdline *cl, in cmd_quit_parsed()
108 struct cmdline *cl, in cmd_help_parsed()
/f-stack/freebsd/sys/
H A Dboot.h40 int boot_parse_cmdline_delim(char *cmdline, const char *delim);
41 int boot_parse_cmdline(char *cmdline);
/f-stack/dpdk/app/test-pmd/
H A Dcmdline.c74 static struct cmdline *testpmd_cl;
1245 __rte_unused struct cmdline *cl, in cmd_operate_specific_port_parsed()
1529 __rte_unused struct cmdline *cl, in cmd_config_speed_all_parsed()
2739 __rte_unused struct cmdline *cl, in cmd_setup_rxtx_queue_parsed()
7266 struct cmdline *cl, in cmd_reset_parsed()
7761 __rte_unused struct cmdline *cl, in cmd_showqueue_parsed()
8198 struct cmdline *cl, in cmd_quit_parsed()
10728 __rte_unused struct cmdline *cl, in cmd_set_vf_vlan_anti_spoof_parsed()
10834 __rte_unused struct cmdline *cl, in cmd_set_vf_mac_anti_spoof_parsed()
10940 __rte_unused struct cmdline *cl, in cmd_set_vf_vlan_stripq_parsed()
[all …]
/f-stack/freebsd/arm/arm/
H A Dmachdep_boot.c151 cmdline_set_env(char *cmdline, const char *guard) in cmdline_set_env() argument
156 while (isspace(*cmdline)) in cmdline_set_env()
157 cmdline++; in cmdline_set_env()
162 if (strncasecmp(cmdline, guard, guard_len) != 0) in cmdline_set_env()
164 cmdline += guard_len; in cmdline_set_env()
167 boothowto |= boot_parse_cmdline(cmdline); in cmdline_set_env()

123