/linux-6.6.21/lib/ |
D | test_user_copy.c | 47 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 …]
|
/linux-6.6.21/tools/perf/Documentation/ |
D | examples.txt | 14 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 …]
|
D | perf-kmem.txt | 1 perf-kmem(1) 6 perf-kmem - Tool to trace/measure kernel memory properties 11 'perf kmem' [<options>] {record|stat} 15 There are two variants of perf kmem: 17 'perf kmem [<options>] record [<perf-record-options>] <command>' to 18 record the kmem events of an arbitrary workload. Additional 'perf 22 'perf kmem [<options>] stat' to report kernel memory statistics. 67 Show live page stat. The perf kmem shows total allocation stat by
|
D | perf.txt | 87 linkperf:perf-kmem[1], linkperf:perf-kvm[1], linkperf:perf-lock[1],
|
/linux-6.6.21/mm/kasan/ |
D | kasan_test_module.c | 20 char *kmem; in copy_user_test() local 25 kmem = kmalloc(size, GFP_KERNEL); in copy_user_test() 26 if (!kmem) in copy_user_test() 34 kfree(kmem); in copy_user_test() 41 unused = copy_from_user(kmem, usermem, size + 1); in copy_user_test() 44 unused = copy_to_user(usermem, kmem, size + 1); in copy_user_test() 47 unused = __copy_from_user(kmem, usermem, size + 1); in copy_user_test() 50 unused = __copy_to_user(usermem, kmem, size + 1); in copy_user_test() 53 unused = __copy_from_user_inatomic(kmem, usermem, size + 1); in copy_user_test() 56 unused = __copy_to_user_inatomic(usermem, kmem, size + 1); in copy_user_test() [all …]
|
/linux-6.6.21/Documentation/trace/ |
D | tracepoint-analysis.rst | 98 -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 …]
|
D | index.rst | 19 events-kmem
|
D | events.rst | 437 # echo 'enable_event:kmem:kmalloc:1' > \ 444 # echo 'disable_event:kmem:kmalloc' > \ 454 # echo '!enable_event:kmem:kmalloc:1' > \ 457 # echo '!disable_event:kmem:kmalloc' > \ 463 kmem:kmalloc and sched:sched_switch, but can't have two kmem:kmalloc 464 versions such as kmem:kmalloc and kmem:kmalloc:1 or 'kmem:kmalloc if 465 bytes_req == 256' and 'kmem:kmalloc if bytes_alloc == 256' (they 466 could be combined into a single filter on kmem:kmalloc though). 477 /sys/kernel/tracing/events/kmem/kmalloc/trigger 483 /sys/kernel/tracing/events/kmem/kmalloc/trigger [all …]
|
D | events-kmem.rst | 2 Subsystem Trace Points: kmem 5 The kmem tracing system captures events related to object and page allocation
|
/linux-6.6.21/tools/testing/selftests/ftrace/test.d/filter/ |
D | event-filter-function.tc | 14 echo 1 > events/kmem/kmem_cache_free/enable 18 echo 0 > events/kmem/kmem_cache_free/enable 34 echo "call_site.function == $target_func" > events/kmem/kmem_cache_free/filter 51 echo "call_site.function == 0x$address" > events/kmem/kmem_cache_free/filter
|
/linux-6.6.21/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-hist.tc | 44 echo 'hist:keys=call_site.sym' > events/kmem/kmalloc/trigger 46 grep '{ call_site: \[[0-9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]* *}' events/kmem/kmalloc/hist > /dev/nu… 53 echo 'hist:keys=call_site.sym-offset' > events/kmem/kmalloc/trigger 55 grep '{ call_site: \[[0-9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]*+0x[0-9a-f][0-9a-f]*' events/kmem/kmall…
|
D | trigger-hist-mod.tc | 45 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger 47 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
|
/linux-6.6.21/tools/perf/scripts/perl/bin/ |
D | check-perf-trace-record | 2 perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree
|
/linux-6.6.21/arch/x86/kernel/cpu/resctrl/ |
D | pseudo_lock.c | 265 kfree(plr->kmem); in pseudo_lock_region_clear() 266 plr->kmem = NULL; in pseudo_lock_region_clear() 380 plr->kmem = kzalloc(plr->size, GFP_KERNEL); in pseudo_lock_region_alloc() 381 if (!plr->kmem) { in pseudo_lock_region_alloc() 485 mem_r = plr->kmem; in pseudo_lock_fn() 901 mem_r = READ_ONCE(plr->kmem); in measure_cycles_lat_fn() 1006 mem_r = READ_ONCE(plr->kmem); in measure_residency_fn() 1533 physical = __pa(plr->kmem) >> PAGE_SHIFT; in pseudo_lock_dev_mmap() 1555 memset(plr->kmem + off, 0, vsize); in pseudo_lock_dev_mmap()
|
/linux-6.6.21/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 658 if (mtr->kmem) { in mtr_free_bufs() 659 hns_roce_buf_free(hr_dev, mtr->kmem); in mtr_free_bufs() 660 mtr->kmem = NULL; in mtr_free_bufs() 674 mtr->kmem = NULL; in mtr_alloc_bufs() 684 mtr->kmem = hns_roce_buf_alloc(hr_dev, total_size, in mtr_alloc_bufs() 688 if (IS_ERR(mtr->kmem)) { in mtr_alloc_bufs() 690 PTR_ERR(mtr->kmem)); in mtr_alloc_bufs() 691 return PTR_ERR(mtr->kmem); in mtr_alloc_bufs() 716 mtr->kmem, page_shift); in mtr_map_bufs() 1022 mtr->kmem = NULL; in hns_roce_mtr_create()
|
/linux-6.6.21/drivers/crypto/nx/ |
D | nx.c | 309 memset(nx_ctx->kmem, 0, nx_ctx->kmem_len); in nx_ctx_init() 670 nx_ctx->kmem = kmalloc(nx_ctx->kmem_len, GFP_KERNEL); in nx_crypto_ctx_init() 671 if (!nx_ctx->kmem) in nx_crypto_ctx_init() 675 nx_ctx->csbcpb = (struct nx_csbcpb *)(round_up((u64)nx_ctx->kmem, in nx_crypto_ctx_init() 750 kfree_sensitive(nx_ctx->kmem); in nx_crypto_ctx_exit() 766 kfree_sensitive(nx_ctx->kmem); in nx_crypto_ctx_aead_exit()
|
D | nx.h | 119 void *kmem; /* unaligned, kmalloc'd buffer */ member
|
/linux-6.6.21/drivers/dax/ |
D | Makefile | 4 obj-$(CONFIG_DEV_DAX_KMEM) += kmem.o
|
/linux-6.6.21/tools/perf/scripts/perl/ |
D | check-perf-trace.pl | 43 sub kmem::kmalloc subroutine
|
/linux-6.6.21/tools/perf/ |
D | command-list.txt | 19 perf-kmem mainporcelain traceevent
|
D | Build | 25 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kmem.o
|
D | perf-completion.sh | 203 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|
|
/linux-6.6.21/Documentation/translations/zh_CN/core-api/ |
D | memory-allocation.rst | 53 * 从用户空间触发的不可信任的分配应该是kmem核算的对象,必须设置 ``__GFP_ACCOUNT`` 位。
|
/linux-6.6.21/Documentation/admin-guide/cgroup-v1/ |
D | memory.rst | 95 memory.kmem.limit_in_bytes Deprecated knob to set and read the kernel 101 by memory.kmem.usage_in_bytes. 102 memory.kmem.usage_in_bytes show current kernel memory allocation 103 memory.kmem.failcnt show the number of kernel memory usage 105 memory.kmem.max_usage_in_bytes show max kernel memory usage recorded 107 memory.kmem.tcp.limit_in_bytes set/show hard limit for tcp buf memory 108 memory.kmem.tcp.usage_in_bytes show current tcp buf memory allocation 109 memory.kmem.tcp.failcnt show the number of tcp buf memory usage 111 memory.kmem.tcp.max_usage_in_bytes show max tcp buf memory usage recorded 329 memory.kmem.usage_in_bytes, or in a separate counter when it makes sense. [all …]
|
/linux-6.6.21/fs/xfs/ |
D | Makefile | 96 kmem.o
|