Home
last modified time | relevance | path

Searched refs:kmem (Results 1 – 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/lib/
Dtest_user_copy.c47 static int test_check_nonzero_user(char *kmem, char __user *umem, size_t size) in test_check_nonzero_user() argument
64 kmem += start; in test_check_nonzero_user()
81 memset(kmem, 0x0, size); in test_check_nonzero_user()
83 kmem[i] = 0xff; in test_check_nonzero_user()
85 kmem[i] = 0xff; in test_check_nonzero_user()
87 ret |= test(copy_to_user(umem, kmem, size), in test_check_nonzero_user()
94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user()
105 static int test_copy_struct_from_user(char *kmem, char __user *umem, in test_copy_struct_from_user() argument
133 memset(kmem, 0x0, size); in test_copy_struct_from_user()
134 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user()
[all …]
Dtest_kasan_module.c22 char *kmem; in copy_user_test() local
27 kmem = kmalloc(size, GFP_KERNEL); in copy_user_test()
28 if (!kmem) in copy_user_test()
36 kfree(kmem); in copy_user_test()
41 unused = copy_from_user(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test()
44 unused = copy_to_user(usermem, kmem, size + 1 + OOB_TAG_OFF); in copy_user_test()
47 unused = __copy_from_user(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test()
50 unused = __copy_to_user(usermem, kmem, size + 1 + OOB_TAG_OFF); in copy_user_test()
53 unused = __copy_from_user_inatomic(kmem, usermem, size + 1 + OOB_TAG_OFF); in copy_user_test()
56 unused = __copy_to_user_inatomic(usermem, kmem, size + 1 + OOB_TAG_OFF); in copy_user_test()
[all …]
/kernel/linux/linux-5.10/tools/perf/Documentation/
Dexamples.txt14 kmem:kmalloc [Tracepoint event]
15 kmem:kmem_cache_alloc [Tracepoint event]
16 kmem:kmalloc_node [Tracepoint event]
17 kmem:kmem_cache_alloc_node [Tracepoint event]
18 kmem:kfree [Tracepoint event]
19 kmem:kmem_cache_free [Tracepoint event]
20 kmem:mm_page_free [Tracepoint event]
21 kmem:mm_page_free_batched [Tracepoint event]
22 kmem:mm_page_alloc [Tracepoint event]
23 kmem:mm_page_alloc_zone_locked [Tracepoint event]
[all …]
Dperf-kmem.txt1 perf-kmem(1)
6 perf-kmem - Tool to trace/measure kernel memory properties
11 'perf kmem' {record|stat} [<options>]
15 There are two variants of perf kmem:
17 'perf kmem record <command>' to record the kmem events
20 'perf kmem stat' to report kernel memory statistics.
64 Show live page stat. The perf kmem shows total allocation stat by
/kernel/linux/linux-5.10/Documentation/trace/
Dtracepoint-analysis.rst98 -e kmem:mm_page_alloc -e kmem:mm_page_free \
99 -e kmem:mm_page_free_batched \
103 9630 kmem:mm_page_alloc
104 2143 kmem:mm_page_free
105 7424 kmem:mm_page_free_batched
125 $ perf stat -e kmem:mm_page_alloc -e kmem:mm_page_free \
126 -e kmem:mm_page_free_batched ./hackbench 10
131 17803 kmem:mm_page_alloc
132 12398 kmem:mm_page_free
133 4827 kmem:mm_page_free_batched
[all …]
Dindex.rst17 events-kmem
Devents.rst392 # echo 'enable_event:kmem:kmalloc:1' > \
399 # echo 'disable_event:kmem:kmalloc' > \
409 # echo '!enable_event:kmem:kmalloc:1' > \
412 # echo '!disable_event:kmem:kmalloc' > \
418 kmem:kmalloc and sched:sched_switch, but can't have two kmem:kmalloc
419 versions such as kmem:kmalloc and kmem:kmalloc:1 or 'kmem:kmalloc if
420 bytes_req == 256' and 'kmem:kmalloc if bytes_alloc == 256' (they
421 could be combined into a single filter on kmem:kmalloc though).
432 /sys/kernel/debug/tracing/events/kmem/kmalloc/trigger
438 /sys/kernel/debug/tracing/events/kmem/kmalloc/trigger
[all …]
Devents-kmem.rst2 Subsystem Trace Points: kmem
5 The kmem tracing system captures events related to object and page allocation
/kernel/linux/linux-5.10/tools/perf/scripts/perl/bin/
Dcheck-perf-trace-record2 perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree
/kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-hist-mod.tc45 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger
47 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_mr.c733 if (mtr->kmem) { in mtr_free_bufs()
734 hns_roce_buf_free(hr_dev, mtr->kmem); in mtr_free_bufs()
735 kfree(mtr->kmem); in mtr_free_bufs()
736 mtr->kmem = NULL; in mtr_free_bufs()
761 mtr->kmem = NULL; in mtr_alloc_bufs()
783 mtr->kmem = kzalloc(sizeof(*mtr->kmem), GFP_KERNEL); in mtr_alloc_bufs()
784 if (!mtr->kmem) { in mtr_alloc_bufs()
791 mtr->kmem, buf_attr->page_shift); in mtr_alloc_bufs()
797 all_pg_count = mtr->kmem->npages; in mtr_alloc_bufs()
829 mtr->kmem); in mtr_get_pages()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c247 kfree(plr->kmem); in pseudo_lock_region_clear()
248 plr->kmem = NULL; in pseudo_lock_region_clear()
362 plr->kmem = kzalloc(plr->size, GFP_KERNEL); in pseudo_lock_region_alloc()
363 if (!plr->kmem) { in pseudo_lock_region_alloc()
465 mem_r = plr->kmem; in pseudo_lock_fn()
879 mem_r = READ_ONCE(plr->kmem); in measure_cycles_lat_fn()
982 mem_r = READ_ONCE(plr->kmem); in measure_residency_fn()
1507 physical = __pa(plr->kmem) >> PAGE_SHIFT; in pseudo_lock_dev_mmap()
1529 memset(plr->kmem + off, 0, vsize); in pseudo_lock_dev_mmap()
/kernel/linux/linux-5.10/drivers/crypto/nx/
Dnx.c308 memset(nx_ctx->kmem, 0, nx_ctx->kmem_len); in nx_ctx_init()
669 nx_ctx->kmem = kmalloc(nx_ctx->kmem_len, GFP_KERNEL); in nx_crypto_ctx_init()
670 if (!nx_ctx->kmem) in nx_crypto_ctx_init()
674 nx_ctx->csbcpb = (struct nx_csbcpb *)(round_up((u64)nx_ctx->kmem, in nx_crypto_ctx_init()
749 kfree_sensitive(nx_ctx->kmem); in nx_crypto_ctx_exit()
765 kfree_sensitive(nx_ctx->kmem); in nx_crypto_ctx_aead_exit()
Dnx.h119 void *kmem; /* unaligned, kmalloc'd buffer */ member
/kernel/linux/linux-5.10/drivers/dax/
DMakefile4 obj-$(CONFIG_DEV_DAX_KMEM) += kmem.o
DKconfig69 device_dax driver and bound to this kmem driver on each boot.
/kernel/linux/linux-5.10/Documentation/admin-guide/cgroup-v1/
Dmemory.rst88 memory.kmem.limit_in_bytes set/show hard limit for kernel memory
92 memory.kmem.usage_in_bytes show current kernel memory allocation
93 memory.kmem.failcnt show the number of kernel memory usage
95 memory.kmem.max_usage_in_bytes show max kernel memory usage recorded
97 memory.kmem.tcp.limit_in_bytes set/show hard limit for tcp buf memory
98 memory.kmem.tcp.usage_in_bytes show current tcp buf memory allocation
99 memory.kmem.tcp.failcnt show the number of tcp buf memory usage
101 memory.kmem.tcp.max_usage_in_bytes show max tcp buf memory usage recorded
312 it can be enabled system-wide by passing cgroup.memory=kmem to the kernel
317 memory.kmem.usage_in_bytes, or in a separate counter when it makes sense.
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/perl/
Dcheck-perf-trace.pl43 sub kmem::kmalloc subroutine
/kernel/linux/linux-5.10/tools/perf/
Dcommand-list.txt18 perf-kmem mainporcelain common
DBuild19 perf-y += builtin-kmem.o
Dperf-completion.sh198 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_verbs.h113 struct i40iw_dma_mem kmem; member
/kernel/linux/linux-5.10/fs/xfs/
DMakefile95 kmem.o
/kernel/linux/linux-5.10/mm/
Dmemcontrol.c1698 K((u64)page_counter_read(&memcg->kmem)), in mem_cgroup_print_oom_meminfo()
1699 K((u64)memcg->kmem.max), memcg->kmem.failcnt); in mem_cgroup_print_oom_meminfo()
3081 !page_counter_try_charge(&memcg->kmem, nr_pages, &counter)) { in __memcg_kmem_charge()
3089 page_counter_charge(&memcg->kmem, nr_pages); in __memcg_kmem_charge()
3106 page_counter_uncharge(&memcg->kmem, nr_pages); in __memcg_kmem_uncharge()
3639 counter = &memcg->kmem; in mem_cgroup_read_u64()
3825 ret = page_counter_set_max(&memcg->kmem, max); in memcg_update_kmem_max()
3927 counter = &memcg->kmem; in mem_cgroup_reset()
5413 page_counter_init(&memcg->kmem, NULL); in mem_cgroup_css_alloc()
5419 page_counter_init(&memcg->kmem, &parent->kmem); in mem_cgroup_css_alloc()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c2115 u8 *kmem; in bnxt_flash_nvram() local
2125 kmem = dma_alloc_coherent(&bp->pdev->dev, data_len, &dma_handle, in bnxt_flash_nvram()
2127 if (!kmem) { in bnxt_flash_nvram()
2132 memcpy(kmem, data, data_len); in bnxt_flash_nvram()
2136 dma_free_coherent(&bp->pdev->dev, data_len, kmem, dma_handle); in bnxt_flash_nvram()
2456 u8 *kmem; in bnxt_flash_package_from_file() local
2464 kmem = dma_alloc_coherent(&bp->pdev->dev, fw->size, in bnxt_flash_package_from_file()
2466 if (!kmem) { in bnxt_flash_package_from_file()
2472 memcpy(kmem, fw->data, fw->size); in bnxt_flash_package_from_file()
2477 dma_free_coherent(&bp->pdev->dev, fw->size, kmem, in bnxt_flash_package_from_file()

12