Home
last modified time | relevance | path

Searched refs:percpu (Results 1 – 25 of 66) sorted by relevance

123

/linux/fs/squashfs/
H A Ddecompressor_multi_percpu.c31 struct squashfs_stream __percpu *percpu; in squashfs_decompressor_create() local
34 percpu = alloc_percpu(struct squashfs_stream); in squashfs_decompressor_create()
35 if (percpu == NULL) in squashfs_decompressor_create()
39 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
49 return (void *)(__force unsigned long) percpu; in squashfs_decompressor_create()
53 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
57 free_percpu(percpu); in squashfs_decompressor_create()
63 struct squashfs_stream __percpu *percpu = in squashfs_decompressor_destroy() local
70 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_destroy()
73 free_percpu(percpu); in squashfs_decompressor_destroy()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data_init.c83 if (!ASSERT_OK_PTR(data, "calloc percpu data")) in test_percpu_data_on_cpus()
135 if (!ASSERT_OK_PTR(skel->percpu, "skel->percpu")) in test_global_percpu_data_init()
144 ASSERT_STREQ(bpf_map__name(skel->maps.percpu_data), ".percpu.data", in test_global_percpu_data_init()
145 ".percpu.data map name"); in test_global_percpu_data_init()
146 ASSERT_STREQ(bpf_map__name(skel->maps.data_percpu), ".data.percpu", in test_global_percpu_data_init()
147 ".data.percpu map name"); in test_global_percpu_data_init()
148 ASSERT_STREQ(bpf_map__name(skel->maps.percpu_looooooooong), ".percpu.looooooooong", in test_global_percpu_data_init()
150 ASSERT_STREQ(bpf_map__name(skel->maps.percpu), ".percpu", "ma in test_global_percpu_data_init()
[all...]
/linux/kernel/bpf/
H A Dmemalloc.c262 static void free_one(void *obj, bool percpu) in free_one() argument
264 if (percpu) in free_one()
270 static int free_all(struct bpf_mem_cache *c, struct llist_node *llnode, bool percpu) in free_all() argument
278 free_one(pos, percpu); in free_all()
539 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init() argument
546 if (percpu && size == 0) in bpf_mem_alloc_init()
550 if (percpu) in bpf_mem_alloc_init()
552 ma->percpu = percpu; in bpf_mem_alloc_init()
559 if (!percpu) in bpf_mem_alloc_init()
618 ma->percpu = true; in bpf_mem_alloc_percpu_init()
[all …]
H A Darraymap.c55 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc_check() local
63 (percpu && numa_node != NUMA_NO_NODE)) in array_map_alloc_check()
77 /* percpu map value size is bound by PCPU_MIN_UNIT_SIZE */ in array_map_alloc_check()
78 if (percpu && round_up(attr->value_size, 8) > PCPU_MIN_UNIT_SIZE) in array_map_alloc_check()
86 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc() local
117 if (percpu) { in array_map_alloc()
153 if (percpu && bpf_array_alloc_percpu(array)) { in array_map_alloc()
586 /* One exception for keyless BTF: .bss/.data/.rodata/.percpu map */ in array_map_check_btf()
839 bool percpu = map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_mem_usage() local
844 if (percpu) { in array_map_mem_usage()
[all...]
H A Dhashtab.c307 /* Both percpu and fd htab support in-place update, so no need for in prealloc_lru_pop()
510 bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || in bpf_ma_set_dtor()
516 * the map's value itself is percpu. percpu_lru has in bpf_ma_set_dtor()
541 if (numa_node != NUMA_NO_NODE && (percpu || percpu_lru)) in bpf_ma_set_dtor()
559 /* percpu map value size is bound by PCPU_MIN_UNIT_SIZE */ in htab_map_check_btf()
560 if (percpu && round_up(attr->value_size, 8) > PCPU_MIN_UNIT_SIZE) in htab_map_check_btf()
660 bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || in htab_map_alloc()
664 * the map's value itself is percpu. percpu_lru has in htab_map_alloc()
705 else if (percpu && !prealloc) in __select_bucket()
715 if (percpu) in lookup_elem_raw()
415 bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || htab_map_alloc_check() local
565 bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || htab_map_alloc() local
1099 alloc_htab_elem(struct bpf_htab * htab,void * key,void * value,u32 key_size,u32 hash,bool percpu,bool onallcpus,struct htab_elem * old_elem,u64 map_flags) alloc_htab_elem() argument
1379 htab_map_update_elem_in_place(struct bpf_map * map,void * key,void * value,u64 map_flags,bool percpu,bool onallcpus) htab_map_update_elem_in_place() argument
2363 bool percpu = htab_is_percpu(htab); htab_map_mem_usage() local
[all...]
/linux/arch/alpha/boot/
H A Dmain.c65 struct percpu_struct * percpu; in pal_init() local
95 percpu = (struct percpu_struct *) in pal_init()
97 rev = percpu->pal_revision = percpu->palcode_avail[2]; in pal_init()
H A Dbootp.c71 struct percpu_struct * percpu; in pal_init() local
101 percpu = (struct percpu_struct *) in pal_init()
103 rev = percpu->pal_revision = percpu->palcode_avail[2]; in pal_init()
H A Dbootpz.c119 struct percpu_struct * percpu; in pal_init() local
149 percpu = (struct percpu_struct *) in pal_init()
151 rev = percpu->pal_revision = percpu->palcode_avail[2]; in pal_init()
/linux/include/linux/
H A Dbpf_mem_alloc.h15 bool percpu; member
31 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu);
43 int bpf_mem_alloc_check_size(bool percpu, size_t size);
/linux/Documentation/translations/zh_CN/core-api/
H A Dworkqueue.rst595 events percpu 0 2 4 6
596 events_highpri percpu 1 3 5 7
597 events_long percpu 0 2 4 6
599 events_freezable percpu 0 2 4 6
600 events_power_efficient percpu 0 2 4 6
601 events_freezable_power_ percpu 0 2 4 6
602 rcu_gp percpu 0 2 4 6
603 rcu_par_gp percpu 0 2 4 6
604 slub_flushwq percpu 0 2 4 6
/linux/tools/testing/selftests/cgroup/
H A Dtest_kmem.c22 * Memory cgroup charging is performed using percpu batches 64 pages
349 * is greater than 0 and approximates matches the percpu value
356 long current, percpu, slab; in test_percpu_basic() local
385 percpu = cg_read_key_long(parent, "memory.stat", "percpu "); in test_percpu_basic()
388 if (current > 0 && percpu > 0 && slab >= 0 && in test_percpu_basic()
389 labs(current - (percpu + slab)) < MAX_VMSTAT_ERROR) in test_percpu_basic()
393 current, percpu, slab, current - (percpu + slab)); in test_percpu_basic()
/linux/net/rds/
H A Dib_recv.c107 cache->percpu = alloc_percpu_gfp(struct rds_ib_cache_head, gfp); in rds_ib_recv_alloc_cache()
108 if (!cache->percpu) in rds_ib_recv_alloc_cache()
112 head = per_cpu_ptr(cache->percpu, cpu); in rds_ib_recv_alloc_cache()
130 free_percpu(ic->i_cache_incs.percpu); in rds_ib_recv_alloc_caches()
143 head = per_cpu_ptr(cache->percpu, cpu); in rds_ib_cache_splice_all_lists()
166 free_percpu(ic->i_cache_incs.percpu); in rds_ib_recv_free_caches()
177 free_percpu(ic->i_cache_frags.percpu); in rds_ib_recv_free_caches()
472 * First, we put the memory on a percpu list. When this reaches a certain size,
473 * We move it to an intermediate non-percpu list in a lockless manner, with some
488 chpfirst = __this_cpu_read(cache->percpu in rds_ib_recv_cache_put()
[all...]
/linux/drivers/md/
H A Draid5.c1545 static struct page **to_addr_page(struct raid5_percpu *percpu, int i) in to_addr_page() argument
1547 return percpu->scribble + i * percpu->scribble_obj_size; in to_addr_page()
1552 struct raid5_percpu *percpu, int i) in to_addr_conv() argument
1554 return (void *) (to_addr_page(percpu, i) + sh->disks + 2); in to_addr_conv()
1561 to_addr_offs(struct stripe_head *sh, struct raid5_percpu *percpu) in to_addr_offs() argument
1563 return (unsigned int *) (to_addr_conv(sh, percpu, 0) + sh->disks + 2); in to_addr_offs()
1567 ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute5() argument
1570 struct page **xor_srcs = to_addr_page(percpu, 0); in ops_run_compute5()
1571 unsigned int *off_srcs = to_addr_offs(sh, percpu); in ops_run_compute5()
1664 ops_run_compute6_1(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_compute6_1() argument
1728 ops_run_compute6_2(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_compute6_2() argument
1863 ops_run_prexor5(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_prexor5() argument
1905 ops_run_prexor6(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_prexor6() argument
2046 ops_run_reconstruct5(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_reconstruct5() argument
2144 ops_run_reconstruct6(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_reconstruct6() argument
2218 ops_run_check_p(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_check_p() argument
2259 ops_run_check_pq(struct stripe_head * sh,struct raid5_percpu * percpu,int checkp) ops_run_check_pq() argument
2288 struct raid5_percpu *percpu; raid_run_ops() local
2465 scribble_alloc(struct raid5_percpu * percpu,int num,int cnt) scribble_alloc() argument
2501 struct raid5_percpu *percpu; resize_chunks() local
7498 free_scratch_buffer(struct r5conf * conf,struct raid5_percpu * percpu) free_scratch_buffer() argument
7506 alloc_scratch_buffer(struct r5conf * conf,struct raid5_percpu * percpu) alloc_scratch_buffer() argument
7571 struct raid5_percpu *percpu = per_cpu_ptr(conf->percpu, cpu); raid456_cpu_up_prepare() local
[all...]
/linux/drivers/clocksource/
H A Dtimer-qcom.c152 bool percpu) in msm_timer_init() argument
158 msm_timer_has_ppi = percpu; in msm_timer_init()
166 if (percpu) in msm_timer_init()
/linux/arch/sparc/kernel/
H A Dsun4m_irq.c107 bool percpu; member
200 if (handler_data->percpu) { in sun4m_mask_irq()
219 if (handler_data->percpu) { in sun4m_unmask_irq()
278 handler_data->percpu = real_irq < OBP_INT_LEVEL_ONBOARD; in sun4m_build_device_irq()
/linux/Documentation/trace/coresight/
H A Dcoresight-trbe.rst13 Trace Buffer Extension (TRBE) is a percpu hardware which captures in system
14 memory, CPU traces generated from a corresponding percpu tracing unit. This
/linux/kernel/sched/
H A Dcpuacct.c215 u64 percpu; in __cpuacct_percpu_seq_show() local
219 percpu = cpuacct_cpuusage_read(ca, i, index); in __cpuacct_percpu_seq_show()
220 seq_printf(m, "%llu ", (unsigned long long) percpu); in __cpuacct_percpu_seq_show()
/linux/Documentation/translations/zh_CN/dev-tools/
H A Dkmemleak.rst140 - ``kmemleak_alloc_percpu`` - 通知一个 percpu 类型的内存分配
144 - ``kmemleak_free_percpu`` - 通知一个 percpu 类型的内存释放
/linux/Documentation/RCU/
H A Drcuref.rst8 Please note that the percpu-ref feature is likely your first
10 include/linux/percpu-refcount.h for more information. However, in
11 those unusual cases where percpu-ref would consume too much memory,
/linux/Documentation/translations/zh_CN/locking/
H A Dindex.rst34 * percpu-rw-semaphore
/linux/arch/powerpc/include/asm/nohash/
H A Dpgtable.h321 pte_t *ptep, pte_t pte, int percpu) in __set_pte_at() argument
328 if (IS_ENABLED(CONFIG_PPC32) && IS_ENABLED(CONFIG_PTE_64BIT) && !percpu) { in __set_pte_at()
/linux/mm/
H A DMakefile55 mm_init.o percpu.o slab_common.o \
139 obj-$(CONFIG_PERCPU_STATS) += percpu-stats.o
/linux/Documentation/translations/zh_CN/mm/
H A Dvmalloced-kernel-stacks.rst129 - vmalloced堆栈的percpu缓存似乎比高阶堆栈分配要快一些,至少在缓存命中时是这样。
/linux/include/xen/
H A Devents.h29 int bind_virq_to_irq(unsigned int virq, unsigned int cpu, bool percpu);
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h535 * In the percpu case, we fallback to the simple update preserving
545 pte_t *ptep, pte_t pte, int percpu)
547 if ((!IS_ENABLED(CONFIG_SMP) && !IS_ENABLED(CONFIG_PTE_64BIT)) || percpu) { in __set_pte_at() argument

123