/kernel/linux/linux-5.10/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 …]
|
D | test_kasan_module.c | 22 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/ |
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' {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/ |
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 | 17 events-kmem
|
D | events.rst | 411 # echo 'enable_event:kmem:kmalloc:1' > \ 418 # echo 'disable_event:kmem:kmalloc' > \ 428 # echo '!enable_event:kmem:kmalloc:1' > \ 431 # echo '!disable_event:kmem:kmalloc' > \ 437 kmem:kmalloc and sched:sched_switch, but can't have two kmem:kmalloc 438 versions such as kmem:kmalloc and kmem:kmalloc:1 or 'kmem:kmalloc if 439 bytes_req == 256' and 'kmem:kmalloc if bytes_alloc == 256' (they 440 could be combined into a single filter on kmem:kmalloc though). 451 /sys/kernel/debug/tracing/events/kmem/kmalloc/trigger 457 /sys/kernel/debug/tracing/events/kmem/kmalloc/trigger [all …]
|
/kernel/linux/linux-5.10/tools/perf/scripts/perl/bin/ |
D | check-perf-trace-record | 2 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/ |
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 || \
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 732 if (mtr->kmem) { in mtr_free_bufs() 733 hns_roce_buf_free(hr_dev, mtr->kmem); in mtr_free_bufs() 734 kfree(mtr->kmem); in mtr_free_bufs() 735 mtr->kmem = NULL; in mtr_free_bufs() 760 mtr->kmem = NULL; in mtr_alloc_bufs() 782 mtr->kmem = kzalloc(sizeof(*mtr->kmem), GFP_KERNEL); in mtr_alloc_bufs() 783 if (!mtr->kmem) { in mtr_alloc_bufs() 790 mtr->kmem, buf_attr->page_shift); in mtr_alloc_bufs() 796 all_pg_count = mtr->kmem->npages; in mtr_alloc_bufs() 828 mtr->kmem); in mtr_get_pages() [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
D | pseudo_lock.c | 247 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() 467 mem_r = plr->kmem; in pseudo_lock_fn() 883 mem_r = READ_ONCE(plr->kmem); in measure_cycles_lat_fn() 988 mem_r = READ_ONCE(plr->kmem); in measure_residency_fn() 1513 physical = __pa(plr->kmem) >> PAGE_SHIFT; in pseudo_lock_dev_mmap() 1535 memset(plr->kmem + off, 0, vsize); in pseudo_lock_dev_mmap()
|
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
D | nx.c | 308 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()
|
/kernel/linux/linux-5.10/drivers/dax/ |
D | Makefile | 4 obj-$(CONFIG_DEV_DAX_KMEM) += kmem.o
|
/kernel/linux/build/test/syzkaller/qos_auth/ |
D | kmemtcpusage_in_bytes.txt | 7 openat$fd_kmemtcpusage_in_bytes(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.tcp…
|
D | kmemusage_in_bytes.txt | 7 openat$fd_kmemusage_in_bytes(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.usage_…
|
D | kmemtcplimit_in_bytes.txt | 7 openat$fd_kmemtcplimit_in_bytes(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.tcp…
|
D | kmemmax_usage_in_bytes.txt | 7 openat$fd_kmemmax_usage_in_bytes(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.ma…
|
D | kmemlimit_in_bytes.txt | 7 openat$fd_kmemlimit_in_bytes(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.limit_…
|
D | kmemtcpmax_usage_in_bytes.txt | 7 openat$fd_kmemtcpmax_usage_in_bytes(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem…
|
D | kmemfailcnt.txt | 7 openat$fd_kmemfailcnt(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.failcnt"]], f…
|
D | kmemtcpfailcnt.txt | 7 openat$fd_kmemtcpfailcnt(fd const[AT_FDCWD], file ptr[in, string["/dev/memcg/memory.kmem.tcp.failcn…
|
/kernel/linux/linux-5.10/Documentation/admin-guide/cgroup-v1/ |
D | memory.rst | 88 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/ |
D | check-perf-trace.pl | 43 sub kmem::kmalloc subroutine
|
/kernel/linux/linux-5.10/tools/perf/ |
D | command-list.txt | 18 perf-kmem mainporcelain common
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
D | i40iw_verbs.h | 113 struct i40iw_dma_mem kmem; member
|