| /f-stack/dpdk/examples/performance-thread/common/ |
| H A D | lthread.c | 59 void _lthread_free(struct lthread *lt) in _lthread_free() 105 struct lthread *lt = (struct lthread *)arg; in _lthread_exec() 119 _lthread_init(struct lthread *lt, in _lthread_init() 162 struct lthread *lt = NULL; in lthread_create() 177 bzero(lt, sizeof(struct lthread)); in lthread_create() 271 struct lthread *lt = (struct lthread *) arg; in _cancel() 284 struct lthread *lt; in lthread_cancel() 309 struct lthread *lt = THIS_LTHREAD; in lthread_sleep() 320 struct lthread *lt = THIS_LTHREAD; in lthread_sleep_clks() 336 struct lthread *lt = THIS_LTHREAD; in lthread_yield() [all …]
|
| H A D | lthread.h | 18 struct lthread; 22 typedef void (*lthread_exit_func) (struct lthread *); 24 void _lthread_exit_handler(struct lthread *lt); 28 void _lthread_sched_busy_sleep(struct lthread *lt, uint64_t nsecs); 30 int _lthread_desched_sleep(struct lthread *lt); 32 void _lthread_free(struct lthread *lt); 42 _lthread_init(struct lthread *lt, 45 void _lthread_set_stack(struct lthread *lt, void *stack, size_t stack_size);
|
| H A D | lthread_sched.h | 24 _ready_queue_insert(struct lthread_sched *sched, struct lthread *lt) in _ready_queue_insert() 35 static inline struct lthread *_ready_queue_remove(struct lthread_queue *q) in _ready_queue_remove() 65 struct lthread *lt = THIS_LTHREAD; in _affinitize() 76 struct lthread *lt = THIS_LTHREAD; in _suspend() 89 struct lthread *lt = THIS_LTHREAD; in _reschedule()
|
| H A D | lthread_api.h | 83 struct lthread; 228 lthread_create(struct lthread **new_lt, 245 int lthread_cancel(struct lthread *lt); 263 int lthread_join(struct lthread *lt, void **ptr); 361 struct lthread
|
| H A D | lthread_int.h | 33 struct lthread; 66 struct lthread *current_lthread; /* running thread */ 121 struct lthread { struct 136 struct lthread *lt_join; /* lthread to join on */ argument
|
| H A D | lthread_sched.c | 117 sizeof(struct lthread), in _lthread_sched_alloc_resources() 316 _lthread_resume(struct lthread *lt); 317 static inline void _lthread_resume(struct lthread *lt) in _lthread_resume() 385 struct lthread *lt = (struct lthread *) arg; in _sched_timer_cb() 458 struct lthread *lt = NULL; in lthread_run() 524 struct lthread *lt = THIS_LTHREAD; in lthread_set_affinity()
|
| H A D | lthread_tls.h | 27 void _lthread_tls_destroy(struct lthread *lt); 29 void _lthread_tls_alloc(struct lthread *lt);
|
| H A D | lthread_mutex.c | 104 struct lthread *lt = THIS_LTHREAD; in lthread_mutex_lock() 150 struct lthread *lt = THIS_LTHREAD; in lthread_mutex_trylock() 182 struct lthread *lt = THIS_LTHREAD; in lthread_mutex_unlock() 183 struct lthread *unblocked; in lthread_mutex_unlock()
|
| H A D | lthread_timer.h | 40 _timer_start(struct lthread *lt, uint64_t clks) in _timer_start() 56 _timer_stop(struct lthread *lt) in _timer_stop()
|
| H A D | lthread_cond.c | 100 struct lthread *lt = THIS_LTHREAD; in lthread_cond_wait() 129 struct lthread *lt; in lthread_cond_signal() 151 struct lthread *lt; in lthread_cond_broadcast()
|
| H A D | lthread_diag.h | 44 struct lthread *ct = RTE_PER_LCORE(this_sched)->current_lthread;\ 69 struct lthread *ct = RTE_PER_LCORE(this_sched)->current_lthread;\
|
| H A D | lthread_tls.c | 132 void _lthread_tls_destroy(struct lthread *lt) in _lthread_tls_destroy() 206 void _lthread_tls_alloc(struct lthread *lt) in _lthread_tls_alloc()
|
| H A D | lthread_mutex.h | 19 struct lthread *owner;
|
| H A D | common.mk | 19 SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx…
|
| H A D | lthread_diag_api.h | 224 typedef uint64_t (*diag_callback) (uint64_t time, struct lthread *lt,
|
| H A D | lthread_diag.c | 238 _lthread_diag_default_cb(uint64_t time, struct lthread *lt, int diag_event, in _lthread_diag_default_cb()
|
| /f-stack/dpdk/examples/performance-thread/l3fwd-thread/ |
| H A D | test.sh | 18 --no-lthread 30 --no-lthread 41 --no-lthread 52 --no-lthread 68 --no-lthread 80 --no-lthread 91 --no-lthread 102 --no-lthread
|
| H A D | meson.build | 24 '../common/lthread.c',
|
| /f-stack/dpdk/examples/performance-thread/pthread_shim/ |
| H A D | pthread_shim.c | 391 return lthread_create((struct lthread **)tid, lcore, in pthread_create() 400 struct lthread *lt = (struct lthread *)tid; in pthread_detach() 443 return lthread_join((struct lthread *)tid, val); in pthread_join() 631 lthread_cancel(*(struct lthread **)tid); in pthread_cancel() 690 struct lthread *lt = (struct lthread *)thread; in pthread_setaffinity_np()
|
| H A D | meson.build | 25 '../common/lthread.c',
|
| H A D | main.c | 210 struct lthread *lt; in lthread_scheduler()
|
| /f-stack/dpdk/examples/performance-thread/common/arch/x86/ |
| H A D | stack.h | 23 arch_set_stack(struct lthread *lt, void *func) in arch_set_stack()
|
| /f-stack/dpdk/examples/performance-thread/common/arch/arm64/ |
| H A D | stack.h | 18 arch_set_stack(struct lthread *lt, void *func) in arch_set_stack()
|
| /f-stack/freebsd/contrib/libsodium/m4/ |
| H A D | ax_pthread.m4 | 143 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 158 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 160 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
|
| /f-stack/dpdk/doc/guides/sample_app_ug/ |
| H A D | performance_thread.rst | 651 Neither lthread signal nor broadcast may be called concurrently by L-threads 795 Note that the lthread struct itself remains allocated from memory on the 921 are corresponding L-lthread APIs, and where the default pthread functionality 1166 ``RTE_PER_LCORE(this_sched)``, and the current lthread is stored at 1168 session the current lthread can be obtained by displaying the pthread local 1183 Object creation events (lthread, mutex, and condition variable) accept, and 1187 The lthread reference value is passed back in all subsequent event callbacks,
|