MCPcopy Create free account
hub / github.com/F-Stack/f-stack / counter_u64_fetch_cx8_one

Function counter_u64_fetch_cx8_one

freebsd/i386/include/counter.h:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static void
94counter_u64_fetch_cx8_one(void *arg1)
95{
96 struct counter_u64_fetch_cx8_arg *arg;
97 uint64_t val;
98
99 arg = arg1;
100 val = counter_u64_read_one_8b((uint64_t *)((char *)arg->p +
101 UMA_PCPU_ALLOC_SIZE * PCPU_GET(cpuid)));
102 atomic_add_64(&arg->res, val);
103}
104
105static inline uint64_t
106counter_u64_fetch_inline(uint64_t *p)

Callers

nothing calls this directly

Calls 2

counter_u64_read_one_8bFunction · 0.85
atomic_add_64Function · 0.70

Tested by

no test coverage detected