Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dxsk.h85 static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb) in xsk_prod_nb_free() argument
89 if (free_entries >= nb) in xsk_prod_nb_free()
104 static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb) in xsk_cons_nb_avail() argument
113 return (entries > nb) ? nb : entries; in xsk_cons_nb_avail()
117 size_t nb, __u32 *idx) in xsk_ring_prod__reserve() argument
119 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve()
123 prod->cached_prod += nb; in xsk_ring_prod__reserve()
125 return nb; in xsk_ring_prod__reserve()
128 static inline void xsk_ring_prod__submit(struct xsk_ring_prod *prod, size_t nb) in xsk_ring_prod__submit() argument
135 *prod->producer += nb; in xsk_ring_prod__submit()
[all …]
/tools/perf/arch/powerpc/util/
Dheader.c18 int nb; in get_cpuid() local
22 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid()
26 buffer[nb-1] = '\0'; in get_cpuid()
/tools/perf/arch/x86/util/
Dheader.c31 int nb; in __get_cpuid() local
55 nb = scnprintf(buffer, sz, fmt, vendor, family, model, step); in __get_cpuid()
59 buffer[nb-1] = '\0'; in __get_cpuid()
/tools/arch/x86/lib/
Dinsn.c113 int i, nb; in insn_get_prefixes() local
120 nb = 0; in insn_get_prefixes()
126 for (i = 0; i < nb; i++) in insn_get_prefixes()
129 if (nb == 4) in insn_get_prefixes()
132 prefixes->bytes[nb++] = b; in insn_get_prefixes()
155 for (i = 0; i < nb; i++) in insn_get_prefixes()
/tools/perf/util/
Dthread-stack.c662 bool *start, struct branch_entry *nb) in ks_start() argument
665 *start = (nb && sample_ip >= be->to && sample_ip <= nb->from) || in ks_start()
723 struct branch_entry *nb = NULL; in thread_stack__br_sample_late() local
731 if (ks_start(s, ip, kernel_start, &start, nb)) { in thread_stack__br_sample_late()
735 nb = s; in thread_stack__br_sample_late()
740 if (ks_start(s, ip, kernel_start, &start, nb)) { in thread_stack__br_sample_late()
744 nb = s; in thread_stack__br_sample_late()
Dsymbol.c136 size_t na, nb; in choose_best_symbol() local
172 nb = strlen(symb->name); in choose_best_symbol()
173 if (na > nb) in choose_best_symbol()
175 else if (na < nb) in choose_best_symbol()
Dprobe-finder.c302 #define BYTES_TO_BITS(nb) ((nb) * BITS_PER_LONG / sizeof(long)) argument
Dheader.c1288 const struct memory_node *nb = b; in memory_node__sort() local
1290 return na->node - nb->node; in memory_node__sort()