cregit-Linux how code gets into the kernel

Release 4.10 fs/proc/task_mmu.c

Directory: fs/proc
#include <linux/mm.h>
#include <linux/vmacache.h>
#include <linux/hugetlb.h>
#include <linux/huge_mm.h>
#include <linux/mount.h>
#include <linux/seq_file.h>
#include <linux/highmem.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/mempolicy.h>
#include <linux/rmap.h>
#include <linux/swap.h>
#include <linux/swapops.h>
#include <linux/mmu_notifier.h>
#include <linux/page_idle.h>
#include <linux/shmem_fs.h>

#include <asm/elf.h>
#include <linux/uaccess.h>
#include <asm/tlbflush.h>
#include "internal.h"


void task_mem(struct seq_file *m, struct mm_struct *mm) { unsigned long text, lib, swap, ptes, pmds, anon, file, shmem; unsigned long hiwater_vm, total_vm, hiwater_rss, total_rss; anon = get_mm_counter(mm, MM_ANONPAGES); file = get_mm_counter(mm, MM_FILEPAGES); shmem = get_mm_counter(mm, MM_SHMEMPAGES); /* * Note: to minimize their overhead, mm maintains hiwater_vm and * hiwater_rss only when about to *lower* total_vm or rss. Any * collector of these hiwater stats must therefore get total_vm * and rss too, which will usually be the higher. Barriers? not * worth the effort, such snapshots can always be inconsistent. */ hiwater_vm = total_vm = mm->total_vm; if (hiwater_vm < mm->hiwater_vm) hiwater_vm = mm->hiwater_vm; hiwater_rss = total_rss = anon + file + shmem; if (hiwater_rss < mm->hiwater_rss) hiwater_rss = mm->hiwater_rss; text = (PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK)) >> 10; lib = (mm->exec_vm << (PAGE_SHIFT-10)) - text; swap = get_mm_counter(mm, MM_SWAPENTS); ptes = PTRS_PER_PTE * sizeof(pte_t) * atomic_long_read(&mm->nr_ptes); pmds = PTRS_PER_PMD * sizeof(pmd_t) * mm_nr_pmds(mm); seq_printf(m, "VmPeak:\t%8lu kB\n" "VmSize:\t%8lu kB\n" "VmLck:\t%8lu kB\n" "VmPin:\t%8lu kB\n" "VmHWM:\t%8lu kB\n" "VmRSS:\t%8lu kB\n" "RssAnon:\t%8lu kB\n" "RssFile:\t%8lu kB\n" "RssShmem:\t%8lu kB\n" "VmData:\t%8lu kB\n" "VmStk:\t%8lu kB\n" "VmExe:\t%8lu kB\n" "VmLib:\t%8lu kB\n" "VmPTE:\t%8lu kB\n" "VmPMD:\t%8lu kB\n" "VmSwap:\t%8lu kB\n", hiwater_vm << (PAGE_SHIFT-10), total_vm << (PAGE_SHIFT-10), mm->locked_vm << (PAGE_SHIFT-10), mm->pinned_vm << (PAGE_SHIFT-10), hiwater_rss << (PAGE_SHIFT-10), total_rss << (PAGE_SHIFT-10), anon << (PAGE_SHIFT-10), file << (PAGE_SHIFT-10), shmem << (PAGE_SHIFT-10), mm->data_vm << (PAGE_SHIFT-10), mm->stack_vm << (PAGE_SHIFT-10), text, lib, ptes >> 10, pmds >> 10, swap << (PAGE_SHIFT-10)); hugetlb_report_usage(m, mm); }

Contributors

PersonTokensPropCommitsCommitProp
hugh dickinshugh dickins7120.94%18.33%
christoph hellwigchristoph hellwig6619.47%18.33%
jerome marchandjerome marchand6519.17%18.33%
william lee irwin iiiwilliam lee irwin iii4713.86%325.00%
kirill a. shutemovkirill a. shutemov4112.09%18.33%
kamezawa hiroyukikamezawa hiroyuki205.90%18.33%
christoph lameterchristoph lameter113.24%18.33%
eric w. biedermaneric w. biederman82.36%18.33%
naoya horiguchinaoya horiguchi72.06%18.33%
konstantin khlebnikovkonstantin khlebnikov30.88%18.33%
Total339100.00%12100.00%


unsigned long task_vsize(struct mm_struct *mm) { return PAGE_SIZE * mm->total_vm; }

Contributors

PersonTokensPropCommitsCommitProp
christoph hellwigchristoph hellwig1477.78%150.00%
andrew mortonandrew morton422.22%150.00%
Total18100.00%2100.00%


unsigned long task_statm(struct mm_struct *mm, unsigned long *shared, unsigned long *text, unsigned long *data, unsigned long *resident) { *shared = get_mm_counter(mm, MM_FILEPAGES) + get_mm_counter(mm, MM_SHMEMPAGES); *text = (PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK)) >> PAGE_SHIFT; *data = mm->data_vm + mm->stack_vm; *resident = *shared + get_mm_counter(mm, MM_ANONPAGES); return mm->total_vm; }

Contributors

PersonTokensPropCommitsCommitProp
christoph hellwigchristoph hellwig3939.39%110.00%
william lee irwin iiiwilliam lee irwin iii2525.25%220.00%
alexey dobriyanalexey dobriyan1010.10%110.00%
hugh dickinshugh dickins99.09%220.00%
jerome marchandjerome marchand77.07%110.00%
christoph lameterchristoph lameter44.04%110.00%
konstantin khlebnikovkonstantin khlebnikov33.03%110.00%
kamezawa hiroyukikamezawa hiroyuki22.02%110.00%
Total99100.00%10100.00%

#ifdef CONFIG_NUMA /* * Save get_task_policy() for show_numa_map(). */
static void hold_task_mempolicy(struct proc_maps_private *priv) { struct task_struct *task = priv->task; task_lock(task); priv->task_mempolicy = get_task_policy(task); mpol_get(priv->task_mempolicy); task_unlock(task); }

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki4393.48%150.00%
oleg nesterovoleg nesterov36.52%150.00%
Total46100.00%2100.00%


static void release_task_mempolicy(struct proc_maps_private *priv) { mpol_put(priv->task_mempolicy); }

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki18100.00%1100.00%
Total18100.00%1100.00%

#else
static void hold_task_mempolicy(struct proc_maps_private *priv) { }

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki10100.00%1100.00%
Total10100.00%1100.00%


static void release_task_mempolicy(struct proc_maps_private *priv) { }

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki10100.00%1100.00%
Total10100.00%1100.00%

#endif
static void vma_stop(struct proc_maps_private *priv) { struct mm_struct *mm = priv->mm; release_task_mempolicy(priv); up_read(&mm->mmap_sem); mmput(mm); }

Contributors

PersonTokensPropCommitsCommitProp
matt mackallmatt mackall3078.95%240.00%
kamezawa hiroyukikamezawa hiroyuki513.16%120.00%
oleg nesterovoleg nesterov25.26%120.00%
mauricio linmauricio lin12.63%120.00%
Total38100.00%5100.00%


static struct vm_area_struct * m_next_vma(struct proc_maps_private *priv, struct vm_area_struct *vma) { if (vma == priv->tail_vma) return NULL; return vma->vm_next ?: priv->tail_vma; }

Contributors

PersonTokensPropCommitsCommitProp
oleg nesterovoleg nesterov39100.00%1100.00%
Total39100.00%1100.00%


static void m_cache_vma(struct seq_file *m, struct vm_area_struct *vma) { if (m->count < m->size) /* vma is copied successfully */ m->version = m_next_vma(m->private, vma) ? vma->vm_end : -1UL; }

Contributors

PersonTokensPropCommitsCommitProp
oleg nesterovoleg nesterov4697.87%150.00%
robert horobert ho12.13%150.00%
Total47100.00%2100.00%


static void *m_start(struct seq_file *m, loff_t *ppos) { struct proc_maps_private *priv = m->private; unsigned long last_addr = m->version; struct mm_struct *mm; struct vm_area_struct *vma; unsigned int pos = *ppos; /* See m_cache_vma(). Zero at the start or after lseek. */ if (last_addr == -1UL) return NULL; priv->task = get_proc_task(priv->inode); if (!priv->task) return ERR_PTR(-ESRCH); mm = priv->mm; if (!mm || !atomic_inc_not_zero(&mm->mm_users)) return NULL; down_read(&mm->mmap_sem); hold_task_mempolicy(priv); priv->tail_vma = get_gate_vma(mm); if (last_addr) { vma = find_vma(mm, last_addr - 1); if (vma && vma->vm_start <= last_addr) vma = m_next_vma(priv, vma); if (vma) return vma; } m->version = 0; if (pos < mm->map_count) { for (vma = mm->mmap; pos; pos--) { m->version = vma->vm_start; vma = vma->vm_next; } return vma; } /* we do not bother to update m->version in this case */ if (pos == mm->map_count && priv->tail_vma) return priv->tail_vma; vma_stop(priv); return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
oleg nesterovoleg nesterov11947.98%738.89%
matt mackallmatt mackall4919.76%15.56%
al viroal viro197.66%211.11%
christoph hellwigchristoph hellwig187.26%15.56%
ingo molnaringo molnar176.85%211.11%
robert horobert ho124.84%15.56%
prasanna medaprasanna meda72.82%15.56%
kamezawa hiroyukikamezawa hiroyuki31.21%15.56%
eric w. biedermaneric w. biederman20.81%15.56%
mauricio linmauricio lin20.81%15.56%
Total248100.00%18100.00%


static void *m_next(struct seq_file *m, void *v, loff_t *pos) { struct proc_maps_private *priv = m->private; struct vm_area_struct *next; (*pos)++; next = m_next_vma(priv, v); if (!next) vma_stop(priv); return next; }

Contributors

PersonTokensPropCommitsCommitProp
matt mackallmatt mackall2641.94%228.57%
oleg nesterovoleg nesterov2337.10%228.57%
david rientjesdavid rientjes711.29%114.29%
mauricio linmauricio lin46.45%114.29%
christoph hellwigchristoph hellwig23.23%114.29%
Total62100.00%7100.00%


static void m_stop(struct seq_file *m, void *v) { struct proc_maps_private *priv = m->private; if (!IS_ERR_OR_NULL(v)) vma_stop(priv); if (priv->task) { put_task_struct(priv->task); priv->task = NULL; } }

Contributors

PersonTokensPropCommitsCommitProp
matt mackallmatt mackall3560.34%116.67%
oleg nesterovoleg nesterov1017.24%233.33%
linus torvaldslinus torvalds610.34%116.67%
mauricio linmauricio lin46.90%116.67%
prasanna medaprasanna meda35.17%116.67%
Total58100.00%6100.00%


static int proc_maps_open(struct inode *inode, struct file *file, const struct seq_operations *ops, int psize) { struct proc_maps_private *priv = __seq_open_private(file, ops, psize); if (!priv) return -ENOMEM; priv->inode = inode; priv->mm = proc_mem_open(inode, PTRACE_MODE_READ); if (IS_ERR(priv->mm)) { int err = PTR_ERR(priv->mm); seq_release_private(inode, file); return err; } return 0; }

Contributors

PersonTokensPropCommitsCommitProp
oleg nesterovoleg nesterov6262.63%333.33%
matt mackallmatt mackall3030.30%111.11%
christoph hellwigchristoph hellwig33.03%111.11%
jan engelhardtjan engelhardt11.01%111.11%
prasanna medaprasanna meda11.01%111.11%
david rientjesdavid rientjes11.01%111.11%
nick pigginnick piggin11.01%111.11%
Total99100.00%9100.00%


static int proc_map_release(struct inode *inode, struct file *file) { struct seq_file *seq = file->private_data; struct proc_maps_private *priv = seq->private; if (priv->mm) mmdrop(priv->mm); return seq_release_private(inode, file); }

Contributors

PersonTokensPropCommitsCommitProp
oleg nesterovoleg nesterov55100.00%1100.00%
Total55100.00%1100.00%


static int do_maps_open(struct inode *inode, struct file *file, const struct seq_operations *ops) { return proc_maps_open(inode, file, ops, sizeof(struct proc_maps_private)); }

Contributors

PersonTokensPropCommitsCommitProp
oleg nesterovoleg nesterov3078.95%125.00%
mauricio linmauricio lin410.53%125.00%
matt mackallmatt mackall410.53%250.00%
Total38100.00%4100.00%

/* * Indicate if the VMA is a stack for the given task; for * /proc/PID/maps that is the stack of the main task. */
static int is_stack(struct proc_maps_private *priv, struct vm_area_struct *vma) { /* * We make no effort to guess what a given thread considers to be * its "stack". It's not even well-defined for programs written * languages like Go. */ return vma->vm_start <= vma->vm_mm->start_stack && vma->vm_end >= vma->vm_mm->start_stack; }

Contributors

PersonTokensPropCommitsCommitProp
johannes weinerjohannes weiner2155.26%133.33%
oleg nesterovoleg nesterov1539.47%133.33%
andy lutomirskiandy lutomirski25.26%133.33%
Total38100.00%3100.00%


static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid) { struct mm_struct *mm = vma->vm_mm; struct file *file = vma->vm_file; struct proc_maps_private *priv = m->private; vm_flags_t flags = vma->vm_flags; unsigned long ino = 0; unsigned long long pgoff = 0; unsigned long start, end; dev_t dev = 0; const char *name = NULL; if (file) { struct inode *inode = file_inode(vma->vm_file); dev = inode->i_sb->s_dev; ino = inode->i_ino; pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT; } /* We don't show the stack guard page in /proc/maps */ start = vma->vm_start; if (stack_guard_page_start(vma, start)) start += PAGE_SIZE; end = vma->vm_end; if (stack_guard_page_end(vma, end)) end -= PAGE_SIZE; seq_setwidth(m, 25 + sizeof(void *) * 6 - 1); seq_printf(m, "%08lx-%08lx %c%c%c%c %08llx %02x:%02x %lu ", start, end, flags & VM_READ ? 'r' : '-', flags & VM_WRITE ? 'w' : '-', flags & VM_EXEC ? 'x' : '-', flags & VM_MAYSHARE ? 's' : 'p', pgoff, MAJOR(dev), MINOR(dev), ino); /* * Print the dentry name for named mappings, and a * special [heap] marker for the heap: */ if (file) { seq_pad(m, ' '); seq_file_path(m, file, "\n"); goto done; } if (vma->vm_ops && vma->vm_ops->name) { name = vma->vm_ops->name(vma); if (name) goto done; } name = arch_vma_name(vma); if (!name) { if (!mm) { name = "[vdso]"; goto done; } if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) { name = "[heap]"; goto done; } if (is_stack(priv, vma)) name = "[stack]"; } done: if (name) { seq_pad(m, ' '); seq_puts(m, name); } seq_putc(m, '\n'); }

Contributors

PersonTokensPropCommitsCommitProp
matt mackallmatt mackall18045.34%420.00%
siddhesh poyarekarsiddhesh poyarekar4210.58%15.00%
andy lutomirskiandy lutomirski328.06%15.00%
david rientjesdavid rientjes235.79%15.00%
tetsuo handatetsuo handa225.54%15.00%
mikulas patockamikulas patocka225.54%15.00%
kamezawa hiroyukikamezawa hiroyuki215.29%15.00%
linus torvaldslinus torvalds184.53%15.00%
mauricio linmauricio lin143.53%15.00%
stefan baderstefan bader71.76%15.00%
joe kortyjoe korty51.26%15.00%
johannes weinerjohannes weiner30.76%15.00%
al viroal viro30.76%15.00%
aaro koskinenaaro koskinen20.50%15.00%
kosaki motohirokosaki motohiro10.25%15.00%
miklos szeredimiklos szeredi10.25%15.00%
oleg nesterovoleg nesterov10.25%15.00%
Total397100.00%20100.00%


static int show_map(struct seq_file *m, void *v, int is_pid) { show_map_vma(m, v, is_pid); m_cache_vma(m, v); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
joe kortyjoe korty2054.05%116.67%
oleg nesterovoleg nesterov821.62%233.33%
siddhesh poyarekarsiddhesh poyarekar513.51%116.67%
matt mackallmatt mackall410.81%233.33%
Total37100.00%6100.00%


static int show_pid_map(struct seq_file *m, void *v) { return show_map(m, v, 1); }

Contributors

PersonTokensPropCommitsCommitProp
siddhesh poyarekarsiddhesh poyarekar25100.00%1100.00%
Total25100.00%1100.00%


static int show_tid_map(struct seq_file *m, void *v) { return show_map(m, v, 0); }

Contributors

PersonTokensPropCommitsCommitProp
siddhesh poyarekarsiddhesh poyarekar25100.00%1100.00%
Total25100.00%1100.00%

static const struct seq_operations proc_pid_maps_op = { .start = m_start, .next = m_next, .stop = m_stop, .show = show_pid_map }; static const struct seq_operations proc_tid_maps_op = { .start = m_start, .next = m_next, .stop = m_stop, .show = show_tid_map };
static int pid_maps_open(struct inode *inode, struct file *file) { return do_maps_open(inode, file, &proc_pid_maps_op); }

Contributors

PersonTokensPropCommitsCommitProp
matt mackallmatt mackall2592.59%250.00%
siddhesh poyarekarsiddhesh poyarekar13.70%125.00%
david rientjesdavid rientjes13.70%125.00%
Total27100.00%4100.00%


static int tid_maps_open(struct inode *inode, struct file *file) { return do_maps_open(inode, file, &proc_tid_maps_op); }

Contributors

PersonTokensPropCommitsCommitProp
siddhesh poyarekarsiddhesh poyarekar27100.00%1100.00%
Total27100.00%1100.00%

const struct file_operations proc_pid_maps_operations = { .open = pid_maps_open, .read = seq_read, .llseek = seq_lseek, .release = proc_map_release, }; const struct file_operations proc_tid_maps_operations = { .open = tid_maps_open, .read = seq_read, .llseek = seq_lseek, .release = proc_map_release, }; /* * Proportional Set Size(PSS): my share of RSS. * * PSS of a process is the count of pages it has in memory, where each * page is divided by the number of processes sharing it. So if a * process has 1000 pages all to itself, and 1000 shared with one other * process, its PSS will be 1500. * * To keep (accumulated) division errors low, we adopt a 64bit * fixed-point pss counter to minimize division errors. So (pss >> * PSS_SHIFT) would be the real byte count. * * A shift of 12 before division means (assuming 4K page size): * - 1M 3-user-pages add up to 8KB errors; * - supports mapcount up to 2^24, or 16M; * - supports PSS up to 2^52 bytes, or 4PB. */ #define PSS_SHIFT 12 #ifdef CONFIG_PROC_PAGE_MONITOR struct mem_size_stats { unsigned long resident; unsigned long shared_clean; unsigned long shared_dirty; unsigned long private_clean; unsigned long private_dirty; unsigned long referenced; unsigned long anonymous; unsigned long anonymous_thp; unsigned long shmem_thp; unsigned long swap; unsigned long shared_hugetlb; unsigned long private_hugetlb; u64 pss; u64 swap_pss; bool check_shmem_swap; };
static void smaps_account(struct mem_size_stats *mss, struct page *page, bool compound, bool young, bool dirty) { int i, nr = compound ? 1 << compound_order(page) : 1; unsigned long size = nr * PAGE_SIZE; if (PageAnon(page)) mss->anonymous += size; mss->resident += size; /* Accumulate the size in pages that have been accessed. */ if (young || page_is_young(page) || PageReferenced(page)) mss->referenced += size; /* * page_count(page) == 1 guarantees the page is mapped exactly once. * If any subpage of the compound page mapped with PTE it would elevate * page_count(). */ if (page_count(page) == 1) { if (dirty || PageDirty(page)) mss->private_dirty += size; else mss->private_clean += size; mss->pss += (u64)size << PSS_SHIFT; return; } for (i = 0; i < nr; i++, page++) { int mapcount = page_mapcount(page); if (mapcount >= 2) { if (dirty || PageDirty(page)) mss->shared_dirty += PAGE_SIZE; else mss->shared_clean += PAGE_SIZE; mss->pss += (PAGE_SIZE << PSS_SHIFT) / mapcount; } else { if (dirty || PageDirty(page)) mss->private_dirty += PAGE_SIZE; else mss->private_clean += PAGE_SIZE; mss->pss += PAGE_SIZE << PSS_SHIFT; } } }

Contributors

PersonTokensPropCommitsCommitProp
kirill a. shutemovkirill a. shutemov23197.88%375.00%
vladimir davydovvladimir davydov52.12%125.00%
Total236100.00%4100.00%

#ifdef CONFIG_SHMEM
static int smaps_pte_hole(unsigned long addr, unsigned long end, struct mm_walk *walk) { struct mem_size_stats *mss = walk->private; mss->swap += shmem_partial_swap_usage( walk->vma->vm_file->f_mapping, addr, end); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka50100.00%2100.00%
Total50100.00%2100.00%

#endif
static void smaps_pte_entry(pte_t *pte, unsigned long addr, struct mm_walk *walk) { struct mem_size_stats *mss = walk->private; struct vm_area_struct *vma = walk->vma; struct page *page = NULL; if (pte_present(*pte)) { page = vm_normal_page(vma, addr, *pte); } else if (is_swap_pte(*pte)) { swp_entry_t swpent = pte_to_swp_entry(*pte); if (!non_swap_entry(swpent)) { int mapcount; mss->swap += PAGE_SIZE; mapcount = swp_swapcount(swpent); if (mapcount >= 2) { u64 pss_delta = (u64)PAGE_SIZE << PSS_SHIFT; do_div(pss_delta, mapcount); mss->swap_pss += pss_delta; } else { mss->swap_pss += (u64)PAGE_SIZE << PSS_SHIFT; } } else if (is_migration_entry(swpent)) page = migration_entry_to_page(swpent); } else if (unlikely(IS_ENABLED(CONFIG_SHMEM) && mss->check_shmem_swap && pte_none(*pte))) { page = find_get_entry(vma->vm_file->f_mapping, linear_page_index(vma, addr)); if (!page) return; if (radix_tree_exceptional_entry(page)) mss->swap += PAGE_SIZE; else put_page(page); return; } if (!page) return; smaps_account(mss, page, false, pte_young(*pte), pte_dirty(*pte)); }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka6624.81%213.33%
minchan kimminchan kim5821.80%213.33%
konstantin khlebnikovkonstantin khlebnikov4215.79%16.67%
kirill a. shutemovkirill a. shutemov2810.53%320.00%
matt mackallmatt mackall238.65%16.67%
mauricio linmauricio lin197.14%16.67%
peter zijlstrapeter zijlstra124.51%16.67%
dave hansendave hansen93.38%213.33%
eric w. biedermaneric w. biederman83.01%16.67%
naoya horiguchinaoya horiguchi10.38%16.67%
Total266100.00%15100.00%

#ifdef CONFIG_TRANSPARENT_HUGEPAGE
static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, struct mm_walk *walk) { struct mem_size_stats *mss = walk->private; struct vm_area_struct *vma = walk->vma; struct page *page; /* FOLL_DUMP will return -EFAULT on huge zero page */ page = follow_trans_huge_pmd(vma, addr, pmd, FOLL_DUMP); if (IS_ERR_OR_NULL(page)) return; if (PageAnon(page)) mss->anonymous_thp += HPAGE_PMD_SIZE; else if (PageSwapBacked(page)) mss->shmem_thp += HPAGE_PMD_SIZE; else if (is_zone_device_page(page)) /* pass */; else VM_BUG_ON_PAGE(1, page); smaps_account(mss, page, true, pmd_young(*pmd), pmd_dirty(*pmd)); }

Contributors

PersonTokensPropCommitsCommitProp
kirill a. shutemovkirill a. shutemov9673.85%330.00%
matt mackallmatt mackall1511.54%110.00%
dan williamsdan williams107.69%110.00%
kosaki motohirokosaki motohiro53.85%110.00%
mauricio linmauricio lin10.77%110.00%
christoph hellwigchristoph hellwig10.77%110.00%
naoya horiguchinaoya horiguchi10.77%110.00%
eric w. biedermaneric w. biederman10.77%110.00%
Total130100.00%10100.00%

#else
static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, struct mm_walk *walk) { }

Contributors

PersonTokensPropCommitsCommitProp
kirill a. shutemovkirill a. shutemov18100.00%1100.00%
Total18100.00%1100.00%

#endif
static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; pte_t *pte; spinlock_t *ptl; ptl = pmd_trans_huge_lock(pmd, vma); if (ptl) { smaps_pmd_entry(pmd, addr, walk)