Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 241) sorted by relevance

12345678910

/f-stack/freebsd/sys/
H A Dstack.h49 struct stack *stack_create(int);
50 void stack_destroy(struct stack *);
51 int stack_put(struct stack *, vm_offset_t);
52 void stack_copy(const struct stack *, struct stack *);
53 void stack_zero(struct stack *);
54 void stack_print(const struct stack *);
55 void stack_print_ddb(const struct stack *);
56 void stack_print_short(const struct stack *);
57 void stack_print_short_ddb(const struct stack *);
75 void stack_save(struct stack *);
[all …]
/f-stack/dpdk/lib/librte_stack/
H A Drte_stack_std.h30 rte_spinlock_lock(&stack->lock); in __rte_stack_std_push()
31 cache_objs = &stack->objs[stack->len]; in __rte_stack_std_push()
35 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_push()
43 stack->len += n; in __rte_stack_std_push()
45 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_push()
68 rte_spinlock_lock(&stack->lock); in __rte_stack_std_pop()
70 if (unlikely(n > stack->len)) { in __rte_stack_std_pop()
71 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_pop()
75 cache_objs = stack->objs; in __rte_stack_std_pop()
81 stack->len -= n; in __rte_stack_std_pop()
[all …]
/f-stack/tools/
H A DMakefile11 rm -rf ${PREFIX_BIN}/f-stack
13 cp -rf sbin/ ${PREFIX_BIN}/f-stack
14 ln -sf ${PREFIX_BIN}/f-stack/arp ${PREFIX_BIN}/ff_arp
15 ln -sf ${PREFIX_BIN}/f-stack/ndp ${PREFIX_BIN}/ff_ndp
17 ln -sf ${PREFIX_BIN}/f-stack/ipfw ${PREFIX_BIN}/ff_ipfw
19 ln -sf ${PREFIX_BIN}/f-stack/ngctl ${PREFIX_BIN}/ff_ngctl
20 ln -sf ${PREFIX_BIN}/f-stack/route ${PREFIX_BIN}/ff_route
21 ln -sf ${PREFIX_BIN}/f-stack/sysctl ${PREFIX_BIN}/ff_sysctl
22 ln -sf ${PREFIX_BIN}/f-stack/top ${PREFIX_BIN}/ff_top
24 ln -sf ${PREFIX_BIN}/f-stack/knictl ${PREFIX_BIN}/ff_knictl
[all …]
H A DREADME.md46 ifconfig -p <f-stack proc_id> interface create
49 ifconfig -p <f-stack proc_id> %s[-d] [-m] [-u] [-v]
156 netstat -t <f-stack proc_id> -rs [-s]
159 netstat -t <f-stack proc_id> -Q
237 arp -p <f-stack proc_id> -d hostname [pub]
238 arp -p <f-stack proc_id> -d [-i interface] -a
241 arp -p <f-stack proc_id> -f filename
281 ndp -C <f-stack proc_id> [-nt] hostname
283 ndp -C <f-stack proc_id> [-nt] -A wait
284 ndp -C <f-stack proc_id> [-nt] -d hostname
[all …]
/f-stack/dpdk/drivers/net/bnxt/tf_core/
H A Dstack.h15 struct stack { struct
37 struct stack *st);
47 uint32_t *stack_items(struct stack *st);
57 int32_t stack_size(struct stack *st);
67 bool stack_is_empty(struct stack *st);
77 bool stack_is_full(struct stack *st);
89 int stack_push(struct stack *st, uint32_t x);
103 int stack_pop(struct stack *st, uint32_t *x);
115 void stack_dump(struct stack *st);
H A Dstack.c18 stack_init(int num_entries, uint32_t *items, struct stack *st) in stack_init()
33 uint32_t *stack_items(struct stack *st) in stack_items()
41 stack_size(struct stack *st) in stack_size()
49 stack_is_empty(struct stack *st) in stack_is_empty()
57 stack_is_full(struct stack *st) in stack_is_full()
65 stack_push(struct stack *st, uint32_t x) in stack_push()
81 stack_pop(struct stack *st, uint32_t *x) in stack_pop()
94 void stack_dump(struct stack *st) in stack_dump()
/f-stack/freebsd/contrib/ck/include/
H A Dck_stack.h56 struct ck_stack_entry *stack; in ck_stack_push_upmc() local
58 stack = ck_pr_load_ptr(&target->head); in ck_stack_push_upmc()
59 entry->next = stack; in ck_stack_push_upmc()
62 while (ck_pr_cas_ptr_value(&target->head, stack, entry, &stack) == false) { in ck_stack_push_upmc()
63 entry->next = stack; in ck_stack_push_upmc()
80 struct ck_stack_entry *stack; in ck_stack_trypush_upmc() local
82 stack = ck_pr_load_ptr(&target->head); in ck_stack_trypush_upmc()
83 entry->next = stack; in ck_stack_trypush_upmc()
275 struct ck_stack_entry *stack; in ck_stack_push_mpnc() local
337 stack->head = NULL; in ck_stack_init()
[all …]
/f-stack/doc/
H A DF-Stack_Binary_Release_Quick_Start.md5 Before you start to use f-stack-binary-release package, please make sure you:
13 $ wget https://github.com/F-Stack/f-stack/releases/download/v1.12/f-stack-binary-release.tar.gz
14 $ tar zxf f-stack-binary-release.tar.gz
15 $ cd f-stack-binary-release/scripts
29 +-- f-stack-binary-release
33 | +-- f-stack-release
54 | | +-- set_env.sh (setup environment that f-stack needs)
59stack-binary-release package has supported several frequent used linux releases, you can use f-sta…
86 ## Uninstall f-stack-binary-release package
90 $ rm -rf /path/to/f-stack-binary-release
[all …]
H A DLaunch_F-Stack_on_AWS_EC2_in_one_minute.md8 mkdir /data/f-stack
9 git clone https://github.com/F-Stack/f-stack.git /data/f-stack
12 cd /data/f-stack/dpdk
51 sed "s/#\[kni\]/\[kni\]/" -i /data/f-stack/config.ini
52 sed "s/#enable=1/enable=1/" -i /data/f-stack/config.ini
54 sed "s/#tcp_port=80/tcp_port=80/" -i /data/f-stack/config.ini
55 sed "s/#vlanstrip=1/vlanstrip=1/" -i /data/f-stack/config.ini
69 export FF_PATH=/data/f-stack
71 cd /data/f-stack/lib
84 # copy config.ini to $NGX_PREFIX/conf/f-stack.conf
[all …]
H A DF-Stack_Build_Guide.md3stack in different linux releases is almost the same, but there are still some points you need to …
12 $ mkdir /data/f-stack
13 $ git clone https://github.com/F-Stack/f-stack.git /data/f-stack
16 $ cd /data/f-stack/dpdk
32 # Compile f-stack lib
33 $ export FF_PATH=/data/f-stack
35 $ cd /data/f-stack/lib
48 # Compile f-stack tools
59 - remove '\\' in statement printf at f-stack/tools/netstat/Makefile line 70, now it should be:
68 - f-stack/dpdk/kernel/linux/igb_uio/igb_uio.c line 274:
H A DF-Stack_Quick_Start_Guide.md12 mkdir /data/f-stack
13 git clone https://github.com/F-Stack/f-stack.git /data/f-stack
19 cd /data/f-stack/dpdk
47 insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko
48 insmod /data/f-stack/dpdk/build/kernel/linux/kni/rte_kni.ko carrier=on
66 export FF_PATH=/data/f-stack
68 cd /data/f-stack
H A DF-Stack_Nginx_APP_Guide.md53 Determines whether server should run on kernel network stack or fstack.
61 Determines whether proxy should go through kernel network stack or fstack.
78 …fstack_conf f-stack.conf; # path of f-stack configuration file, default: $NGX_PREFIX/conf/f-stack
79 worker_processes 1; # should be equal to the lcore count of `dpdk.lcore_mask` in f-stack.conf.
/f-stack/dpdk/doc/guides/prog_guide/
H A Dstack_lib.rst7 DPDK's stack library provides an API for configuration and use of a bounded
8 stack of pointers.
10 The stack library provides the following basic operations:
12 * Create a uniquely named stack of a user-specified size and using a
19 * Free a previously created stack.
21 * Lookup a pointer to a stack by its name.
23 * Query a stack's current depth and number of free entries.
52 list's tail to the current stack head, and using a CAS to swing the stack head
55 adjusts the stack length and returns.
64 allocated before stack pushes and freed after stack pops. Since the stack has a
[all …]
/f-stack/freebsd/kern/
H A Dsubr_stack.c46 FEATURE(stack, "Support for capturing kernel stack");
54 struct stack *
57 struct stack *st; in stack_create()
64 stack_destroy(struct stack *st) in stack_destroy()
71 stack_put(struct stack *st, vm_offset_t pc) in stack_put()
82 stack_copy(const struct stack *src, struct stack *dst) in stack_copy()
89 stack_zero(struct stack *st) in stack_zero()
96 stack_print(const struct stack *st) in stack_print()
112 stack_print_short(const struct stack *st) in stack_print_short()
132 stack_print_ddb(const struct stack *st) in stack_print_ddb()
[all …]
/f-stack/freebsd/amd64/cloudabi64/
H A Dcloudabi64_sysvec.c73 uintptr_t stack) in cloudabi64_proc_setregs() argument
77 exec_setregs(td, imgp, stack); in cloudabi64_proc_setregs()
85 regs->tf_rdi = stack + sizeof(register_t) + in cloudabi64_proc_setregs()
87 (void)cpu_set_user_tls(td, TO_PTR(stack)); in cloudabi64_proc_setregs()
162 stack_t stack; in cloudabi64_thread_setregs() local
171 tcbptr = rounddown(attr->stack + attr->stack_len - sizeof(tcbptr), in cloudabi64_thread_setregs()
178 stack.ss_sp = TO_PTR(attr->stack); in cloudabi64_thread_setregs()
179 stack.ss_size = tcbptr - attr->stack; in cloudabi64_thread_setregs()
180 cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack); in cloudabi64_thread_setregs()
/f-stack/dpdk/doc/guides/mempool/
H A Dstack.rst10 the mempool type (ring, stack, etc.) will have a negligible impact on
11 performance. However a stack-based mempool is often better suited to pipelined
18 The following modes of operation are available for the stack mempool driver and
21 - ``stack``
31 The standard stack outperforms the lock-free stack on average, however the
32 standard stack is non-preemptive: if a mempool user is preempted while holding
33 the stack lock, that thread will block all other mempool accesses until it
35 stack whose threads can be preempted can suffer from brief, infrequent
38 The lock-free stack, by design, is not susceptible to this problem; one thread can
42 For a more detailed description of the stack implementations, please refer to
/f-stack/freebsd/arm64/cloudabi64/
H A Dcloudabi64_sysvec.c52 uintptr_t stack) in cloudabi64_proc_setregs() argument
56 exec_setregs(td, imgp, stack); in cloudabi64_proc_setregs()
65 stack + roundup(sizeof(cloudabi64_tcb_t), sizeof(register_t)); in cloudabi64_proc_setregs()
66 (void)cpu_set_user_tls(td, TO_PTR(stack)); in cloudabi64_proc_setregs()
142 stack_t stack; in cloudabi64_thread_setregs() local
145 stack.ss_sp = TO_PTR(attr->stack); in cloudabi64_thread_setregs()
146 stack.ss_size = attr->stack_len; in cloudabi64_thread_setregs()
147 cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack); in cloudabi64_thread_setregs()
/f-stack/freebsd/arm/cloudabi32/
H A Dcloudabi32_sysvec.c52 uintptr_t stack) in cloudabi32_proc_setregs() argument
56 exec_setregs(td, imgp, stack); in cloudabi32_proc_setregs()
65 stack + roundup(sizeof(cloudabi32_tcb_t), sizeof(register_t)); in cloudabi32_proc_setregs()
66 (void)cpu_set_user_tls(td, TO_PTR(stack)); in cloudabi32_proc_setregs()
150 stack_t stack; in cloudabi32_thread_setregs() local
153 stack.ss_sp = TO_PTR(attr->stack); in cloudabi32_thread_setregs()
154 stack.ss_size = attr->stack_len; in cloudabi32_thread_setregs()
155 cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack); in cloudabi32_thread_setregs()
/f-stack/freebsd/i386/cloudabi32/
H A Dcloudabi32_sysvec.c80 uintptr_t stack) in cloudabi32_proc_setregs() argument
83 exec_setregs(td, imgp, stack); in cloudabi32_proc_setregs()
84 (void)cpu_set_user_tls(td, TO_PTR(stack)); in cloudabi32_proc_setregs()
155 stack_t stack; in cloudabi32_thread_setregs() local
161 stack.ss_sp = TO_PTR(attr->stack); in cloudabi32_thread_setregs()
162 stack.ss_size = attr->stack_len - sizeof(args); in cloudabi32_thread_setregs()
163 cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack); in cloudabi32_thread_setregs()
/f-stack/freebsd/amd64/cloudabi32/
H A Dcloudabi32_sysvec.c85 uintptr_t stack) in cloudabi32_proc_setregs() argument
88 ia32_setregs(td, imgp, stack); in cloudabi32_proc_setregs()
89 (void)cpu_set_user_tls(td, TO_PTR(stack)); in cloudabi32_proc_setregs()
180 stack_t stack; in cloudabi32_thread_setregs() local
186 stack.ss_sp = TO_PTR(attr->stack); in cloudabi32_thread_setregs()
187 stack.ss_size = attr->stack_len - sizeof(args); in cloudabi32_thread_setregs()
188 cpu_set_upcall(td, TO_PTR(attr->entry_point), NULL, &stack); in cloudabi32_thread_setregs()
/f-stack/freebsd/i386/i386/
H A Dbios.c349 stack -= 4; in bios16()
354 stack -= 4; in bios16()
362 stack -= 2; in bios16()
367 stack -= 2; in bios16()
389 stack_top = stack; in bios16()
397 stack += 4; in bios16()
403 stack += 4; in bios16()
408 stack += 2; in bios16()
413 stack += 2; in bios16()
418 stack += 2; in bios16()
[all …]
/f-stack/freebsd/netinet/
H A Din_fib_algo.c285 stack->num_items--; in pop_stack_entry()
323 while (stack->num_items > 0) { in bsearch4_process_record()
334 if (!pop_stack_entry(dst_array, stack)) in bsearch4_process_record()
372 add_array_entry(stack, rib_entry); in bsearch4_process_record()
379 add_array_entry(stack, rib_entry); in bsearch4_process_record()
393 struct bsearch4_array stack = { in bsearch4_build_array() local
397 if (stack.arr == NULL) in bsearch4_build_array()
404 free(stack.arr, M_TEMP); in bsearch4_build_array()
412 while (stack.num_items > 0) { in bsearch4_build_array()
413 if (!pop_stack_entry(dst_array, &stack)) in bsearch4_build_array()
[all …]
/f-stack/dpdk/drivers/mempool/bucket/
H A Drte_mempool_bucket.c64 struct bucket_stack *stack; in bucket_stack_create() local
71 if (stack == NULL) in bucket_stack_create()
73 stack->limit = n_elts; in bucket_stack_create()
74 stack->top = 0; in bucket_stack_create()
76 return stack; in bucket_stack_create()
82 RTE_ASSERT(stack->top < stack->limit); in bucket_stack_push()
83 stack->objects[stack->top++] = obj; in bucket_stack_push()
89 RTE_ASSERT(stack->top > 0); in bucket_stack_pop_unsafe()
90 return stack->objects[--stack->top]; in bucket_stack_pop_unsafe()
96 if (stack->top == 0) in bucket_stack_pop()
[all …]
/f-stack/app/redis-5.0.5/src/
H A Drax.c93 ts->stack = ts->static_items; in raxStackInit()
104 if (ts->stack == NULL) { in raxStackPush()
118 ts->stack = newalloc; in raxStackPush()
122 ts->stack[ts->items] = ptr; in raxStackPush()
132 return ts->stack[ts->items]; in raxStackPop()
139 return ts->stack[ts->items-1]; in raxStackPeek()
144 if (ts->stack != ts->static_items) rax_free(ts->stack); in raxStackFree()
1264 raxStackInit(&it->stack); in raxStart()
1582 raxNode *parent = it->stack.stack[j-1]; in raxSeek()
1583 raxNode *child = it->stack.stack[j]; in raxSeek()
[all …]
/f-stack/
H A DREADME.md1 …uild Status](https://travis-ci.org/F-Stack/f-stack.svg?branch=master)](https://travis-ci.org/F-Sta…
10 [F-Stack](http://www.f-stack.org/?from=github) is an open source high performant network framework …
13 2. Transplant FreeBSD 11.01 user space stack, which provides a complete stack function, and cut a g…
34 mkdir -p /data/f-stack
35 git clone https://github.com/F-Stack/f-stack.git /data/f-stack
41 cd f-stack
68 insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko
92 export FF_PATH=/data/f-stack
94 cd /data/f-stack/lib/
101 # config.ini will be installed to /etc/f-stack.conf
[all …]

12345678910