Searched refs:kmem (Results 1 - 53 of 53) sorted by relevance

/linux-4.4.14/tools/lib/traceevent/
H A Dplugin_kmem.c53 pevent_register_event_handler(pevent, -1, "kmem", "kfree", PEVENT_PLUGIN_LOADER()
56 pevent_register_event_handler(pevent, -1, "kmem", "kmalloc", PEVENT_PLUGIN_LOADER()
59 pevent_register_event_handler(pevent, -1, "kmem", "kmalloc_node", PEVENT_PLUGIN_LOADER()
62 pevent_register_event_handler(pevent, -1, "kmem", "kmem_cache_alloc", PEVENT_PLUGIN_LOADER()
65 pevent_register_event_handler(pevent, -1, "kmem", PEVENT_PLUGIN_LOADER()
69 pevent_register_event_handler(pevent, -1, "kmem", "kmem_cache_free", PEVENT_PLUGIN_LOADER()
76 pevent_unregister_event_handler(pevent, -1, "kmem", "kfree", PEVENT_PLUGIN_UNLOADER()
79 pevent_unregister_event_handler(pevent, -1, "kmem", "kmalloc", PEVENT_PLUGIN_UNLOADER()
82 pevent_unregister_event_handler(pevent, -1, "kmem", "kmalloc_node", PEVENT_PLUGIN_UNLOADER()
85 pevent_unregister_event_handler(pevent, -1, "kmem", "kmem_cache_alloc", PEVENT_PLUGIN_UNLOADER()
88 pevent_unregister_event_handler(pevent, -1, "kmem", PEVENT_PLUGIN_UNLOADER()
92 pevent_unregister_event_handler(pevent, -1, "kmem", "kmem_cache_free", PEVENT_PLUGIN_UNLOADER()
/linux-4.4.14/lib/
H A Dtest_user_copy.c39 char *kmem; test_user_copy_init() local
45 kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); test_user_copy_init()
46 if (!kmem) test_user_copy_init()
54 kfree(kmem); test_user_copy_init()
62 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), test_user_copy_init()
64 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), test_user_copy_init()
72 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), test_user_copy_init()
75 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, test_user_copy_init()
78 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, test_user_copy_init()
81 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, test_user_copy_init()
84 ret |= test(!get_user(value, (unsigned long __user *)kmem), test_user_copy_init()
86 ret |= test(!put_user(value, (unsigned long __user *)kmem), test_user_copy_init()
90 kfree(kmem); test_user_copy_init()
/linux-4.4.14/tools/perf/scripts/perl/
H A Dcheck-perf-trace.pl43 sub kmem::kmalloc subroutine
59 flag_str("kmem::kmalloc", "gfp_flags", $gfp_flags));
/linux-4.4.14/drivers/crypto/nx/
H A Dnx.h129 void *kmem; /* unaligned, kmalloc'd buffer */ member in struct:nx_crypto_ctx
130 size_t kmem_len; /* length of kmem */
136 struct nx_sg *in_sg; /* aligned pointer into kmem to an sg list */
137 struct nx_sg *out_sg; /* aligned pointer into kmem to an sg list */
H A Dnx.c321 memset(nx_ctx->kmem, 0, nx_ctx->kmem_len); nx_ctx_init()
683 nx_ctx->kmem = kmalloc(nx_ctx->kmem_len, GFP_KERNEL); nx_crypto_ctx_init()
684 if (!nx_ctx->kmem) nx_crypto_ctx_init()
688 nx_ctx->csbcpb = (struct nx_csbcpb *)(round_up((u64)nx_ctx->kmem, nx_crypto_ctx_init()
763 kzfree(nx_ctx->kmem); nx_crypto_ctx_exit()
774 kzfree(nx_ctx->kmem); nx_crypto_ctx_aead_exit()
/linux-4.4.14/net/ipv4/
H A Dtcp_memcontrol.c203 .name = "kmem.tcp.limit_in_bytes",
209 .name = "kmem.tcp.usage_in_bytes",
214 .name = "kmem.tcp.failcnt",
220 .name = "kmem.tcp.max_usage_in_bytes",
/linux-4.4.14/tools/perf/
H A Dbuiltin-kmem.c1329 { "kmem:kmalloc", perf_evsel__process_alloc_event, }, __cmd_kmem()
1330 { "kmem:kmem_cache_alloc", perf_evsel__process_alloc_event, }, __cmd_kmem()
1331 { "kmem:kmalloc_node", perf_evsel__process_alloc_node_event, }, __cmd_kmem()
1332 { "kmem:kmem_cache_alloc_node", perf_evsel__process_alloc_node_event, }, __cmd_kmem()
1333 { "kmem:kfree", perf_evsel__process_free_event, }, __cmd_kmem()
1334 { "kmem:kmem_cache_free", perf_evsel__process_free_event, }, __cmd_kmem()
1336 { "kmem:mm_page_alloc", perf_evsel__process_page_alloc_event, }, __cmd_kmem()
1337 { "kmem:mm_page_free", perf_evsel__process_page_free_event, }, __cmd_kmem()
1340 if (!perf_session__has_traces(session, "kmem record")) __cmd_kmem()
1349 if (!strcmp(perf_evsel__name(evsel), "kmem:mm_page_alloc") && __cmd_kmem()
1792 "-e", "kmem:kmalloc", __cmd_record()
1793 "-e", "kmem:kmalloc_node", __cmd_record()
1794 "-e", "kmem:kfree", __cmd_record()
1795 "-e", "kmem:kmem_cache_alloc", __cmd_record()
1796 "-e", "kmem:kmem_cache_alloc_node", __cmd_record()
1797 "-e", "kmem:kmem_cache_free", __cmd_record()
1800 "-e", "kmem:mm_page_alloc", __cmd_record()
1801 "-e", "kmem:mm_page_free", __cmd_record()
1839 if (!strcmp(var, "kmem.default")) { kmem_config()
1888 const char errmsg[] = "No %s allocation events found. Have you run 'perf kmem record --%s'?\n"; cmd_kmem()
1917 "kmem:kmalloc")) { cmd_kmem()
1927 "kmem:mm_page_alloc"); cmd_kmem()
H A Dperf-completion.sh168 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|
H A Dbuiltin-help.c443 "script", "sched", "kmem", "lock", "kvm", "test", "inject", "mem", "data", cmd_help()
H A Dperf.c59 { "kmem", cmd_kmem, 0 },
/linux-4.4.14/include/linux/
H A Dmemcontrol.h189 struct page_counter kmem; member in struct:mem_cgroup
745 * for non-memcg users for the kmem functions. Not even a function call, if we
762 * will return -1 when this is not a kmem-limited memcg.
784 * memcg_kmem_charge: charge a kmem page
800 * memcg_kmem_uncharge: uncharge a kmem page
812 * @cachep: the original global kmem cache
H A Dvmalloc.h151 /* for /dev/kmem */
H A Dlru_cache.h183 /* the pre-created kmem cache to allocate the objects from */
H A Dslab.h509 * This is the main placeholder for memcg-related information in kmem caches.
H A Dfs.h126 /* File is huge (eg. /dev/kmem): treat loff_t as unsigned */
/linux-4.4.14/fs/btrfs/
H A Dqgroup.h27 * TODO: Use kmem cache to alloc it.
/linux-4.4.14/fs/xfs/
H A Dkmem.c24 #include "kmem.h"
H A Dxfs_linux.h43 #include "kmem.h"
/linux-4.4.14/mm/
H A Dmemcontrol.c355 * but only a few kmem-limited. Or also, if we have, for instance, 200
356 * memcgs, and none but the 200th is kmem-limited, we'd have to have a
380 * the alloc/free process all the time. In a small machine, 4 kmem-limited
1280 pr_info("kmem: usage %llukB, limit %llukB, failcnt %lu\n", mem_cgroup_print_oom_info()
1281 K((u64)page_counter_read(&memcg->kmem)), mem_cgroup_print_oom_info()
1282 K((u64)memcg->kmem.limit), memcg->kmem.failcnt); mem_cgroup_print_oom_info()
2415 if (!page_counter_try_charge(&memcg->kmem, nr_pages, &counter)) __memcg_kmem_charge_memcg()
2420 page_counter_uncharge(&memcg->kmem, nr_pages); __memcg_kmem_charge_memcg()
2450 page_counter_uncharge(&memcg->kmem, nr_pages); __memcg_kmem_uncharge()
2870 counter = &memcg->kmem; mem_cgroup_read_u64()
2913 * kmem.usage_in_bytes will have no way to determine when it took memcg_activate_kmem()
2937 err = page_counter_limit(&memcg->kmem, nr_pages); memcg_activate_kmem()
2942 * A memory cgroup is considered kmem-active as soon as it gets memcg_activate_kmem()
2963 ret = page_counter_limit(&memcg->kmem, limit); memcg_update_kmem_limit()
2978 * If the parent cgroup is not kmem-active now, it cannot be activated memcg_propagate_kmem()
3050 counter = &memcg->kmem; mem_cgroup_reset()
3684 WARN_ON(page_counter_read(&memcg->kmem)); memcg_destroy_kmem()
4092 .name = "kmem.limit_in_bytes",
4098 .name = "kmem.usage_in_bytes",
4103 .name = "kmem.failcnt",
4109 .name = "kmem.max_usage_in_bytes",
4116 .name = "kmem.slabinfo",
4249 page_counter_init(&memcg->kmem, NULL); mem_cgroup_css_alloc()
4297 page_counter_init(&memcg->kmem, &parent->kmem); mem_cgroup_css_online()
4308 page_counter_init(&memcg->kmem, NULL); mem_cgroup_css_online()
H A Dslab_common.c24 #include <trace/events/kmem.h>
485 * This function attempts to create a kmem cache that will serve allocation
H A Dslob.c71 #include <trace/events/kmem.h>
H A Dvmalloc.c1996 * any informaion, as /dev/kmem.
2078 * any informaion, as /dev/kmem.
H A Dslub.c38 #include <trace/events/kmem.h>
3662 * memory cgroups by kmem pages that can be freed. __kmem_cache_shrink()
H A Dksm.c361 * mmap of /dev/mem or /dev/kmem, where we would not want to touch it.
H A Dpage_alloc.c56 #include <trace/events/kmem.h>
3424 * alloc_kmem_pages charges newly allocated pages to the kmem resource counter
H A Dslab.c126 #include <trace/events/kmem.h>
/linux-4.4.14/drivers/gpu/drm/amd/include/
H A Dcgs_common.h158 * @kmem: pointer to kernel memory
167 typedef int (*cgs_gmap_kmem_t)(void *cgs_device, void *kmem, uint64_t size,
557 #define cgs_gmap_kmem(dev,kmem,size,min_off,max_off,kmem_handle,mcaddr) \
558 CGS_CALL(gmap_kmem,dev,kmem,size,min_off,max_off,kmem_handle,mcaddr)
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c779 u8 *kmem; bnxt_flash_nvram() local
789 kmem = dma_alloc_coherent(&bp->pdev->dev, data_len, &dma_handle, bnxt_flash_nvram()
791 if (!kmem) { bnxt_flash_nvram()
796 memcpy(kmem, data, data_len); bnxt_flash_nvram()
800 dma_free_coherent(&bp->pdev->dev, data_len, kmem, dma_handle); bnxt_flash_nvram()
/linux-4.4.14/arch/powerpc/mm/
H A Dhugetlbpage.c576 * the same kmem cache that holds the hugepte. hugetlb_free_pmd_range()
624 * the same kmem cache that holds the hugepte. hugetlb_free_pud_range()
689 * same kmem cache that holds the hugepte. hugetlb_free_pgd_range()
876 * Create a kmem cache for hugeptes. The bottom bits in the pte have hugetlbpage_init()
882 panic("%s: Unable to create kmem cache for hugeptes\n", hugetlbpage_init()
/linux-4.4.14/include/trace/events/
H A Dkmem.h2 #define TRACE_SYSTEM kmem
/linux-4.4.14/Documentation/trace/postprocess/
H A Dtrace-pagealloc-postprocess.pl129 $regex_fragdetails = generate_traceevent_regex("kmem/mm_page_alloc_extfrag",
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_cgs.c76 static int amdgpu_cgs_gmap_kmem(void *cgs_device, void *kmem, amdgpu_cgs_gmap_kmem() argument
84 struct page *kmem_page = vmalloc_to_page(kmem); amdgpu_cgs_gmap_kmem()
/linux-4.4.14/kernel/
H A Dpid_namespace.c34 * creates the kmem cache to allocate pids from.
/linux-4.4.14/drivers/infiniband/ulp/iser/
H A Discsi_iser.h594 * @desc_cache: kmem cache for tx dataout
/linux-4.4.14/drivers/char/
H A Dmem.c792 [2] = { "kmem", 0, &kmem_fops, FMODE_UNSIGNED_OFFSET },
/linux-4.4.14/security/apparmor/
H A Dpolicy_unpack.c738 * @udata: user data copied to kmem (NOT NULL)
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dlu_object.c1918 * Helper function to initialize a number of kmem slab caches at once.
1941 * Helper function to finalize a number of kmem slab cached at once. Dual to
H A Dcl_object.c1045 * Global initialization of cl-data. Create kmem caches, register
/linux-4.4.14/drivers/isdn/hardware/mISDN/
H A Davmfritz.c1107 pr_info("No kmem for fritzcard\n"); fritzpci_probe()
H A Dnetjet.c1089 pr_info("No kmem for Netjet\n"); nj_probe()
H A Dw6692.c1367 pr_info("No kmem for w6692 card\n"); w6692_probe()
H A Dhfcpci.c2227 printk(KERN_ERR "No kmem for HFC card\n"); hfc_probe()
H A Dhfcmulti.c5038 printk(KERN_ERR "No kmem for HFC-Multi card\n"); hfcmulti_init()
/linux-4.4.14/drivers/isdn/hisax/
H A Dhfc4s8s_l1.c1477 printk(KERN_ERR "No kmem for HFC-4S/8S card\n"); hfc4s8s_probe()
/linux-4.4.14/drivers/iommu/
H A Dexynos-iommu.c1200 pr_err("%s: Failed to create kmem cache\n", __func__); exynos_iommu_init()
/linux-4.4.14/fs/
H A Dsuper.c95 * Ensure that we always scan at least one object - memcg kmem super_cache_scan()
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Duser_sdma.c395 snprintf(buf, 64, "txreq-kmem-cache-%u-%u-%u", dd->unit, uctxt->ctxt, hfi1_user_sdma_alloc_queues()
/linux-4.4.14/drivers/isdn/mISDN/
H A Dl1oip_core.c1502 printk(KERN_ERR "No kmem for L1-over-IP driver.\n"); l1oip_init()
/linux-4.4.14/fs/kernfs/
H A Ddir.c545 * If the ino of the sysfs entry created for a kmem cache gets __kernfs_new_node()
/linux-4.4.14/include/net/
H A Dsock.h1063 * appear in the kmem cgroup filesystem.
/linux-4.4.14/virt/kvm/
H A Dkvm_main.c3571 /* A kmem cache lets us meet the alignment requirements of fx_save. */
/linux-4.4.14/fs/cifs/
H A Dcifssmb.c6523 /* BB change to kmem cache alloc */ CIFSSMBNotify()
/linux-4.4.14/kernel/trace/
H A Dtrace.c3809 "\t echo 'enable_event:kmem:kmalloc:3 if nr_rq > 1' > \\\n"

Completed in 2501 milliseconds