Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/bpf/
A Dxsk.h86 static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb) in xsk_prod_nb_free() argument
90 if (free_entries >= nb) in xsk_prod_nb_free()
106 static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb) in xsk_cons_nb_avail() argument
115 return (entries > nb) ? nb : entries; in xsk_cons_nb_avail()
120 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve()
124 prod->cached_prod += nb; in xsk_ring_prod__reserve()
126 return nb; in xsk_ring_prod__reserve()
134 __atomic_store_n(prod->producer, *prod->producer + nb, __ATOMIC_RELEASE); in xsk_ring_prod__submit()
139 prod->cached_prod -= nb; in xsk_ring_prod__cancel()
144 __u32 entries = xsk_cons_nb_avail(cons, nb); in xsk_ring_cons__peek()
[all …]
/tools/perf/arch/powerpc/util/
A Dheader.c30 int nb; in get_cpuid() local
34 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid()
38 buffer[nb-1] = '\0'; in get_cpuid()
/tools/perf/arch/x86/util/
A Dheader.c30 int nb; in __get_cpuid() local
50 nb = scnprintf(buffer, sz, fmt, vendor, family, model, step); in __get_cpuid()
54 buffer[nb-1] = '\0'; in __get_cpuid()
/tools/include/linux/
A Dbitops.h23 #define BYTES_TO_BITS(nb) ((nb) * BITS_PER_BYTE) argument
/tools/arch/x86/lib/
A Dinsn.c129 int i, nb; in insn_get_prefixes() local
136 nb = 0; in insn_get_prefixes()
142 for (i = 0; i < nb; i++) in insn_get_prefixes()
145 if (nb == 4) in insn_get_prefixes()
148 prefixes->bytes[nb++] = b; in insn_get_prefixes()
171 for (i = 0; i < nb; i++) in insn_get_prefixes()
/tools/perf/util/
A Dthread-stack.c663 bool *start, struct branch_entry *nb) in ks_start() argument
666 *start = (nb && sample_ip >= be->to && sample_ip <= nb->from) || in ks_start()
724 struct branch_entry *nb = NULL; in thread_stack__br_sample_late() local
732 if (ks_start(s, ip, kernel_start, &start, nb)) { in thread_stack__br_sample_late()
736 nb = s; in thread_stack__br_sample_late()
741 if (ks_start(s, ip, kernel_start, &start, nb)) { in thread_stack__br_sample_late()
745 nb = s; in thread_stack__br_sample_late()
A Dbpf-trace-summary.c126 const struct syscall_node *nb = b; in nodecmp() local
128 return na->stats.total_time > nb->stats.total_time ? -1 : 1; in nodecmp()
A Dsymbol.c157 size_t na, nb; in choose_best_symbol() local
200 nb = strlen(symb->name); in choose_best_symbol()
201 if (na > nb) in choose_best_symbol()
203 else if (na < nb) in choose_best_symbol()
A Dheader.c1378 const struct memory_node *nb = b; in memory_node__sort() local
1380 return na->node - nb->node; in memory_node__sort()

Completed in 28 milliseconds