Home
last modified time | relevance | path

Searched refs:rcpu (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/kernel/bpf/
Dcpumap.c137 static void get_cpu_map_entry(struct bpf_cpu_map_entry *rcpu) in get_cpu_map_entry() argument
139 atomic_inc(&rcpu->refcnt); in get_cpu_map_entry()
145 struct bpf_cpu_map_entry *rcpu; in cpu_map_kthread_stop() local
147 rcpu = container_of(work, struct bpf_cpu_map_entry, kthread_stop_wq); in cpu_map_kthread_stop()
155 kthread_stop(rcpu->kthread); in cpu_map_kthread_stop()
215 static void put_cpu_map_entry(struct bpf_cpu_map_entry *rcpu) in put_cpu_map_entry() argument
217 if (atomic_dec_and_test(&rcpu->refcnt)) { in put_cpu_map_entry()
218 if (rcpu->prog) in put_cpu_map_entry()
219 bpf_prog_put(rcpu->prog); in put_cpu_map_entry()
221 __cpu_map_ring_cleanup(rcpu->queue); in put_cpu_map_entry()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-tegra/
Dsleep.h51 .macro cpu_to_halt_reg rd, rcpu
52 cmp \rcpu, #0
53 subne \rd, \rcpu, #1
60 .macro cpu_to_csr_reg rd, rcpu
61 cmp \rcpu, #0
62 subne \rd, \rcpu, #1
/kernel/linux/linux-5.10/drivers/macintosh/
Drack-meter.c215 struct rackmeter_cpu *rcpu = in rackmeter_do_timer() local
217 struct rackmeter *rm = rcpu->rm; in rackmeter_do_timer()
224 total_nsecs = cur_nsecs - rcpu->prev_wall; in rackmeter_do_timer()
225 rcpu->prev_wall = cur_nsecs; in rackmeter_do_timer()
228 idle_nsecs = total_idle_nsecs - rcpu->prev_idle; in rackmeter_do_timer()
230 rcpu->prev_idle = total_idle_nsecs; in rackmeter_do_timer()
244 rcpu->zero = (cumm == 0); in rackmeter_do_timer()
254 schedule_delayed_work_on(cpu, &rcpu->sniffer, in rackmeter_do_timer()
274 struct rackmeter_cpu *rcpu; in rackmeter_init_cpu_sniffer() local
278 rcpu = &rm->cpu[cpu]; in rackmeter_init_cpu_sniffer()
[all …]
/kernel/linux/linux-5.10/arch/arm/common/
Dvlock.S26 .macro voting_begin rbase:req, rcpu:req, rscratch:req
28 strb \rscratch, [\rbase, \rcpu]
32 .macro voting_end rbase:req, rcpu:req, rscratch:req
35 strb \rscratch, [\rbase, \rcpu]
/kernel/linux/linux-5.10/samples/bpf/
Dcpustat_user.c109 int rcpu, i, ret; in cpu_stat_inject_cpu_idle_event() local
117 rcpu = sched_getcpu(); in cpu_stat_inject_cpu_idle_event()
118 if (rcpu < 0) in cpu_stat_inject_cpu_idle_event()
127 if (i == rcpu) in cpu_stat_inject_cpu_idle_event()
/kernel/linux/linux-5.10/include/linux/
Dbpf.h1513 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp,
1708 static inline int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, in cpu_map_enqueue() argument