Home
last modified time | relevance | path

Searched refs:rte_lcore_id (Results 1 – 25 of 147) sorted by relevance

123456

/f-stack/dpdk/app/test/
H A Dtest_spinlock.c58 printf("Global lock taken on core %u\n", rte_lcore_id()); in test_spinlock_per_core()
61 rte_spinlock_lock(&sl_tab[rte_lcore_id()]); in test_spinlock_per_core()
62 printf("Hello from core %u !\n", rte_lcore_id()); in test_spinlock_per_core()
63 rte_spinlock_unlock(&sl_tab[rte_lcore_id()]); in test_spinlock_per_core()
71 unsigned id = rte_lcore_id(); in test_spinlock_recursive_per_core()
110 const unsigned lcore = rte_lcore_id(); in load_loop_fn()
135 const unsigned lcore = rte_lcore_id(); in test_spinlock_perf()
H A Dtest_ticketlock.c58 printf("Global lock taken on core %u\n", rte_lcore_id()); in test_ticketlock_per_core()
61 rte_ticketlock_lock(&tl_tab[rte_lcore_id()]); in test_ticketlock_per_core()
62 printf("Hello from core %u !\n", rte_lcore_id()); in test_ticketlock_per_core()
63 rte_ticketlock_unlock(&tl_tab[rte_lcore_id()]); in test_ticketlock_per_core()
71 unsigned int id = rte_lcore_id(); in test_ticketlock_recursive_per_core()
111 const unsigned int lcore = rte_lcore_id(); in load_loop_fn()
139 const unsigned int lcore = rte_lcore_id(); in test_ticketlock_perf()
H A Dtest_rwlock.c71 printf("Global write lock taken on core %u\n", rte_lcore_id()); in test_rwlock_per_core()
74 rte_rwlock_write_lock(&sl_tab[rte_lcore_id()]); in test_rwlock_per_core()
75 printf("Hello from core %u !\n", rte_lcore_id()); in test_rwlock_per_core()
76 rte_rwlock_write_unlock(&sl_tab[rte_lcore_id()]); in test_rwlock_per_core()
79 printf("Global read lock taken on core %u\n", rte_lcore_id()); in test_rwlock_per_core()
81 printf("Release global read lock on core %u\n", rte_lcore_id()); in test_rwlock_per_core()
100 const unsigned int lcore = rte_lcore_id(); in load_loop_fn()
204 printf("Global write lock taken on main core %u\n", rte_lcore_id()); in rwlock_test1()
301 lc = rte_lcore_id(); in try_read_lcore()
335 lc = rte_lcore_id(); in try_write_lcore()
H A Dtest_per_lcore.c42 RTE_PER_LCORE(test) = rte_lcore_id(); in assign_vars()
49 unsigned lcore_id = rte_lcore_id(); in display_vars()
65 printf("wait 100ms on lcore %u\n", rte_lcore_id()); in test_per_lcore_delay()
H A Dtest_timer.c144 unsigned lcore_id = rte_lcore_id(); in timer_stress_cb()
169 unsigned lcore_id = rte_lcore_id(); 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()
256 unsigned lcore_id = rte_lcore_id(); in worker_finish()
281 unsigned int lcore_id = rte_lcore_id(); in timer_stress2_main_loop()
409 unsigned lcore_id = rte_lcore_id(); in timer_basic_cb()
464 unsigned lcore_id = rte_lcore_id(); in timer_basic_main_loop()
H A Dtest_timer_racecond.c75 PRIuPTR "\n", __func__, rte_lcore_id(), tim - timer); in timer_cb()
97 rte_lcore_id(), tim - timer); in reload_timer()
106 unsigned lcore_id = rte_lcore_id(); in worker_main_loop()
150 main_lcore = lcore_id = rte_lcore_id(); in test_timer_racecond()
H A Dtest_mcslock.c59 printf("MCS lock taken on core %u\n", rte_lcore_id()); in test_mcslock_per_core()
61 printf("MCS lock released on core %u\n", rte_lcore_id()); in test_mcslock_per_core()
77 const unsigned int lcore = rte_lcore_id(); in load_loop_fn()
106 const unsigned int lcore = rte_lcore_id(); in test_mcslock_perf()
H A Dtest_func_reentrancy.c71 unsigned lcore_self = rte_lcore_id(); in test_eal_init_once()
104 unsigned lcore_self = rte_lcore_id(); in ring_create_lookup()
164 unsigned lcore_self = rte_lcore_id(); in mempool_create_lookup()
222 unsigned lcore_self = rte_lcore_id(); in hash_create_free()
286 unsigned lcore_self = rte_lcore_id(); in fbk_create_free()
352 unsigned lcore_self = rte_lcore_id(); in lpm_create_free()
H A Dtest_lcores.c26 lcore_id = rte_lcore_id(); in thread_loop()
34 lcore_id = rte_lcore_id(); in thread_loop()
48 lcore_id = rte_lcore_id(); in thread_loop()
/f-stack/dpdk/examples/timer/
H A Dmain.c32 unsigned lcore_id = rte_lcore_id(); in timer0_cb()
47 unsigned lcore_id = rte_lcore_id(); in timer1_cb()
64 lcore_id = rte_lcore_id(); in lcore_mainloop()
105 lcore_id = rte_lcore_id(); in main()
/f-stack/dpdk/app/test-pipeline/
H A Druntime.c50 RTE_LOG(INFO, USER1, "Core %u is doing RX\n", rte_lcore_id()); in app_main_loop_rx()
79 rte_lcore_id()); in app_main_loop_worker()
112 RTE_LOG(INFO, USER1, "Core %u is doing TX\n", rte_lcore_id()); in app_main_loop_tx()
/f-stack/dpdk/examples/performance-thread/common/
H A Dlthread_sched.c212 unsigned lcoreid = rte_lcore_id(); in _lthread_sched_create()
252 DIAG_EVENT(new_sched, LT_DIAG_SCHED_CREATE, rte_lcore_id(), 0); in _lthread_sched_create()
462 sched, rte_lcore_id(), in lthread_run()
463 rte_lcore_index(rte_lcore_id())); in lthread_run()
499 sched, rte_lcore_id(), in lthread_run()
500 rte_lcore_index(rte_lcore_id())); in lthread_run()
H A Dlthread_timer.h48 rte_lcore_id(), in _timer_start()
/f-stack/dpdk/examples/performance-thread/pthread_shim/
H A Dmain.c32 #define sched_getcpu() rte_lcore_id()
123 int lcore = (int) rte_lcore_id(); in initial_lthread()
194 lthread_scheduler_shutdown(rte_lcore_id()); in initial_lthread()
/f-stack/dpdk/examples/distributor/
H A Dmain.c244 printf("\nCore %u doing packet RX.\n", rte_lcore_id()); in lcore_rx()
307 rte_power_exit(rte_lcore_id()); in lcore_rx()
309 printf("\nCore %u exiting rx task.\n", rte_lcore_id()); in lcore_rx()
357 printf("\nCore %u acting as distributor core.\n", rte_lcore_id()); in lcore_distributor()
388 printf("\nCore %u exiting distributor task.\n", rte_lcore_id()); in lcore_distributor()
391 rte_power_exit(rte_lcore_id()); in lcore_distributor()
419 printf("\nCore %u doing packet TX.\n", rte_lcore_id()); in lcore_tx()
464 rte_power_exit(rte_lcore_id()); in lcore_tx()
465 printf("\nCore %u exiting tx task.\n", rte_lcore_id()); in lcore_tx()
589 printf("\nCore %u acting as worker core.\n", rte_lcore_id()); in lcore_worker()
[all …]
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipsec-secgw.h116 int lcore_id = rte_lcore_id(); in core_stats_update_rx()
130 int lcore_id = rte_lcore_id(); in core_stats_update_tx()
142 int lcore_id = rte_lcore_id(); in core_stats_update_drop()
/f-stack/dpdk/drivers/mempool/bucket/
H A Drte_mempool_bucket.c107 unsigned int lcore_id = rte_lcore_id(); in bucket_enqueue_single()
144 struct bucket_stack *local_stack = bd->buckets[rte_lcore_id()]; in bucket_enqueue()
191 objptr = bucket_stack_pop(bd->buckets[rte_lcore_id()]); in bucket_dequeue_orphans()
202 hdr->lcore_id = rte_lcore_id(); in bucket_dequeue_orphans()
226 struct bucket_stack *cur_stack = bd->buckets[rte_lcore_id()]; in bucket_dequeue_buckets()
251 hdr->lcore_id = rte_lcore_id(); in bucket_dequeue_buckets()
265 bd->adoption_buffer_rings[rte_lcore_id()]; in bucket_adopt_orphans()
315 struct bucket_stack *cur_stack = bd->buckets[rte_lcore_id()]; in bucket_dequeue_contig_blocks()
341 hdr->lcore_id = rte_lcore_id(); in bucket_dequeue_contig_blocks()
/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_thread.c68 unsigned int lcore_id = rte_lcore_id(); in thread_update_affinity()
185 __rte_thread_init(rte_lcore_id(), cpuset); in ctrl_thread_init()
288 unsigned int lcore_id = rte_lcore_id(); in rte_thread_unregister()
H A Drte_keepalive.c155 keepcfg->live_data[rte_lcore_id()].core_state = RTE_KA_STATE_ALIVE; in rte_keepalive_mark_alive()
161 keepcfg->live_data[rte_lcore_id()].core_state = RTE_KA_STATE_DOZING; in rte_keepalive_mark_sleep()
H A Deal_common_lcore.c37 if (rte_lcore_id() == LCORE_ID_ANY) in rte_lcore_index()
40 lcore_id = (int)rte_lcore_id(); in rte_lcore_index()
52 if (rte_lcore_id() == LCORE_ID_ANY) in rte_lcore_to_cpu_id()
55 lcore_id = (int)rte_lcore_id(); in rte_lcore_to_cpu_id()
/f-stack/dpdk/lib/librte_timer/
H A Drte_timer.c72 unsigned __lcore_id = rte_lcore_id(); \
237 lcore_id = rte_lcore_id(); in timer_set_config_state()
282 unsigned lcore_id = rte_lcore_id(); in timer_set_running_state()
438 unsigned lcore_id = rte_lcore_id(); in timer_del()
483 unsigned lcore_id = rte_lcore_id(); in __rte_timer_reset()
594 unsigned lcore_id = rte_lcore_id(); in __rte_timer_stop()
667 unsigned lcore_id = rte_lcore_id(); in __rte_timer_manage()
805 unsigned int default_poll_lcores[] = {rte_lcore_id()}; in rte_timer_alt_manage()
809 unsigned int this_lcore = rte_lcore_id(); in rte_timer_alt_manage()
1020 unsigned int lcore_id = rte_lcore_id(); in rte_timer_next_ticks()
/f-stack/dpdk/examples/eventdev_pipeline/
H A Dpipeline_worker_tx.c81 rte_lcore_id(), received, fwd, tx); in worker_do_tx_single()
116 rte_lcore_id(), received, fwd, tx); in worker_do_tx_single_atq()
162 rte_lcore_id(), received, fwd, tx); in worker_do_tx_single_burst()
206 rte_lcore_id(), received, fwd, tx); in worker_do_tx_single_burst_atq()
256 rte_lcore_id(), received, fwd, tx); in worker_do_tx()
302 rte_lcore_id(), received, fwd, tx); in worker_do_tx_atq()
357 rte_lcore_id(), received, fwd, tx); in worker_do_tx_burst()
411 rte_lcore_id(), received, fwd, tx); in worker_do_tx_burst_atq()
/f-stack/dpdk/examples/helloworld/
H A Dmain.c22 lcore_id = rte_lcore_id(); in lcore_hello()
/f-stack/dpdk/lib/librte_mempool/
H A Drte_mempool.h274 unsigned __lcore_id = rte_lcore_id(); \
281 unsigned int __lcore_id = rte_lcore_id(); \
1264 cache = rte_mempool_default_cache(mp, rte_lcore_id()); in rte_mempool_cache_flush()
1371 cache = rte_mempool_default_cache(mp, rte_lcore_id()); in rte_mempool_put_bulk()
1524 cache = rte_mempool_default_cache(mp, rte_lcore_id()); in rte_mempool_get_bulk()
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dtimer.rst122 lcore_id = rte_lcore_id();
144 unsigned lcore_id = rte_lcore_id();
164 unsigned lcore_id = rte_lcore_id();

123456