Home
last modified time | relevance | path

Searched refs:lcore_id (Results 1 – 25 of 146) sorted by relevance

123456

/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_lcore.c153 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_eal_cpu_init()
170 CPU_SET(lcore_id, &lcore_config[lcore_id].cpuset); in rte_eal_cpu_init()
179 lcore_id, lcore_config[lcore_id].core_id, in rte_eal_cpu_init()
183 for (; lcore_id < CPU_SETSIZE; lcore_id++) { in rte_eal_cpu_init()
187 lcore_id, eal_cpu_core_id(lcore_id), in rte_eal_cpu_init()
204 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_eal_cpu_init()
295 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_lcore_callback_register()
334 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_lcore_callback_unregister()
356 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in eal_lcore_non_eal_allocate()
379 lcore_id); in eal_lcore_non_eal_allocate()
[all …]
H A Deal_common_launch.c49 int lcore_id; in rte_eal_mp_remote_launch() local
53 RTE_LCORE_FOREACH_WORKER(lcore_id) { in rte_eal_mp_remote_launch()
54 if (lcore_config[lcore_id].state != WAIT) in rte_eal_mp_remote_launch()
59 RTE_LCORE_FOREACH_WORKER(lcore_id) { in rte_eal_mp_remote_launch()
60 rte_eal_remote_launch(f, arg, lcore_id); in rte_eal_mp_remote_launch()
75 rte_eal_get_lcore_state(unsigned lcore_id) in rte_eal_get_lcore_state() argument
77 return lcore_config[lcore_id].state; in rte_eal_get_lcore_state()
87 unsigned lcore_id; in rte_eal_mp_wait_lcore() local
89 RTE_LCORE_FOREACH_WORKER(lcore_id) { in rte_eal_mp_wait_lcore()
90 rte_eal_wait_lcore(lcore_id); in rte_eal_mp_wait_lcore()
H A Deal_common_thread.c68 unsigned int lcore_id = rte_lcore_id(); in thread_update_affinity() local
151 RTE_PER_LCORE(_lcore_id) = lcore_id; in __rte_thread_init()
255 unsigned int lcore_id; in rte_thread_register() local
273 if (lcore_id >= RTE_MAX_LCORE) in rte_thread_register()
274 lcore_id = LCORE_ID_ANY; in rte_thread_register()
275 __rte_thread_init(lcore_id, &cpuset); in rte_thread_register()
276 if (lcore_id == LCORE_ID_ANY) { in rte_thread_register()
281 lcore_id); in rte_thread_register()
290 if (lcore_id != LCORE_ID_ANY) in rte_thread_unregister()
293 if (lcore_id != LCORE_ID_ANY) in rte_thread_unregister()
[all …]
/f-stack/dpdk/lib/librte_power/
H A Dpower_kvm_vm.c25 power_kvm_vm_init(unsigned int lcore_id) in power_kvm_vm_init() argument
27 if (lcore_id >= RTE_MAX_LCORE) { in power_kvm_vm_init()
29 lcore_id, RTE_MAX_LCORE-1); in power_kvm_vm_init()
32 pkt[lcore_id].command = CPU_POWER; in power_kvm_vm_init()
33 pkt[lcore_id].resource_id = lcore_id; in power_kvm_vm_init()
38 power_kvm_vm_exit(unsigned int lcore_id) in power_kvm_vm_exit() argument
40 guest_channel_host_disconnect(lcore_id); in power_kvm_vm_exit()
76 if (lcore_id >= RTE_MAX_LCORE) { in send_msg()
78 lcore_id, RTE_MAX_LCORE-1); in send_msg()
81 pkt[lcore_id].unit = scale_direction; in send_msg()
[all …]
H A Dpower_acpi_cpufreq.c146 pi->lcore_id); in power_set_governor_userspace()
202 pi->lcore_id); in power_get_available_freqs()
240 pi->lcore_id); in power_get_available_freqs()
245 pi->lcore_id); in power_get_available_freqs()
250 count, pi->lcore_id); in power_get_available_freqs()
270 pi->lcore_id); in power_init_for_setting_freq()
326 pi->lcore_id = lcore_id; in power_acpi_cpufreq_init()
386 pi->lcore_id); in power_set_governor_original()
631 lcore_id); in power_acpi_enable_turbo()
639 lcore_id); in power_acpi_enable_turbo()
[all …]
H A Dguest_channel.c62 if (lcore_id >= RTE_MAX_LCORE) { in guest_channel_host_connect()
64 lcore_id, RTE_MAX_LCORE-1); in guest_channel_host_connect()
70 lcore_id, global_fds[lcore_id]); in guest_channel_host_connect()
76 fd_path, lcore_id); in guest_channel_host_connect()
104 global_fds[lcore_id] = fd; in guest_channel_host_connect()
117 global_fds[lcore_id] = -1; in guest_channel_host_connect()
153 unsigned int lcore_id) in rte_power_guest_channel_send_msg() argument
160 unsigned int lcore_id) in power_guest_channel_read_msg() argument
215 unsigned int lcore_id) in rte_power_guest_channel_receive_msg() argument
230 close(global_fds[lcore_id]); in guest_channel_host_disconnect()
[all …]
H A Dpower_pstate_cpufreq.c168 pi->lcore_id); in power_init_for_setting_freq()
174 pi->lcore_id); in power_init_for_setting_freq()
186 pi->lcore_id); in power_init_for_setting_freq()
255 pi->lcore_id); in set_freq_internal()
344 pi->lcore_id); in power_set_governor_performance()
399 pi->lcore_id); in power_set_governor_original()
452 pi->lcore_id); in power_get_available_freqs()
455 pi->lcore_id); in power_get_available_freqs()
622 pi->lcore_id = lcore_id; in power_pstate_cpufreq_init()
889 lcore_id); in power_pstate_enable_turbo()
[all …]
H A Dpower_acpi_cpufreq.h45 int power_acpi_cpufreq_init(unsigned int lcore_id);
58 int power_acpi_cpufreq_exit(unsigned int lcore_id);
91 uint32_t power_acpi_cpufreq_get_freq(unsigned int lcore_id);
123 int power_acpi_cpufreq_freq_up(unsigned int lcore_id);
138 int power_acpi_cpufreq_freq_down(unsigned int lcore_id);
153 int power_acpi_cpufreq_freq_max(unsigned int lcore_id);
168 int power_acpi_cpufreq_freq_min(unsigned int lcore_id);
182 int power_acpi_turbo_status(unsigned int lcore_id);
195 int power_acpi_enable_turbo(unsigned int lcore_id);
208 int power_acpi_disable_turbo(unsigned int lcore_id);
[all …]
H A Dpower_kvm_vm.h43 int power_kvm_vm_init(unsigned int lcore_id);
55 int power_kvm_vm_exit(unsigned int lcore_id);
84 uint32_t power_kvm_vm_get_freq(unsigned int lcore_id);
113 int power_kvm_vm_freq_up(unsigned int lcore_id);
127 int power_kvm_vm_freq_down(unsigned int lcore_id);
141 int power_kvm_vm_freq_max(unsigned int lcore_id);
155 int power_kvm_vm_freq_min(unsigned int lcore_id);
166 int power_kvm_vm_turbo_status(unsigned int lcore_id);
178 int power_kvm_vm_enable_turbo(unsigned int lcore_id);
190 int power_kvm_vm_disable_turbo(unsigned int lcore_id);
[all …]
H A Dpower_pstate_cpufreq.h45 int power_pstate_cpufreq_init(unsigned int lcore_id);
58 int power_pstate_cpufreq_exit(unsigned int lcore_id);
91 uint32_t power_pstate_cpufreq_get_freq(unsigned int lcore_id);
123 int power_pstate_cpufreq_freq_up(unsigned int lcore_id);
138 int power_pstate_cpufreq_freq_down(unsigned int lcore_id);
153 int power_pstate_cpufreq_freq_max(unsigned int lcore_id);
168 int power_pstate_cpufreq_freq_min(unsigned int lcore_id);
182 int power_pstate_turbo_status(unsigned int lcore_id);
195 int power_pstate_enable_turbo(unsigned int lcore_id);
208 int power_pstate_disable_turbo(unsigned int lcore_id);
[all …]
H A Drte_power_empty_poll.c358 poll_stats->lcore_id); in empty_poll_training()
479 if (lcore_id >= NUM_NODES) in rte_power_empty_poll_stat_update()
484 if (poll_stats->lcore_id == 0) in rte_power_empty_poll_stat_update()
485 poll_stats->lcore_id = lcore_id; in rte_power_empty_poll_stat_update()
498 if (lcore_id >= NUM_NODES) in rte_power_poll_stat_update()
503 if (poll_stats->lcore_id == 0) in rte_power_poll_stat_update()
504 poll_stats->lcore_id = lcore_id; in rte_power_poll_stat_update()
517 if (lcore_id >= NUM_NODES) in rte_power_empty_poll_stat_fetch()
523 poll_stats->lcore_id = lcore_id; in rte_power_empty_poll_stat_fetch()
533 if (lcore_id >= NUM_NODES) in rte_power_poll_stat_fetch()
[all …]
H A Drte_power.c145 rte_power_init(unsigned int lcore_id) in rte_power_init() argument
151 return power_acpi_cpufreq_init(lcore_id); in rte_power_init()
153 return power_kvm_vm_init(lcore_id); in rte_power_init()
155 return power_pstate_cpufreq_init(lcore_id); in rte_power_init()
162 ret = power_acpi_cpufreq_init(lcore_id); in rte_power_init()
169 ret = power_pstate_cpufreq_init(lcore_id); in rte_power_init()
176 ret = power_kvm_vm_init(lcore_id); in rte_power_init()
182 "%u\n", lcore_id); in rte_power_init()
188 rte_power_exit(unsigned int lcore_id) in rte_power_exit() argument
192 return power_acpi_cpufreq_exit(lcore_id); in rte_power_exit()
[all …]
/f-stack/dpdk/examples/timer/
H A Dmain.c32 unsigned lcore_id = rte_lcore_id(); in timer0_cb() local
34 printf("%s() on lcore %u\n", __func__, lcore_id); in timer0_cb()
47 unsigned lcore_id = rte_lcore_id(); in timer1_cb() local
50 printf("%s() on lcore %u\n", __func__, lcore_id); in timer1_cb()
54 lcore_id = rte_get_next_lcore(lcore_id, 0, 1); in timer1_cb()
62 unsigned lcore_id; in lcore_mainloop() local
64 lcore_id = rte_lcore_id(); in lcore_mainloop()
89 unsigned lcore_id; in main() local
105 lcore_id = rte_lcore_id(); in main()
109 lcore_id = rte_get_next_lcore(lcore_id, 0, 1); in main()
[all …]
/f-stack/dpdk/examples/vm_power_manager/guest_cli/
H A Dvm_power_cli_guest.c119 unsigned lcore_id; in cmd_quit_parsed() local
161 unsigned int lcore_id) in receive_freq_list() argument
167 lcore_id); in receive_freq_list()
185 unsigned int lcore_id; in cmd_query_freq_list_parsed() local
241 lcore_id, in cmd_query_freq_list_parsed()
271 unsigned int lcore_id) in receive_capabilities() argument
277 lcore_id); in receive_capabilities()
295 unsigned int lcore_id; in cmd_query_caps_list_parsed() local
356 lcore_id, in cmd_query_caps_list_parsed()
408 uint8_t lcore_id; member
[all …]
/f-stack/dpdk/lib/librte_eal/windows/
H A Deal_thread.c62 unsigned int lcore_id; in eal_thread_loop() local
70 RTE_LCORE_FOREACH_WORKER(lcore_id) { in eal_thread_loop()
74 if (lcore_id == RTE_MAX_LCORE) in eal_thread_loop()
80 __rte_thread_init(lcore_id, &lcore_config[lcore_id].cpuset); in eal_thread_loop()
83 lcore_id, (uintptr_t)thread_id, cpuset); in eal_thread_loop()
97 lcore_config[lcore_id].state = RUNNING; in eal_thread_loop()
106 if (lcore_config[lcore_id].f == NULL) in eal_thread_loop()
110 fct_arg = lcore_config[lcore_id].arg; in eal_thread_loop()
111 ret = lcore_config[lcore_id].f(fct_arg); in eal_thread_loop()
112 lcore_config[lcore_id].ret = ret; in eal_thread_loop()
[all …]
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_thread.c75 unsigned lcore_id; in eal_thread_loop() local
83 RTE_LCORE_FOREACH_WORKER(lcore_id) { in eal_thread_loop()
87 if (lcore_id == RTE_MAX_LCORE) in eal_thread_loop()
93 __rte_thread_init(lcore_id, &lcore_config[lcore_id].cpuset); in eal_thread_loop()
113 lcore_config[lcore_id].state = RUNNING; in eal_thread_loop()
122 if (lcore_config[lcore_id].f == NULL) in eal_thread_loop()
126 fct_arg = lcore_config[lcore_id].arg; in eal_thread_loop()
127 ret = lcore_config[lcore_id].f(fct_arg); in eal_thread_loop()
128 lcore_config[lcore_id].ret = ret; in eal_thread_loop()
135 lcore_config[lcore_id].state = WAIT; in eal_thread_loop()
[all …]
/f-stack/dpdk/lib/librte_eal/freebsd/
H A Deal_thread.c75 unsigned lcore_id; in eal_thread_loop() local
83 RTE_LCORE_FOREACH_WORKER(lcore_id) { in eal_thread_loop()
87 if (lcore_id == RTE_MAX_LCORE) in eal_thread_loop()
90 m2w = lcore_config[lcore_id].pipe_main2worker[0]; in eal_thread_loop()
93 __rte_thread_init(lcore_id, &lcore_config[lcore_id].cpuset); in eal_thread_loop()
113 lcore_config[lcore_id].state = RUNNING; in eal_thread_loop()
122 if (lcore_config[lcore_id].f == NULL) in eal_thread_loop()
126 fct_arg = lcore_config[lcore_id].arg; in eal_thread_loop()
127 ret = lcore_config[lcore_id].f(fct_arg); in eal_thread_loop()
128 lcore_config[lcore_id].ret = ret; in eal_thread_loop()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_timer.c144 unsigned lcore_id = rte_lcore_id(); in timer_stress_cb() local
169 unsigned lcore_id = rte_lcore_id(); in timer_stress_main_loop() local
185 lcore_id = rte_get_next_lcore(lcore_id, 0, 1); in timer_stress_main_loop()
198 lcore_id = rte_lcore_id(); in timer_stress_main_loop()
246 unsigned lcore_id = rte_lcore_id(); in worker_wait_to_start() local
256 unsigned lcore_id = rte_lcore_id(); in worker_finish() local
286 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
324 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
331 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
374 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
[all …]
H A Dtest_per_lcore.c49 unsigned lcore_id = rte_lcore_id(); in display_vars() local
51 unsigned socket_id = rte_lcore_to_socket_id(lcore_id); in display_vars()
53 printf("on socket %u, on core %u, variable is %u\n", socket_id, lcore_id, var); in display_vars()
54 if (lcore_id != var) in display_vars()
73 unsigned lcore_id; in test_per_lcore() local
77 RTE_LCORE_FOREACH_WORKER(lcore_id) { in test_per_lcore()
78 if (rte_eal_wait_lcore(lcore_id) < 0) in test_per_lcore()
83 RTE_LCORE_FOREACH_WORKER(lcore_id) { in test_per_lcore()
84 if (rte_eal_wait_lcore(lcore_id) < 0) in test_per_lcore()
100 RTE_LCORE_FOREACH_WORKER(lcore_id) { in test_per_lcore()
[all …]
/f-stack/dpdk/lib/librte_timer/
H A Drte_timer.c140 int i, lcore_id; in rte_timer_subsystem_init() local
174 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; in rte_timer_subsystem_init()
175 lcore_id++) { in rte_timer_subsystem_init()
179 lcore_id; in rte_timer_subsystem_init()
235 unsigned lcore_id; in timer_set_config_state() local
237 lcore_id = rte_lcore_id(); in timer_set_config_state()
488 if (lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
508 lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
606 lcore_id < RTE_MAX_LCORE) { in __rte_timer_stop()
1050 unsigned lcore_id; in __rte_timer_dump_stats() local
[all …]
/f-stack/dpdk/examples/l3fwd-power/
H A Dmain.c934 lcore_id); in main_intr_loop()
939 lcore_id); in main_intr_loop()
1101 lcore_id); in main_telemetry_loop()
1106 lcore_id); in main_telemetry_loop()
1217 lcore_id); in main_empty_poll_loop()
2088 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in init_mem()
2353 lcore_id, in telemetry_setup_timer()
2370 lcore_id, in empty_poll_setup_timer()
2605 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
2623 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
[all …]
/f-stack/dpdk/examples/eventdev_pipeline/
H A Dmain.c26 core_in_use(unsigned int lcore_id) { in core_in_use() argument
27 return (fdata->rx_core[lcore_id] || fdata->sched_core[lcore_id] || in core_in_use()
28 fdata->tx_core[lcore_id] || fdata->worker_core[lcore_id]); in core_in_use()
324 int lcore_id; in main() local
412 __func__, lcore_id); in main()
417 __func__, lcore_id); in main()
421 __func__, lcore_id); in main()
426 __func__, lcore_id, in main()
433 lcore_id); in main()
440 lcore_id = rte_lcore_id(); in main()
[all …]
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_lcore.h45 enum rte_lcore_role_t rte_eal_lcore_role(unsigned int lcore_id);
59 rte_lcore_has_role(unsigned int lcore_id, enum rte_lcore_role_t role);
122 int rte_lcore_index(int lcore_id);
171 rte_lcore_to_socket_id(unsigned int lcore_id);
186 rte_lcore_to_cpu_id(int lcore_id);
200 rte_lcore_cpuset(unsigned int lcore_id);
211 int rte_lcore_is_enabled(unsigned int lcore_id);
258 typedef int (*rte_lcore_init_cb)(unsigned int lcore_id, void *arg);
268 typedef void (*rte_lcore_uninit_cb)(unsigned int lcore_id, void *arg);
328 typedef int (*rte_lcore_iterate_cb)(unsigned int lcore_id, void *arg);
/f-stack/dpdk/examples/l3fwd-graph/
H A Dmain.c100 uint8_t lcore_id; member
548 uint32_t lcore_id; in init_mem() local
552 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in init_mem()
700 uint32_t lcore_id; in graph_main_loop() local
710 lcore_id); in graph_main_loop()
868 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
876 lcore_id); in main()
910 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
925 lcore_id); in main()
1007 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
[all …]
/f-stack/dpdk/examples/helloworld/
H A Dmain.c21 unsigned lcore_id; in lcore_hello() local
22 lcore_id = rte_lcore_id(); in lcore_hello()
23 printf("hello from core %u\n", lcore_id); in lcore_hello()
31 unsigned lcore_id; in main() local
38 RTE_LCORE_FOREACH_WORKER(lcore_id) { in main()
39 rte_eal_remote_launch(lcore_hello, NULL, lcore_id); in main()

123456