/linux-4.4.14/tools/lib/traceevent/ |
H A D | plugin_kmem.c | 53 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 D | test_user_copy.c | 39 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 D | check-perf-trace.pl | 43 sub kmem::kmalloc subroutine 59 flag_str("kmem::kmalloc", "gfp_flags", $gfp_flags));
|
/linux-4.4.14/drivers/crypto/nx/ |
H A D | nx.h | 129 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 D | nx.c | 321 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 D | tcp_memcontrol.c | 203 .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 D | builtin-kmem.c | 1329 { "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 D | perf-completion.sh | 168 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|
|
H A D | builtin-help.c | 443 "script", "sched", "kmem", "lock", "kvm", "test", "inject", "mem", "data", cmd_help()
|
H A D | perf.c | 59 { "kmem", cmd_kmem, 0 },
|
/linux-4.4.14/include/linux/ |
H A D | memcontrol.h | 189 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 D | vmalloc.h | 151 /* for /dev/kmem */
|
H A D | lru_cache.h | 183 /* the pre-created kmem cache to allocate the objects from */
|
H A D | slab.h | 509 * This is the main placeholder for memcg-related information in kmem caches.
|
H A D | fs.h | 126 /* File is huge (eg. /dev/kmem): treat loff_t as unsigned */
|
/linux-4.4.14/fs/btrfs/ |
H A D | qgroup.h | 27 * TODO: Use kmem cache to alloc it.
|
/linux-4.4.14/fs/xfs/ |
H A D | kmem.c | 24 #include "kmem.h"
|
H A D | xfs_linux.h | 43 #include "kmem.h"
|
/linux-4.4.14/mm/ |
H A D | memcontrol.c | 355 * 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 D | slab_common.c | 24 #include <trace/events/kmem.h> 485 * This function attempts to create a kmem cache that will serve allocation
|
H A D | slob.c | 71 #include <trace/events/kmem.h>
|
H A D | vmalloc.c | 1996 * any informaion, as /dev/kmem. 2078 * any informaion, as /dev/kmem.
|
H A D | slub.c | 38 #include <trace/events/kmem.h> 3662 * memory cgroups by kmem pages that can be freed. __kmem_cache_shrink()
|
H A D | ksm.c | 361 * mmap of /dev/mem or /dev/kmem, where we would not want to touch it.
|
H A D | page_alloc.c | 56 #include <trace/events/kmem.h> 3424 * alloc_kmem_pages charges newly allocated pages to the kmem resource counter
|
H A D | slab.c | 126 #include <trace/events/kmem.h>
|
/linux-4.4.14/drivers/gpu/drm/amd/include/ |
H A D | cgs_common.h | 158 * @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 D | bnxt_ethtool.c | 779 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 D | hugetlbpage.c | 576 * 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 D | kmem.h | 2 #define TRACE_SYSTEM kmem
|
/linux-4.4.14/Documentation/trace/postprocess/ |
H A D | trace-pagealloc-postprocess.pl | 129 $regex_fragdetails = generate_traceevent_regex("kmem/mm_page_alloc_extfrag",
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 76 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 D | pid_namespace.c | 34 * creates the kmem cache to allocate pids from.
|
/linux-4.4.14/drivers/infiniband/ulp/iser/ |
H A D | iscsi_iser.h | 594 * @desc_cache: kmem cache for tx dataout
|
/linux-4.4.14/drivers/char/ |
H A D | mem.c | 792 [2] = { "kmem", 0, &kmem_fops, FMODE_UNSIGNED_OFFSET },
|
/linux-4.4.14/security/apparmor/ |
H A D | policy_unpack.c | 738 * @udata: user data copied to kmem (NOT NULL)
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
H A D | lu_object.c | 1918 * 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 D | cl_object.c | 1045 * Global initialization of cl-data. Create kmem caches, register
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
H A D | avmfritz.c | 1107 pr_info("No kmem for fritzcard\n"); fritzpci_probe()
|
H A D | netjet.c | 1089 pr_info("No kmem for Netjet\n"); nj_probe()
|
H A D | w6692.c | 1367 pr_info("No kmem for w6692 card\n"); w6692_probe()
|
H A D | hfcpci.c | 2227 printk(KERN_ERR "No kmem for HFC card\n"); hfc_probe()
|
H A D | hfcmulti.c | 5038 printk(KERN_ERR "No kmem for HFC-Multi card\n"); hfcmulti_init()
|
/linux-4.4.14/drivers/isdn/hisax/ |
H A D | hfc4s8s_l1.c | 1477 printk(KERN_ERR "No kmem for HFC-4S/8S card\n"); hfc4s8s_probe()
|
/linux-4.4.14/drivers/iommu/ |
H A D | exynos-iommu.c | 1200 pr_err("%s: Failed to create kmem cache\n", __func__); exynos_iommu_init()
|
/linux-4.4.14/fs/ |
H A D | super.c | 95 * Ensure that we always scan at least one object - memcg kmem super_cache_scan()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | user_sdma.c | 395 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 D | l1oip_core.c | 1502 printk(KERN_ERR "No kmem for L1-over-IP driver.\n"); l1oip_init()
|
/linux-4.4.14/fs/kernfs/ |
H A D | dir.c | 545 * If the ino of the sysfs entry created for a kmem cache gets __kernfs_new_node()
|
/linux-4.4.14/include/net/ |
H A D | sock.h | 1063 * appear in the kmem cgroup filesystem.
|
/linux-4.4.14/virt/kvm/ |
H A D | kvm_main.c | 3571 /* A kmem cache lets us meet the alignment requirements of fx_save. */
|
/linux-4.4.14/fs/cifs/ |
H A D | cifssmb.c | 6523 /* BB change to kmem cache alloc */ CIFSSMBNotify()
|
/linux-4.4.14/kernel/trace/ |
H A D | trace.c | 3809 "\t echo 'enable_event:kmem:kmalloc:3 if nr_rq > 1' > \\\n"
|